Skip to content

Commit

Permalink
calenderLink
Browse files Browse the repository at this point in the history
  • Loading branch information
vivekpal1 committed Nov 23, 2023
1 parent ffa69aa commit 51b9281
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/data/links.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ export const ticketLink = '/tickets';
export const venueLink = 'https://maps.app.goo.gl/iCjzVf4SjrCrz4RS6';
export const gettingThereLink ='/venue';
export const venueName = 'IIIT Delhi, New Delhi';
export const calenderLink = 'https://calendar.google.com/calendar/u/0?cid=ZTlhMDI2Yjg1OWI1NWMzNTY3OTdlMTMzMzAxYzE1NDc2ZjNhOWI3YzJlOGUwOGVhNmE2ZDczOTVlZjYyYjA5N0Bncm91cC5jYWxlbmRhci5nb29nbGUuY29t';

3 changes: 2 additions & 1 deletion src/pages/_/Hero/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import ConsoleClient from './Console.svelte';
import { Image } from 'astro:assets';
import * as cfp from '@src/data/cfp';
import ticket from './ticket.png';
import { discordLink, ticketLink, venueLink, venueName, gettingThereLink } from '@src/data/links';
import { discordLink, ticketLink, venueLink, venueName, gettingThereLink, calenderLink } from '@src/data/links';
import { year, startDate, endDate } from '@src/data/date';
const format = new Intl.DateTimeFormat('default', {
Expand All @@ -19,6 +19,7 @@ const data = formatter()
.addEntry('title', `FOSSConf ${year}`)
.addEntry('startDate', startDate ? `${format.format(startDate)}` : 'TBC')
.addEntry('endDate', endDate ? `${format.format(endDate)}` : 'TBC')
.addEntry('calendarInvite', `<a href="${calenderLink}">Add to your Calendar</a>`)
.addEntry('inPersonLocation', `<a href="${venueLink}">${venueName}</a>`)
.addEntry('gettingThere', `<a href="${gettingThereLink}">Directions</a>`)
.addEntry('support', `<a href="${discordLink}">Discord</a>`)
Expand Down

0 comments on commit 51b9281

Please sign in to comment.