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
26 changes: 3 additions & 23 deletions app/src/app/2024-10-05-hackathon-at-sentry/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { notFound } from "next/navigation";
import { Metadata } from "next";
import { getExpandedEventBySlug } from "@/lib/expanded-events";
import { isEventInPast } from "@/lib/events";
import { getEventAttendeeCount } from "@/lib/attendee-counter";
import { mainConfig } from "@/lib/config";
import {
EventDetailsPage,
Expand Down Expand Up @@ -64,32 +63,13 @@ export default async function HackathonPage() {
notFound();
}

// Get real attendee count from Luma API
const attendeeCount = event.lumaEventId
? await getEventAttendeeCount(event.lumaEventId)
: 0;
const attendeeLimit = event.attendeeLimit;
const isAtCapacity = attendeeCount >= attendeeLimit;
const isInPast = isEventInPast(event);
const showEventImageSection = !!event.images.length;

return (
<EventDetailsPage
event={event}
isAtCapacity={isAtCapacity}
isInPast={isInPast}
>
<HeroSection
event={event}
isAtCapacity={isAtCapacity}
isInPast={isInPast}
/>
<AllYouNeedToKnowSection
event={event}
attendeeCount={attendeeCount}
attendeeLimit={attendeeLimit}
isInPast={isInPast}
/>
<EventDetailsPage event={event} isInPast={isInPast}>
<HeroSection event={event} isInPast={isInPast} />
<AllYouNeedToKnowSection event={event} isInPast={isInPast} />
{showEventImageSection && (
<ImagesSection background="default" images={event.images} />
)}
Expand Down
33 changes: 4 additions & 29 deletions app/src/app/2024-12-03-all-things-web-at-convex/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { notFound } from "next/navigation";
import { Metadata } from "next";
import { getExpandedEventBySlug } from "@/lib/expanded-events";
import { isEventInPast } from "@/lib/events";
import { getEventAttendeeCount } from "@/lib/attendee-counter";
import { mainConfig } from "@/lib/config";
import {
EventDetailsPage,
Expand Down Expand Up @@ -73,40 +72,16 @@ export default async function ConvexEventPage() {
notFound();
}

// Get real attendee count from Luma API
const attendeeCount = event.lumaEventId
? await getEventAttendeeCount(event.lumaEventId)
: 0;
const attendeeLimit = event.attendeeLimit;
const isAtCapacity = attendeeCount >= attendeeLimit;
const isInPast = isEventInPast(event);

return (
<EventDetailsPage
event={event}
isAtCapacity={isAtCapacity}
isInPast={isInPast}
>
<HeroSection
className="md:mt-20"
event={event}
isAtCapacity={isAtCapacity}
isInPast={isInPast}
>
<HeroSectionTitle
event={event}
isAtCapacity={isAtCapacity}
isInPast={isInPast}
>
<EventDetailsPage event={event} isInPast={isInPast}>
<HeroSection className="md:mt-20" event={event} isInPast={isInPast}>
<HeroSectionTitle event={event} isInPast={isInPast}>
{HeroAnimation}
</HeroSectionTitle>
</HeroSection>
<AllYouNeedToKnowSection
event={event}
attendeeCount={attendeeCount}
attendeeLimit={attendeeLimit}
isInPast={isInPast}
/>
<AllYouNeedToKnowSection event={event} isInPast={isInPast} />
{event.talks.length > 0 && <TalksSection talks={event.talks} />}
{event.images.length > 0 && (
<ImagesSection
Expand Down
26 changes: 3 additions & 23 deletions app/src/app/2025-04-26-hackathon-at-sentry/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { notFound } from "next/navigation";
import { Metadata } from "next";
import { getExpandedEventBySlug } from "@/lib/expanded-events";
import { isEventInPast } from "@/lib/events";
import { getEventAttendeeCount } from "@/lib/attendee-counter";
import { mainConfig } from "@/lib/config";
import {
EventDetailsPage,
Expand Down Expand Up @@ -65,32 +64,13 @@ export default async function HackathonPage() {
notFound();
}

// Get real attendee count from Luma API
const attendeeCount = event.lumaEventId
? await getEventAttendeeCount(event.lumaEventId)
: 0;
const attendeeLimit = event.attendeeLimit;
const isAtCapacity = attendeeCount >= attendeeLimit;
const isInPast = isEventInPast(event);
const showEventImageSection = !!event.images.length;

return (
<EventDetailsPage
event={event}
isAtCapacity={isAtCapacity}
isInPast={isInPast}
>
<HeroSection
event={event}
isAtCapacity={isAtCapacity}
isInPast={isInPast}
/>
<AllYouNeedToKnowSection
event={event}
attendeeCount={attendeeCount}
attendeeLimit={attendeeLimit}
isInPast={isInPast}
/>
<EventDetailsPage event={event} isInPast={isInPast}>
<HeroSection event={event} isInPast={isInPast} />
<AllYouNeedToKnowSection event={event} isInPast={isInPast} />
{showEventImageSection && (
<ImagesSection background="default" images={event.images} />
)}
Expand Down
26 changes: 3 additions & 23 deletions app/src/app/2025-06-02-nextdevfm-live/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { Metadata } from "next";
import Link from "next/link";
import { getExpandedEventBySlug } from "@/lib/expanded-events";
import { isEventInPast } from "@/lib/events";
import { getEventAttendeeCount } from "@/lib/attendee-counter";
import { mainConfig } from "@/lib/config";
import {
EventDetailsPage,
Expand Down Expand Up @@ -80,12 +79,6 @@ export default async function NextDevFmLivePage() {
notFound();
}

// Get real attendee count from Luma API
const attendeeCount = event.lumaEventId
? await getEventAttendeeCount(event.lumaEventId)
: 0;
const attendeeLimit = event.attendeeLimit;
const isAtCapacity = attendeeCount >= attendeeLimit;
const isInPast = isEventInPast(event);
const showEventImageSection = !!event.images.length;

Expand All @@ -98,22 +91,9 @@ export default async function NextDevFmLivePage() {
const ted = getProfile(tedNymanId);

return (
<EventDetailsPage
event={event}
isAtCapacity={isAtCapacity}
isInPast={isInPast}
>
<HeroSection
event={event}
isAtCapacity={isAtCapacity}
isInPast={isInPast}
/>
<AllYouNeedToKnowSection
event={event}
attendeeCount={attendeeCount}
attendeeLimit={attendeeLimit}
isInPast={isInPast}
/>
<EventDetailsPage event={event} isInPast={isInPast}>
<HeroSection event={event} isInPast={isInPast} />
<AllYouNeedToKnowSection event={event} isInPast={isInPast} />
{showEventImageSection && (
<ImagesSection background="default" images={event.images} />
)}
Expand Down
26 changes: 3 additions & 23 deletions app/src/app/2025-09-23-lightning-hackathon-at-sentry/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { notFound } from "next/navigation";
import { Metadata } from "next";
import { getExpandedEventBySlug } from "@/lib/expanded-events";
import { isEventInPast } from "@/lib/events";
import { getEventAttendeeCount } from "@/lib/attendee-counter";
import { mainConfig } from "@/lib/config";
import {
EventDetailsPage,
Expand Down Expand Up @@ -65,32 +64,13 @@ export default async function LightningHackathonPage() {
notFound();
}

// Get real attendee count from Luma API
const attendeeCount = event.lumaEventId
? await getEventAttendeeCount(event.lumaEventId)
: 0;
const attendeeLimit = event.attendeeLimit;
const isAtCapacity = attendeeCount >= attendeeLimit;
const isInPast = isEventInPast(event);
const showEventImageSection = !!event.images.length;

return (
<EventDetailsPage
event={event}
isAtCapacity={isAtCapacity}
isInPast={isInPast}
>
<HeroSection
event={event}
isAtCapacity={isAtCapacity}
isInPast={isInPast}
/>
<AllYouNeedToKnowSection
event={event}
attendeeCount={attendeeCount}
attendeeLimit={attendeeLimit}
isInPast={isInPast}
/>
<EventDetailsPage event={event} isInPast={isInPast}>
<HeroSection event={event} isInPast={isInPast} />
<AllYouNeedToKnowSection event={event} isInPast={isInPast} />
{showEventImageSection && (
<ImagesSection background="default" images={event.images} />
)}
Expand Down
27 changes: 3 additions & 24 deletions app/src/app/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { notFound } from "next/navigation";
import { Metadata } from "next";
import { getExpandedEventBySlug } from "@/lib/expanded-events";
import { isEventInPast } from "@/lib/events";
import { getEventAttendeeCount } from "@/lib/attendee-counter";
import { mainConfig } from "@/lib/config";
import {
EventDetailsPage,
Expand Down Expand Up @@ -71,32 +70,12 @@ export default async function EventPage({ params }: PageProps) {
notFound();
}

// Get real attendee count from Luma API
const attendeeCount =
event.lumaEventId && event.attendeeLimit > 0
? await getEventAttendeeCount(event.lumaEventId)
: 0;
const attendeeLimit = event.attendeeLimit;
const isAtCapacity = attendeeLimit > 0 && attendeeCount >= attendeeLimit;
const isInPast = isEventInPast(event);

return (
<EventDetailsPage
event={event}
isAtCapacity={isAtCapacity}
isInPast={isInPast}
>
<HeroSection
event={event}
isAtCapacity={isAtCapacity}
isInPast={isInPast}
/>
<AllYouNeedToKnowSection
event={event}
attendeeCount={attendeeCount}
attendeeLimit={attendeeLimit}
isInPast={isInPast}
/>
<EventDetailsPage event={event} isInPast={isInPast}>
<HeroSection event={event} isInPast={isInPast} />
<AllYouNeedToKnowSection event={event} isInPast={isInPast} />
{event.talks.length > 0 && <TalksSection talks={event.talks} />}
{event.images.length > 0 && (
<ImagesSection
Expand Down
Loading
Loading