File tree Expand file tree Collapse file tree 2 files changed +62
-0
lines changed Expand file tree Collapse file tree 2 files changed +62
-0
lines changed Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 11---
22import Layout from " @layouts/Layout.astro" ;
33import Hero from " @sections/hero/hero.astro" ;
4+ import TheWeek from " @sections/theweek.astro" ;
45import Updates from " @sections/updates/updates.astro" ;
56import Keynoters from " @sections/keynoters/keynoters.astro" ;
67import 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 />
You can’t perform that action at this time.
0 commit comments