Skip to content

Pixel tile glow

Dark hero beside a glowing pixel tile shader.

Usage

Usage
import { HeroPixelTile } from '@/components/blocks/hero-section-12'


<HeroPixelTile />


<HeroPixelTile
  brand="Quanta"
  eyebrow="New: usage-based billing"
  headline={['Pricing that scales', 'with every customer.']}
  description="Meter usage, run experiments and invoice in any currency from one billing engine."
  signIn={null}
  colors={{ base: '#0B0716', primary: '#7C5AF0', secondary: '#C09AFF', highlight: '#F7F6FF' }}
  cellSize={56}
/>

Install

pnpm dlx shadcn@latest add @pastaui-pro/hero-section-12

Source

Props

Pixel tile glow props
PropTypeDefaultDescription
brand / brandHrefstring= Tessera / #Brand name and link next to the tile logo mark.
navLinks{ label: string; href: string }[]= Platform, Tokens, Docs, Customers, PricingLinks beside the brand. Below md they move into a two-column sheet of link tiles.
signIn{ label: string; href: string } | null= Sign inQuiet text link before the CTA and in the mobile sheet. null hides it.
cta{ label: string; href: string }= Get startedWhite button on the right of the nav. Also shown in the mobile sheet.
eyebrowstring | null= 'Tessera 3.0 is here'Chip with a glowing blue square above the headline. null hides it.
headlinestring[]= ['Build the system,', 'not the screens.']One entry per headline line.
descriptionstring= Tokens, components and docs that stay in lockstep…Supporting copy under the headline.
primaryAction / secondaryAction{ label: string; href: string }= Start for free / Book a demoWhite and frosted buttons under the description.
colorsPartial<{ base: string; primary: string; secondary: string; highlight: string }>= { base: '#04070F', primary: '#2B7FFF', secondary: '#8EC5FF', highlight: '#DCEBFF' }Glow palette passed to the Pixel tile glow background: near-black base, blue glow, light blue centre and a near-white bloom in the top corner.
cellSizenumber= 64Tile size in CSS pixels. Tiles shrink a little on small screens.
speednumber= 1How fast the glow drifts. 0 freezes it.
interactiveboolean= trueBrightens the tiles around a mouse pointer.
classNamestring= —Additional classes for the section.
styleCSSProperties= —Override the --pp-* theme and type variables inline.