# Events Page

> A React events page template: a featured webinar with countdown and sign-up, filterable upcoming events, past recordings and speakers.

- Type: React template (Templates)
- Access: Pro (the source needs a Wingo UI Pro plan, see https://wingo-ui.com/pricing)
- Version: 1.1.0
- Install: `npx wingo-ui@latest add events-page`
- Docs: https://wingo-ui.com/templates/events-page

## Interaction

See upcoming events glides down to the list (Watch recordings to the recordings). The featured webinar counts down to its start, live, and its register form checks the name and email; Register for free spins while onRegister runs, then the card turns into a confirmation with Add to calendar (downloads an .ics file) and Register someone else. Filter the upcoming list with the type chips (All, Webinars, Meetups, Conferences, each with its count; the row scrolls sideways on phones); the result count is announced and an empty type shows Show all events. Times read in the event's time zone; Use my time zone switches every date block, row and the featured card to the visitor's zone, and the same link switches back. Each row is one link to /events/<slug>: a plain click opens the event in a side panel (a draggable bottom sheet on phones) with when and where, the agenda, the hosts and a register form whose button sits in the panel footer; Cmd or Ctrl click opens the link instead. The replay plays a chaptered walkthrough in a dialog. Every recording card is one link with a drawn title card, its length and views. The speakers row shows initials, and the closing card subscribes an email to monthly invites. The hero and featured card rise in once on mount; reduced motion keeps them still.

## Installation

```bash
npx wingo-ui@latest add events-page
```

Pro item: run `npx wingo-ui@latest login` once with a Pro account. The CLI adds the files, their dependencies and a version record for updates.

With shadcn: `npx shadcn@latest add @wingo-ui/events-page` (needs the @wingo-ui registry with your API key in components.json)

Files:

- `components/templates/events-page.tsx`
- `components/templates/events-page-data.ts`

npm dependencies: `npm i motion lucide-react`

Wingo UI dependencies (installed automatically):

- [Marketing Section](https://wingo-ui.com/components/marketing-section) ([Markdown](https://wingo-ui.com/components/marketing-section.md))
- [Marketing Header](https://wingo-ui.com/components/marketing-header) ([Markdown](https://wingo-ui.com/components/marketing-header.md))
- [Marketing Footer](https://wingo-ui.com/components/marketing-footer) ([Markdown](https://wingo-ui.com/components/marketing-footer.md))
- [Team Section](https://wingo-ui.com/components/team-section) ([Markdown](https://wingo-ui.com/components/team-section.md))
- [Video Section](https://wingo-ui.com/components/video-section) ([Markdown](https://wingo-ui.com/components/video-section.md))
- [CTA Section](https://wingo-ui.com/components/cta-section) ([Markdown](https://wingo-ui.com/components/cta-section.md))
- [Avatar](https://wingo-ui.com/components/avatar) ([Markdown](https://wingo-ui.com/components/avatar.md))
- [Badge](https://wingo-ui.com/components/badge) ([Markdown](https://wingo-ui.com/components/badge.md))
- [Button](https://wingo-ui.com/components/button) ([Markdown](https://wingo-ui.com/components/button.md))
- [Countdown](https://wingo-ui.com/components/countdown) ([Markdown](https://wingo-ui.com/components/countdown.md))
- [Drawer](https://wingo-ui.com/components/drawer) ([Markdown](https://wingo-ui.com/components/drawer.md))
- [Empty State](https://wingo-ui.com/components/empty-state) ([Markdown](https://wingo-ui.com/components/empty-state.md))
- [Input](https://wingo-ui.com/components/input) ([Markdown](https://wingo-ui.com/components/input.md))
- [Navigation](https://wingo-ui.com/components/navigation) ([Markdown](https://wingo-ui.com/components/navigation.md))
- [Motion presets](https://wingo-ui.com/components/motion) ([Markdown](https://wingo-ui.com/components/motion.md))
- [Tones](https://wingo-ui.com/components/tones) ([Markdown](https://wingo-ui.com/components/tones.md))
- [UIProvider](https://wingo-ui.com/components/ui-config) ([Markdown](https://wingo-ui.com/components/ui-config.md))

## Usage

```tsx
// app/(marketing)/events/page.tsx
"use client"

import Link from "next/link"
import { EventsPage } from "@/components/templates/events-page"

export default function EventsRoute() {
  return (
    <EventsPage
      linkComponent={Link}
      onRegister={async ({ event, name, email }) => {
        const response = await fetch("/api/registrations", {
          method: "POST",
          headers: { "Content-Type": "application/json" },
          body: JSON.stringify({ event: event.slug, name, email }),
        })
        if (!response.ok) throw new Error("Could not register")
      }}
      onSubscribe={(email) => fetch("/api/newsletter", { method: "POST", body: email })}
    />
  )
}
```

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `design?` | `"classic" \| "bold"` | `"classic"` | The whole page's look. classic: a glow, a centered hero, a raised featured card with soft countdown tiles, date-block rows, a split replay, a recordings grid, compact speaker rows and a form closing card; bold: an aurora backdrop with gradient bands, a pill header, a huge start-aligned hero, the featured session on an inverted panel with large countdown tiles, ringed rows with filled date blocks, a chaptered replay, a bento of recordings, speaker cards, an inverted closing band and a wordmark footer. replayProps, speakersProps, ctaProps, headerProps and footerProps still win. |
| `background?` | `"plain" \| "soft" \| "glow" \| "aurora" \| "grid" \| "dots"` | `"glow"` | The main background: plain is the bare page color; the others tint the page and add a glow, an aurora, a grid or dots over the first screen. A design picks its own unless you set one. |
| `backgroundColor?` | `string` | `"oklch(0.62 0.14 275)"` | The tint and glow color of the main background. Without one, a non-neutral tone tints the page. |
| `bandBackground?` | `"muted" \| "tinted" \| "gradient" \| "dots"` | `"muted"` | The secondary background of the alternating bands. Cards, fields and tiles inside a band are lifted one step above it, so they never share its color. |
| `bandColor?` | `string` | `"oklch(0.62 0.14 275)"` | The tint of tinted and gradient bands; defaults to backgroundColor. |
| `featured?` | `EventsPageEvent \| null` | `"EVENTS_FEATURED"` | The highlighted session with the countdown, agenda, hosts and register form; null hides the card. |
| `events?` | `EventsPageEvent[]` | `"EVENTS_UPCOMING"` | { slug, title, type, start, end?, location, venue?, description, speakers, agenda?, seats?, seatsLeft?, price? }; listed by start date. 7 sample events. |
| `recordings?` | `EventsPageRecording[]` | `"EVENTS_RECORDINGS"` | { slug, title, type, date, duration (seconds), speakers, summary, views? } cards with a drawn title card. |
| `speakers?` | `EventsPageSpeaker[]` | `"EVENTS_SPEAKERS"` | { name, role, avatar? } of the speakers row; also gives the hosts their roles in the detail panel. |
| `replayChapters?` | `VideoSectionChapter[]` | `"EVENTS_REPLAY_CHAPTERS"` | The replay's chapters over the drawn walkthrough. |
| `labels?` | `Partial<EventsPageLabels>` | `"DEFAULT_EVENTS_PAGE_LABELS"` | Every visible string, including the form's messages and the time zone note. |
| `defaultType?` | `"all" \| "webinar" \| "meetup" \| "conference"` | `"all"` | The type chip selected on load. |
| `timeZone?` | `string` | `"America/New_York"` | The IANA time zone the dates and times are shown in; visitors can switch to their own. |
| `now?` | `Date \| number` |  | Pins the countdown's clock (thumbnails, tests); without it the countdown ticks live. |
| `eventDetail?` | `"drawer" \| "link"` | `"drawer"` | drawer: a click opens the event and a register form in a side panel (a sheet on phones); link: rows navigate to eventHref. |
| `eventHref?` | `(event: EventsPageEvent) => string` | `` "(event) => `/events/${event.slug}`" `` | Where each upcoming row links to. |
| `recordingHref?` | `(recording: EventsPageRecording) => string` | `` "(recording) => `/events/${recording.slug}`" `` | Where each recording card links to. |
| `onOpenEvent?` | `(event: EventsPageEvent, mouseEvent: MouseEvent<HTMLAnchorElement>) => void` |  | Runs when a row is clicked; mouseEvent.preventDefault() keeps the panel closed and stops the navigation. |
| `onRegister?` | `(registration: EventsRegistration) => (void \| Promise<unknown>)` |  | Sends { event, name, email } from the featured card and the panel; a promise keeps the button loading, a rejection shows labels.failed. Without it the page waits 900 ms and confirms. |
| `onSubscribe?` | `(email: string) => (void \| Promise<unknown>)` |  | The closing card's invite signup; a rejection shows an error. Without it: 900 ms, then success. |
| `replayLayout?` | `"split" \| "centered" \| "chapters"` | `"split"` | The classic design's replay: heading beside the player, player under the heading, or a chapter panel next to it. |
| `ctaVariant?` | `"form" \| "inverted" \| "soft"` | `"form"` | The classic design's closing invite signup: a raised card with the form beside the copy, a solid band or a gray band. |
| `tone?` | `"neutral" \| "brand" \| "success" \| "warning" \| "danger" \| "info"` | `"neutral"` | The selected type chip, date blocks, type badges, countdown tiles and the replay's play button. |
| `ctaTone?` | `"neutral" \| "brand" \| "success" \| "warning" \| "danger" \| "info"` | `"neutral"` | See upcoming events, Get started, every Register button and Get invites; brand is the marketing orange. |
| `showCountdown?` | `boolean` | `true` | The live countdown on the featured card. |
| `showReplay?` | `boolean` | `true` | The replay section with the chaptered walkthrough. |
| `showRecordings?` | `boolean` | `true` | The past recordings grid and the hero's Watch recordings button. |
| `showSpeakers?` | `boolean` | `true` | The speakers row. |
| `showCta?` | `boolean` | `true` | The closing invite signup. |
| `header?` | `boolean` | `true` | The marketing header; off inside a site layout. |
| `footer?` | `boolean` | `true` | The marketing footer. |
| `headerProps?` | `Partial<MarketingHeaderProps>` |  | Passed to MarketingHeader. |
| `footerProps?` | `Partial<MarketingFooterProps>` |  | Passed to MarketingFooter. |
| `replayProps?` | `Partial<VideoSectionProps>` |  | Passed to the replay's VideoSection, last. |
| `speakersProps?` | `Partial<TeamSectionProps>` |  | Passed to the speakers' TeamSection, last. |
| `ctaProps?` | `Partial<CtaSectionProps>` |  | Passed to the closing CtaSection, last. |
| `animateIn?` | `boolean` | `true` | The hero and featured card rise in once on mount; off in thumbnails and under reduced motion. |
| `locale?` | `string` | `"en-US"` | Intl locale for dates, times, the countdown and view counts. |
| `linkComponent?` | `(props: LinkComponentProps) => ReactNode` | `"<a>"` | The router link for the header, footer, rows and recording cards (next/link in an app). |
| `className?` | `string` |  | Classes for the root. |
| `classNames?` | `Partial<Record<EventsPageSlot, string>>` |  | Classes for header, hero, featured, countdown, register, upcoming, filters, event, replay, recordings, recording, speakers, cta, drawer and footer. |

## Parts

### EVENTS_PAGE_DESIGNS (constant)

The design names, classic first: ["classic", "bold"].

### EventsPageDesign (type)

The values of the design prop: "classic" | "bold".

### formatEventWhen (function)

formatEventWhen(event, timeZone, locale?, long?): "Wed, Oct 21 · 1:00 PM to 2:00 PM ET" (an en dash in the output), or a day range for multi-day events.

### formatDuration (function)

formatDuration(seconds): "42:18" or "1:12:30".

### zoneAbbreviation (function)

zoneAbbreviation(time, timeZone, locale?): "ET", "PT" or "GMT+1".

### zoneName (function)

zoneName(time, timeZone, locale?): "Eastern Time".

### eventToIcs (function)

eventToIcs(event): the event as an .ics calendar file's text.

### EVENTS_PAGE_SAMPLE (constant)

All the sample content in one object: featured, events, recordings, speakers and replayChapters.

### EVENTS_FEATURED (constant)

The Acme 3.0 launch webinar on October 21, 2026.

### EVENTS_UPCOMING (constant)

Seven upcoming webinars, meetups and the Ship Small conference.

### EVENTS_RECORDINGS (constant)

Six past recordings.

### EVENTS_SPEAKERS (constant)

Eight speakers from the Acme team.

### EVENTS_REPLAY_CHAPTERS (constant)

The four chapters of the 2.9 launch recap.

### DEFAULT_EVENTS_PAGE_LABELS (constant)

The English strings.

### EventsPageProps (type)

Props of EventsPage.

### EventsPageEvent (type)

One upcoming or featured event.

### EventsPageRecording (type)

One past recording: { slug, title, type, date, duration (seconds), speakers, summary, views? }.

### EventsRegistration (type)

{ event, name, email }: what onRegister receives.

### EventsPageEventType (type)

"webinar" | "meetup" | "conference".

### EventsPageSpeaker (type)

One speaker: a TeamMember { name, role, avatar? }.

### EventsPageTypeFilter (type)

"all" or an event type: the selected chip.

### EventsPageEventDetail (type)

"drawer" | "link": what a row click does.

### EventsPageLabels (type)

The shape of labels: strings plus a few formatters (seatsLeft, hosts, days...).

### EventsPageSlot (type)

The classNames keys.

## Examples

- **Bold design**: design="bold": a huge start-aligned hero, the featured session on an inverted panel, filled date blocks, a bento of recordings, speaker cards and an inverted closing band.
- **Brand actions**: tone and ctaTone brand: orange chips, date blocks, countdown tiles and Register buttons.
- **Meetups on the West Coast**: Opens on the Meetups chip with times in Pacific Time, and no replay.
- **Event list inside a site**: No header, footer, replay or speakers: the featured webinar, the list and the recordings.
- **Nothing scheduled**: No featured session and an empty list: the empty state points to the recordings.

## See also

- [Countdown](https://wingo-ui.com/components/countdown) ([Markdown](https://wingo-ui.com/components/countdown.md))
- [Video Section](https://wingo-ui.com/components/video-section) ([Markdown](https://wingo-ui.com/components/video-section.md))
- [Team Section](https://wingo-ui.com/components/team-section) ([Markdown](https://wingo-ui.com/components/team-section.md))
- [Drawer](https://wingo-ui.com/components/drawer) ([Markdown](https://wingo-ui.com/components/drawer.md))
- [Careers Page](https://wingo-ui.com/templates/careers-page) ([Markdown](https://wingo-ui.com/templates/careers-page.md))

---

Canonical: https://wingo-ui.com/templates/events-page
More components: https://wingo-ui.com/components · Index for agents: https://wingo-ui.com/llms.txt
