-
Notifications
You must be signed in to change notification settings - Fork 72
Add section "The Week" mini version #1301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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', | ||||||
| dates: '14 – 15 July', | ||||||
| activities: 'Workshops & Tutorials', | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| isActive: true | ||||||
| }, | ||||||
| { | ||||||
| id: 'wednesday-friday', | ||||||
| days: 'Wed – Friday', | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| dates: '16 – 18 July', | ||||||
| activities: 'The Main Conference', | ||||||
| }, | ||||||
| { | ||||||
| id: 'saturday-sunday', | ||||||
| days: 'Sat – Sun', | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| dates: '19 – 20 July', | ||||||
| activities: 'Sprints', | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| } | ||||||
| ]; | ||||||
| --- | ||||||
|
|
||||||
| <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"> | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||||||
| <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> | ||||||

There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.