Skip to content

Commit 3080d30

Browse files
authored
Merge branch 'ep2025' into ep2025-navbar
2 parents f937966 + c9611d4 commit 3080d30

File tree

20 files changed

+147
-21
lines changed

20 files changed

+147
-21
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
import { getEntry } from "astro:content";
3+
import Card from "./card.astro";
4+
5+
export interface Props {
6+
id: string;
7+
}
8+
9+
const { id } = Astro.props;
10+
11+
const deadline = await getEntry("week", id);
12+
13+
if (!deadline) {
14+
throw new Error(`No deadline found with id ${id}`);
15+
}
16+
17+
const { Content } = await deadline.render();
18+
---
19+
20+
<Card
21+
image={deadline.data.image}
22+
title={deadline.data.title}
23+
url={deadline.data.url}
24+
subtitle={deadline.data.subtitle}
25+
>
26+
<Content />
27+
</Card>
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
import DeadlineCard from "./week-card.astro";
3+
import Headline from "@ui/Headline.astro";
4+
import { getCollection } from "astro:content";
5+
import Section from "@ui/Section.astro";
6+
7+
let deadlines = await getCollection("week");
8+
deadlines = deadlines
9+
.sort((a, b) => a.slug.localeCompare(b.slug))
10+
.reverse()
11+
.slice(0, 3);
12+
---
13+
14+
<Section>
15+
<Headline id="the_week" title="A Week of All Things Python" center="true" />
16+
<section class="justify-center gap-6 flex flex-wrap px-6">
17+
{deadlines.map((deadline) => <DeadlineCard id={deadline.slug} />)}
18+
</section>
19+
</Section>

src/content/config.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,17 @@ const deadlines = defineCollection({
2525
}),
2626
});
2727

28+
const week = defineCollection({
29+
type: "content",
30+
schema: ({ image }) =>
31+
z.object({
32+
title: z.string(),
33+
subtitle: z.string(),
34+
url: z.string(),
35+
image: image(),
36+
}),
37+
});
38+
2839
const keynoters = defineCollection({
2940
type: "content",
3041
schema: ({ image }) =>
@@ -244,6 +255,7 @@ export const collections = {
244255
days,
245256
pages,
246257
deadlines,
258+
week,
247259
sessions,
248260
speakers,
249261
keynoters,

src/content/sponsors/gel/gel.svg

Lines changed: 9 additions & 17 deletions
Loading

src/content/sponsors/gel/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ socials:
1414
discord: "https://discord.gg/gel"
1515
youtube: "https://www.youtube.com/@EdgeDB"
1616
tier: Platinum
17-
logo_padding: 10px
17+
logo_padding: 5px
1818
draft: true
1919
---
2020

377 KB
Loading
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: Google Cloud
3+
url: https://cloud.google.com/
4+
description:
5+
"The new way to cloud starts here: Build with generative AI, deploy apps fast,
6+
and analyze data in seconds—all with Google-grade security."
7+
socials:
8+
twitter: https://x.com/GoogleCloudTech
9+
youtube: https://www.youtube.com/googlecloudplatform
10+
11+
tier: Gold
12+
logo_padding: 15px
13+
draft: true
14+
---
15+
16+
## About Google Cloud
17+
18+
The new way to cloud starts here: Build with generative AI, deploy apps fast,
19+
and analyze data in seconds—all with Google-grade security.
90.1 KB
Loading
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
name: Pydantic
3+
url: https://pydantic.dev/
4+
description:
5+
The Pydantic platform gives devs visibility to stay in flow, from local to
6+
prod, from AI to API. Ship robust apps faster, in Python, TypeScript, Rust and
7+
others.
8+
socials:
9+
linkedin: https://www.linkedin.com/company/pydantic
10+
twitter: https://x.com/pydantic
11+
bluesky: https://bsky.app/profile/pydantic.dev
12+
mastodon: https://fosstodon.org/@pydantic
13+
github: https://github.com/pydantic/pydantic
14+
15+
tier: Gold
16+
draft: true
17+
---
18+
19+
## About Pydantic
20+
21+
Pydantic is built on the pillars of open source: transparency, collaboration and
22+
excellence. Our origins inform every product we craft. Whether it’s a community
23+
project or enterprise solution, developer experience is our cornerstone.

0 commit comments

Comments
 (0)