Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions src/components/sections/theweek.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
---
import Section from "@ui/Section.astro"
import Headline from "@ui/Headline.astro";

interface WeekPeriod {
id: string;
days: string;
dates: string;
activities: string;
isActive?: boolean;
}

const weekPeriods: WeekPeriod[] = [
{
id: 'monday-tuesday',
days: 'Mon – Tues',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
days: 'MonTues',
days: 'MondayTuesday',

dates: '14 – 15 July',
activities: 'Workshops & Tutorials',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
activities: 'Workshops & Tutorials',
activities: 'Tutorials',

isActive: true
},
{
id: 'wednesday-friday',
days: 'Wed – Friday',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
days: 'Wed – Friday',
days: 'Wednesday – Friday',

dates: '16 – 18 July',
activities: 'The Main Conference',
},
{
id: 'saturday-sunday',
days: 'Sat – Sun',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
days: 'SatSun',
days: 'SaturdaySunday',

dates: '19 – 20 July',
activities: 'Sprints',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
activities: 'Sprints',
activities: 'Sprints & Beginners' Day',

}
];
---

<Section>
<Headline id="theweek" title="The Week" center="true" />
<div class="grid sm:flex w-full justify-center sm:justify-around ">
{weekPeriods.map((period) => (
<div class="grid grid-cols-1 text-center w-[160px] m-5 rounded overflow-hidden">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would look better if the text would be vertically centered. wdyt?

image

<div
data-period={period.id}
class="bg-slate-800 text-slate-200 p-2"
>
<h3 class="text-xl">
{period.dates}
</h3>
<span class="text-xs">
{period.days}
</span>
</div>
<div class="bg-[#D5D6E6] p-3 h-[80px]">
<span class="text-lg text-wrap">
{period.activities}
</span>
</div>
</div>
))}
</div>
</Section>
2 changes: 2 additions & 0 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
import Layout from "@layouts/Layout.astro";
import Hero from "@sections/hero/hero.astro";
import TheWeek from "@sections/theweek.astro";
import Updates from "@sections/updates/updates.astro";
import Keynoters from "@sections/keynoters/keynoters.astro";
import Speakers from "@sections/speakers.astro";
Expand All @@ -14,6 +15,7 @@ import Subscribe from "@sections/subscribe.astro";
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."
>
<Hero />
<TheWeek />
<Updates />
<Keynoters />
<Speakers />
Expand Down