Skip to content

Commit

Permalink
✨ add OSM-link & calendar-file to Hero-info
Browse files Browse the repository at this point in the history
Signed-off-by: SindreKjelsrud <sindre@kjelsrud.dev>
  • Loading branch information
SindreKjelsrud committed Sep 13, 2024
1 parent ca684f0 commit ef1f7da
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 8 deletions.
39 changes: 39 additions & 0 deletions public/ical.ics
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//ical.marudot.com//iCal Event Maker
CALSCALE:GREGORIAN
BEGIN:VTIMEZONE
TZID:Europe/Berlin
LAST-MODIFIED:20240422T053451Z
TZURL:https://www.tzurl.org/zoneinfo-outlook/Europe/Berlin
X-LIC-LOCATION:Europe/Berlin
BEGIN:DAYLIGHT
TZNAME:CEST
TZOFFSETFROM:+0100
TZOFFSETTO:+0200
DTSTART:19700329T020000
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU
END:DAYLIGHT
BEGIN:STANDARD
TZNAME:CET
TZOFFSETFROM:+0200
TZOFFSETTO:+0100
DTSTART:19701025T030000
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU
END:STANDARD
END:VTIMEZONE
BEGIN:VEVENT
DTSTAMP:20240913T161901Z
UID:1726244271074-26732@ical.marudot.com
DTSTART;TZID=Europe/Berlin:20241107T163000
DTEND;TZID=Europe/Berlin:20241107T211000
SUMMARY:Bergen Open Source conference
URL:https://boskonf.no
LOCATION:https://www.openstreetmap.org/node/6137059358
BEGIN:VALARM
ACTION:DISPLAY
DESCRIPTION:Bergen Open Source conference
TRIGGER:-P1W
END:VALARM
END:VEVENT
END:VCALENDAR
20 changes: 12 additions & 8 deletions src/components/Main/Hero.astro
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,18 @@ const program = await getProgram(year, language);

<div class="content">
<div class="dateCont">
<div class="date">
<img src="/calendar.svg" alt="calendar icon" />
<span>{formatDate(program.date)}</span>
</div>
<div class="location">
<img src="/location.svg" alt="location icon" />
<span>{program.location}</span>
</div>
<a href="/ical.ics">
<div class="date">
<img src="/calendar.svg" alt="calendar icon" />
<span>{formatDate(program.date)}</span>
</div>
</a>
<a href="https://www.openstreetmap.org/node/6137059358" target="_blank">
<div class="location">
<img src="/location.svg" alt="location icon" />
<span>{program.location}</span>
</div>
</a>
</div>

<h2>{t("main.title")}</h2>
Expand Down

0 comments on commit ef1f7da

Please sign in to comment.