Skip to content
Merged
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
11 changes: 9 additions & 2 deletions app/(home)/components/EventCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,15 @@ export default function EventCard({ event }: { event: Event }) {
{event.date} <br /> {event.location}
</p>
{event.variant === 'main' && (
<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">
<Link href="/404">Register Here</Link>
<Button
disabled={!event.link}
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"
>
{event.link ? (
<Link href={event.link}>Register Here</Link>
) : (
<Link href={'/#'}>Registration coming soon</Link>
)}
</Button>
)}
</div>
Expand Down
38 changes: 12 additions & 26 deletions app/(home)/components/UpcomingEvents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { Container } from '@/components/ui/container';
import React from 'react';
import EventCard from './EventCard';
import CountdownTimer from './CountdownTimer';
import { Button } from '@/components/ui/button';
import Link from 'next/link';
// import { Button } from '@/components/ui/button';
// import Link from 'next/link';

interface Event {
title: string;
Expand All @@ -15,32 +15,18 @@ interface Event {

const EVENTS: Event[] = [
{
title: 'Pycon Mini Davao',
Comment thread
seangaaab marked this conversation as resolved.
date: 'June 20, 2025',
location: 'Mugna Tech, Davao City',
title: 'PyCon Davao 2025',
date: 'October 25, 2025',
location: 'Ateneo de Davao University',
variant: 'main',
link: '/404',
link: '', // TODO: Update Link
},
{
title: 'RAGs & DAGs',
Comment thread
seangaaab marked this conversation as resolved.
date: 'June 20, 2025',
location: 'Mugna Tech, Davao City',
title: 'PyCon Davao Sprint Day',
date: 'October 26, 2025',
location: 'TBA',
variant: 'regular',
link: '/404',
},
{
title: 'RAGs & DAGs',
date: 'June 20, 2025',
location: 'Mugna Tech, Davao City',
variant: 'regular',
link: '/404',
},
{
title: 'RAGs & DAGs',
date: 'June 20, 2025',
location: 'Mugna Tech, Davao City',
variant: 'regular',
link: '/404',
link: '', // TODO: Update Link
},
];

Expand Down Expand Up @@ -68,9 +54,9 @@ const UpcomingEvents = () => {
</div>

{/* See more Events Button */}
<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">
{/* <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">
<Link href="/404">See More Events</Link>
</Button>
</Button> */}
</Container>
);
};
Expand Down
4 changes: 2 additions & 2 deletions app/(home)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { CTASection } from './components/CTASection';
import { StatsAndReviews } from './components/StatsAndReviews';
import { PythonFoundation } from './components//PythonFoundation';
import { Partners } from './components//Partners';
// import UpcomingEvents from './components//UpcomingEvents';
import UpcomingEvents from './components//UpcomingEvents';
import { Sponsors } from './components/Sponsors';

import { Testimonials } from './components/Testimonials';
Expand All @@ -19,7 +19,7 @@ export default function HomePage() {
<Testimonials />
<PythonFoundation />
<Partners />
{/* <UpcomingEvents /> */}
<UpcomingEvents />
<Sponsors />
</main>
);
Expand Down