Skip to content
Open
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
2 changes: 1 addition & 1 deletion components/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export function Footer() {
href={link.href}
rel="noopener noreferrer"
target="_blank"
className="flex flex-cols gap-2 justify-start items-center transition-colors hover:text-foreground">
className="flex flex-col gap-2 justify-start items-center transition-colors hover:text-foreground">
<Icon icon={link.icon} className='size-4' />
{link.name}
</Link>
Expand Down
11 changes: 6 additions & 5 deletions lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ export function downloadCalendarEvent() {
const location = "https://discord.com/events/1210468736205852672/1425703047253856287"
const discordUrl = "https://discord.com/events/1210468736205852672/1425703047253856287"

// Start date: Thursday, Nov 6, 2025, 5:00 PM UTC
const startDate = new Date("2025-11-06T17:00:00Z")
// End date: Thursday, Nov 6, 2025, 6:00 PM UTC
const endDate = new Date("2025-11-06T18:00:00Z")
// Start date: Thursday, Jul 3, 2026, 5:00 PM UTC
const startDate = new Date("2026-07-03T17:00:00Z")
// End date: Thursday, Jul 3, 2026, 6:00 PM UTC
const endDate = new Date("2026-07-03T18:00:00Z")

// Format dates in ICS format (YYYYMMDDTHHmmssZ)
const formatICSDate = (date: Date): string => {
Expand Down Expand Up @@ -71,7 +71,8 @@ export function downloadCalendarEvent() {
'END:VCALENDAR',
].join('\r\n')

// Create blob and download
// Create blob and download (browser-only)
if (typeof window === "undefined") return
const blob = new Blob([icsContent], { type: 'text/calendar;charset=utf-8' })
const url = URL.createObjectURL(blob)
const link = document.createElement('a')
Expand Down