Skip to content

Commit 5a7f95f

Browse files
committed
Add section
1 parent e7eceac commit 5a7f95f

File tree

10 files changed

+62
-2
lines changed

10 files changed

+62
-2
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
import DeadlineCard from "./deadline-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="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: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,18 @@ const deadlines = defineCollection({
2525
}),
2626
});
2727

28+
29+
const week = defineCollection({
30+
type: "content",
31+
schema: ({ image }) =>
32+
z.object({
33+
title: z.string(),
34+
subtitle: z.string(),
35+
url: z.string(),
36+
image: image(),
37+
}),
38+
});
39+
2840
const keynoters = defineCollection({
2941
type: "content",
3042
schema: ({ image }) =>
@@ -244,6 +256,7 @@ export const collections = {
244256
days,
245257
pages,
246258
deadlines,
259+
week,
247260
sessions,
248261
speakers,
249262
keynoters,

src/content/week/.gitkeep

Whitespace-only changes.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: Call for 2026 Venues
3+
subtitle: Propose a Venue
4+
url: https://europython-society.org/call-for-europython-2026-host-venues
5+
image: "./venue.jpg"
6+
---
7+
8+
Are you a community builder dreaming of bringing EuroPython to your city? The
9+
Call for Venues for EP 2026 is now open!

src/content/week/06_mentorship.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: Speakers' Workshop
3+
subtitle: Already Taken Place
4+
url: https://forms.gle/T8rc73sbyu3KbLNKA
5+
image: "mentorship1.jpg"
6+
---
7+
8+
An online panel session with experienced community members sharing advice for
9+
**first-time and returning speakers**.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: On-Site Volunteers
3+
subtitle: Already Closed
4+
url: /volunteers
5+
image: "./volunteers-2024.jpg"
6+
---
7+
8+
EuroPython runs on volunteer power! Check out how to get involved and help us
9+
deliver the longest-running volunteer-led Python conference in the world.

src/content/week/mentorship1.jpg

127 KB
Loading

src/content/week/venue.jpg

74.5 KB
Loading
2.01 MB
Loading

src/pages/index.astro

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
---
22
import Layout from "@layouts/Layout.astro";
33
import Hero from "@sections/hero/hero.astro";
4-
import Updates from "@sections/updates/updates.astro";
4+
// import Updates from "@sections/updates/updates.astro";
5+
import Week from "@sections/updates/week.astro";
56
import Keynoters from "@sections/keynoters/keynoters.astro";
67
import Speakers from "@sections/speakers.astro";
78
import Prague from "@sections/prague.astro";
@@ -14,7 +15,7 @@ import Subscribe from "@sections/subscribe.astro";
1415
description="EuroPython is the largest Python conference in Europe. We are looking forward to seeing you in Prague, Czech Republic & Remote from July 14th-20th 2025."
1516
>
1617
<Hero />
17-
<Updates />
18+
<Week />
1819
<Keynoters />
1920
<Speakers />
2021
<Prague />

0 commit comments

Comments
 (0)