Skip to content

Commit 9790559

Browse files
committed
Add section
1 parent 7c3af8d commit 9790559

File tree

2 files changed

+62
-0
lines changed

2 files changed

+62
-0
lines changed
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
---
2+
import Section from "@ui/Section.astro"
3+
import Headline from "@ui/Headline.astro";
4+
5+
interface WeekPeriod {
6+
id: string;
7+
days: string;
8+
dates: string;
9+
activities: string;
10+
isActive?: boolean;
11+
}
12+
13+
const weekPeriods: WeekPeriod[] = [
14+
{
15+
id: 'monday-tuesday',
16+
days: 'Mon – Tues',
17+
dates: '14 – 15 July',
18+
activities: 'Workshops & Tutorials',
19+
isActive: true
20+
},
21+
{
22+
id: 'wednesday-friday',
23+
days: 'Wed – Friday',
24+
dates: '16 – 18 July',
25+
activities: 'The Main Conference',
26+
},
27+
{
28+
id: 'saturday-sunday',
29+
days: 'Sat – Sun',
30+
dates: '19 – 20 July',
31+
activities: 'Sprints',
32+
}
33+
];
34+
---
35+
36+
<Section>
37+
<Headline id="theweek" title="The Week" center="true" />
38+
<div class="grid sm:flex w-full justify-center sm:justify-around ">
39+
{weekPeriods.map((period) => (
40+
<div class="grid grid-cols-1 text-center w-[160px] m-5 rounded overflow-hidden">
41+
<div
42+
data-period={period.id}
43+
class="bg-slate-800 text-slate-200 p-2"
44+
>
45+
<h3 class="text-xl">
46+
{period.dates}
47+
</h3>
48+
<span class="text-xs">
49+
{period.days}
50+
</span>
51+
</div>
52+
<div class="bg-[#D5D6E6] p-3 h-[80px]">
53+
<span class="text-lg text-wrap">
54+
{period.activities}
55+
</span>
56+
</div>
57+
</div>
58+
))}
59+
</div>
60+
</Section>

src/pages/index.astro

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
import Layout from "@layouts/Layout.astro";
33
import Hero from "@sections/hero/hero.astro";
4+
import TheWeek from "@sections/theweek.astro";
45
import Updates from "@sections/updates/updates.astro";
56
import Keynoters from "@sections/keynoters/keynoters.astro";
67
import Speakers from "@sections/speakers.astro";
@@ -14,6 +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 />
18+
<TheWeek />
1719
<Updates />
1820
<Keynoters />
1921
<Speakers />

0 commit comments

Comments
 (0)