Conference Hero with Image
Split-layout conference hero: a date/eyebrow badge, large heading and subheading, location line, a static attendee-count stat, a primary and secondary CTA pair, and a featured photo. Perfect for developer conferences and tech summits.
Docs
Installation
A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its badge, button, media-slot dependencies and any missing npm packages, and installs them straight into your project.
npx shadcn add https://staaarter.com/r/conference-hero-with-image.jsonPrefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/event/event1.tsx instead.
Usage
The file also exports event1Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.
import { Event1, event1Demo } from "@/components/blocks/event/event1"; export default function Page() { return <Event1 {...event1Demo} />; }
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| eyebrow | string | undefined | Badge text above the heading, e.g. an event date range. |
| heading | ReactNode | none | Large hero heading. |
| subheading | string | undefined | Supporting paragraph under the heading. |
| location | string | none | Event location line, shown with a map-pin icon. |
| attendeeCount | string | undefined | Static attendee-count stat, e.g. "2,400+ attendees", shown with a users icon. |
| primaryCta | EventCtaLink | undefined | Primary button label + href, e.g. "Get your ticket". |
| secondaryCta | EventCtaLink | undefined | Secondary outline button label + href, e.g. "View schedule". |
| photo | { src: string; alt: string } | undefined | Featured photo; renders a placeholder via MediaSlot when omitted. |
| className | string | none | Extra classes for the outer section element. |
Types
interface EventCtaLink { label: string; href: string; }
Behavior notes
- The attendee-count stat is a static string prop, not a live counter; it does not update or animate.
- primaryCta and secondaryCta render as plain links (Button with render={<Link/>}) pointing at the href you pass; there is no real ticketing flow or navigation wired up, they're decorative in the demo.
- The photo tile uses MediaSlot and falls back to a placeholder gradient when no photo prop is supplied.
More Event Blocks
View all →minimal-event-hero
Minimal Event Hero
Centered, image-free hero with an oversized heading, date/location line, and two CTAs.
event-hero-with-ticket-pricing
Event Hero with Ticket Pricing
Centered hero with an early-bird price, a strikethrough original price, and a deadline note.
event-hero-with-social-proof
Event Hero with Social Proof
Hero with a heading, a 3-stat strip (attendees/speakers/countries), and a trusted-by company row.
personal-schedule-builder
Personal Schedule Builder
Interactive session picker that lets attendees build their own conference agenda.
team-discount-calculator
Team Discount Calculator
Live quantity stepper that applies tiered group discounts to a seat total.
ticket-selection-cart
Ticket Selection Cart
Multi-tier ticket selector with per-tier quantity steppers and a live cart total.