Skip to content

Commit 3dfa91a

Browse files
committed
feat: removed upcoming events link and disabled registration button
1 parent a3ca977 commit 3dfa91a

2 files changed

Lines changed: 15 additions & 8 deletions

File tree

app/(home)/components/EventCard.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,15 @@ export default function EventCard({ event }: { event: Event }) {
4242
{event.date} <br /> {event.location}
4343
</p>
4444
{event.variant === 'main' && (
45-
<Button className="mx-auto mt-5 text-[10px] font-medium text-dark-green px-[10px] py-[6px] bg-primary hover:scale-105 hover:bg-primary transition-transform duration-300 rounded-full md:py-[9px] md:px-5 md:text-[12px] lg:py-[12px] lg:px-6 lg:text-[16px] xl:mx-0 xl:text-2xl">
46-
<Link href="/404">Register Here</Link>
45+
<Button
46+
disabled={!event.link}
47+
className="mx-auto mt-5 text-[10px] font-medium text-dark-green px-[10px] py-[6px] bg-primary hover:scale-105 hover:bg-primary transition-transform duration-300 rounded-full md:py-[9px] md:px-5 md:text-[12px] lg:py-[12px] lg:px-6 lg:text-[16px] xl:mx-0 xl:text-2xl"
48+
>
49+
{event.link ? (
50+
<Link href={event.link}>Register Here</Link>
51+
) : (
52+
<Link href={'/#'}>Registration coming soon</Link>
53+
)}
4754
</Button>
4855
)}
4956
</div>

app/(home)/components/UpcomingEvents.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import { Container } from '@/components/ui/container';
22
import React from 'react';
33
import EventCard from './EventCard';
44
import CountdownTimer from './CountdownTimer';
5-
import { Button } from '@/components/ui/button';
6-
import Link from 'next/link';
5+
// import { Button } from '@/components/ui/button';
6+
// import Link from 'next/link';
77

88
interface Event {
99
title: string;
@@ -19,14 +19,14 @@ const EVENTS: Event[] = [
1919
date: 'October 25, 2025',
2020
location: 'Ateneo de Davao University',
2121
variant: 'main',
22-
link: '/404',
22+
link: '', // TODO: Update Link
2323
},
2424
{
2525
title: 'PyCon Davao Sprint Day',
2626
date: 'October 26, 2025',
2727
location: 'TBA',
2828
variant: 'regular',
29-
link: '/404',
29+
link: '', // TODO: Update Link
3030
},
3131
];
3232

@@ -54,9 +54,9 @@ const UpcomingEvents = () => {
5454
</div>
5555

5656
{/* See more Events Button */}
57-
<Button className="bg-primary hover:bg-primary mx-auto max-w-[80%] lg:max-w-[80%] md:max-w-[80%] w-full md:py-2 xl:py-4 md:font-medium text-dark-green lg:py-4 lg:text-[15px] py-[4px] font-semibold text-[11px] xl:text-2xl xl:max-w-full">
57+
{/* <Button className="bg-primary hover:bg-primary mx-auto max-w-[80%] lg:max-w-[80%] md:max-w-[80%] w-full md:py-2 xl:py-4 md:font-medium text-dark-green lg:py-4 lg:text-[15px] py-[4px] font-semibold text-[11px] xl:text-2xl xl:max-w-full">
5858
<Link href="/404">See More Events</Link>
59-
</Button>
59+
</Button> */}
6060
</Container>
6161
);
6262
};

0 commit comments

Comments
 (0)