Skip to content

Commit b62a178

Browse files
committed
Merge branch 'ep2025' into ep2025-ilikeit
2 parents 4b23eaa + 70a90a8 commit b62a178

File tree

14 files changed

+404
-84
lines changed

14 files changed

+404
-84
lines changed

astro.config.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,9 @@ export default defineConfig({
9393
pagefind(),
9494
deleteUnusedImages(),
9595
svelte(),
96-
compress(),
96+
(await import("astro-compress")).default({
97+
SVG: false,
98+
}),
9799
],
98100
output: "static",
99101
build: {

public/social/bg2.png

45.4 KB
Loading

public/social/bg3.png

591 KB
Loading

public/social/bg4.png

423 KB
Loading

scripts/download_social.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const puppeteer = require("puppeteer");
66
args: ["--no-sandbox", "--disable-setuid-sandbox"],
77
});
88
const page = await browser.newPage();
9-
await page.goto("http://localhost:4321/media/social_media_cards");
9+
await page.goto("http://localhost:4321/media/speakers");
1010

1111
const elements = await page.$$(".social");
1212

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
---
2+
import { getEntry } from "astro:content";
3+
import { sponsorLogos } from "@data/sponsorLogos";
4+
5+
const { sponsor } = Astro.props;
6+
7+
const {
8+
name: title,
9+
url: website,
10+
logo_padding = false,
11+
} = sponsor.data;
12+
13+
14+
const logo = sponsorLogos[sponsor.id];
15+
// Assuming logo.width and logo.height are known
16+
const targetWidth = 400;
17+
const originalWidth = logo.width;
18+
const originalHeight = logo.height;
19+
const aspectRatio = originalWidth / originalHeight;
20+
21+
let width = targetWidth;
22+
let height = width / aspectRatio;
23+
24+
const maxHeight = 220;
25+
if (height > maxHeight) {
26+
height = maxHeight;
27+
width = height * aspectRatio ;
28+
}
29+
30+
const x = 450 - width / 2;
31+
const y = 650 - height / 2;
32+
33+
---
34+
<svg width="900" height="900" class="h-full w-full -z-10">
35+
<image href="/social/bg4.png" width="900" height="900" />
36+
</svg>
37+
<svg width="900" height="900">
38+
39+
<image
40+
class="sponsor_logo"
41+
href={logo.src}
42+
x={x}
43+
y={y}
44+
width={width}
45+
height={height}
46+
style={{
47+
padding: logo_padding ? logo_padding : undefined,
48+
}}
49+
clip-path="url(#curvedCornerClip)"
50+
preserveAspectRatio="xMidYMid meet"
51+
/>
52+
</svg>
53+
54+
<p lang="en" class="box2 fit-text">
55+
{title}
56+
</p>
57+
58+
59+
<style>
60+
.box {
61+
margin-top:250px;
62+
width: 630px;
63+
height: 150px;
64+
font-size: 100px;
65+
color: rgb(239, 215, 123);
66+
padding: 1rem;
67+
opacity: 0;
68+
}
69+
70+
.box2 {
71+
margin-top:320px;
72+
margin-left:150px;
73+
width: 640px;
74+
height: 180px;
75+
font-size: 70px;
76+
color:white;
77+
padding: 2rem;
78+
}
79+
80+
.box3 {
81+
margin-top:280px;
82+
width: 800px;
83+
height: 300px;
84+
font-size: 100px;
85+
color: rgb(239, 215, 123);
86+
padding: 1rem;
87+
}
88+
89+
.box4 {
90+
91+
width: 580px;
92+
height: 200px;
93+
font-size: 70px;
94+
color:white;
95+
padding: 2rem;
96+
}
97+
98+
99+
.box, .box2, .box3, .box4 {
100+
box-sizing: border-box;
101+
overflow: hidden;
102+
display: flex;
103+
align-items: center;
104+
justify-content: center;
105+
text-align: center;
106+
font-family: Inter, sans-serif !important;
107+
font-weight: bold;
108+
line-height: 1em;
109+
}
110+
111+
.sponsor_logo {
112+
max-height:120px;
113+
}
114+
</style>

src/components/schedule/session.astro

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import CodeHeart from "@components/island/CodeHeart.svelte";
33
import Speakers from "./speakers.astro";
44
import { slugify } from "@utils/content";
5+
import Headline from "@ui/Headline.astro";
56
67
export interface props {
78
style: any;
@@ -92,6 +93,7 @@ const hasFooter = true;
9293
<Speakers speakers={session.speakers} />
9394
</>
9495
)}
96+
9597
</footer>
9698
)
9799
}
@@ -103,6 +105,7 @@ const hasFooter = true;
103105

104106
<style>
105107
.session {
108+
106109
border: 1px solid transparent;
107110
font-weight: bold;
108111
display: flex;
@@ -143,6 +146,7 @@ const hasFooter = true;
143146
bottom: 0;
144147
left: 0;
145148
z-index: 1;
149+
146150
}
147151

148152
footer :global(a) {
@@ -206,6 +210,7 @@ const hasFooter = true;
206210
border: 1px solid #e9714d;
207211
}
208212

213+
209214
.time,
210215
footer {
211216
font-size: 0.9em;
@@ -220,7 +225,7 @@ const hasFooter = true;
220225

221226
h2 {
222227
margin-bottom: 1em;
223-
height: 100%;
228+
height:100%;
224229
}
225230

226231
footer.has-speakers {
@@ -243,6 +248,6 @@ const hasFooter = true;
243248
}
244249

245250
.poster header {
246-
text-align: center;
251+
text-align:center
247252
}
248253
</style>

src/pages/media/social_media.csv.ts

Lines changed: 0 additions & 78 deletions
This file was deleted.

src/pages/media/social_media_cards.astro renamed to src/pages/media/speakers.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ type Speaker = CollectionEntry<"speakers">;
2020
<body class="overflow-auto">
2121
{
2222
speakers.map((entry: Speaker) => (
23-
<a href=`/media/card/${entry.data.slug}`>
23+
<a href=`/media/speaker/${entry.data.slug}`>
2424
<div class="social relative w-[900px] h-[900px] overflow-hidden" data-slug={entry.data.slug}>
2525
<SocialMediaCard entry={entry} />
2626
</div>

0 commit comments

Comments
 (0)