
3D Extruded Buildings & Urban Footprints
Real-world 3D building extrusions with dynamic sunlight shadows, terrain DEM elevations, and pitch/bearing camera controls.
Four large feature panels in a two-by-two grid, each with a generous illustration slot built from primitives, a headline, supporting copy, and a quiet inline link.
Also available for Vue ->$pnpm dlx shadcn@latest add https://uipkge.dev/r/react/features-2x2-spotlight.json$npx shadcn@latest add https://uipkge.dev/r/react/features-2x2-spotlight.json$yarn dlx shadcn@latest add https://uipkge.dev/r/react/features-2x2-spotlight.json$bunx shadcn@latest add https://uipkge.dev/r/react/features-2x2-spotlight.jsonnpx shadcn@latest add @uipkge-react/features-2x2-spotlightInstalls to:components/blocks/'use client'
import { ArrowRight } from 'lucide-react'
import { Badge } from '@/components/ui/badge'
import { Button } from '@/components/ui/button'
import { Card, CardContent } from '@/components/ui/card'
import { Progress } from '@/components/ui/progress'
import { Separator } from '@/components/ui/separator'
const panels = [
{
eyebrow: 'Modelling',
title: 'One definition, every surface',
body: 'Dashboards, exports, and the API all resolve the same certified metric, so the number cannot disagree with itself.',
link: 'See the metric layer',
kind: 'lineage',
},
{
eyebrow: 'Governance',
title: 'Permissions you can prove',
body: 'Scope resolves per query from your identity provider, and every evaluation lands in an exportable audit trail.',
link: 'Read the access model',
kind: 'access',
},
{
eyebrow: 'Performance',
title: 'Budgeted, not throttled',
body: 'Each team gets a query budget enforced at run time, with materialised aggregates carrying the frequent load.',
link: 'See the caching rules',
kind: 'budget',
},
{
eyebrow: 'Delivery',
title: 'Ship without a redeploy',
body: 'Publishing a definition change rolls out to every consumer immediately, and reverting is the same one click.',
link: 'How releases work',
kind: 'release',
},
]
const lineage = ['warehouse.orders', 'metrics.revenue_net', 'dashboard.exec_summary']
const access = [
{ label: 'EMEA analyst', value: 'Region-scoped' },
{ label: 'Finance lead', value: 'Full ledger' },
{ label: 'Contractor', value: 'No payroll' },
]
const budgets = [
{ team: 'Finance', used: 62 },
{ team: 'RevOps', used: 38 },
{ team: 'Product', used: 81 },
]
const releases = [
{ version: 'v128', note: 'revenue_net → trailing 28d' },
{ version: 'v127', note: 'added margin_by_channel' },
]
export function Features2x2Spotlight() {
return (
<section data-slot="features-2x2-spotlight" className="bg-background">
<div className="mx-auto max-w-6xl px-6 py-20 lg:py-28">
<div className="max-w-2xl">
<Badge variant="secondary">Platform</Badge>
<h2 className="mt-4 text-3xl font-semibold tracking-tight sm:text-4xl">Four things it does properly</h2>
<p className="text-muted-foreground mt-3 text-lg">
Each panel is a mechanism, not a promise — the illustration is the real shape of the feature.
</p>
</div>
<div className="mt-12 grid gap-5 md:grid-cols-2">
{panels.map((panel) => (
<Card key={panel.title} className="group overflow-hidden">
<CardContent className="flex h-full flex-col p-0">
{/* Illustration slot: built from primitives so it themes with the
page instead of shipping a baked screenshot. */}
<div className="bg-muted/40 border-border border-b p-6">
{panel.kind === 'lineage' && (
<div className="space-y-2">
{lineage.map((node, index) => (
<div
key={node}
className={`border-border bg-card rounded-md border px-3 py-2 font-mono text-xs ${
index === lineage.length - 1 ? 'ml-8' : index === 1 ? 'ml-4' : ''
}`}
>
{node}
</div>
))}
</div>
)}
{panel.kind === 'access' && (
<div className="divide-border border-border bg-card divide-y rounded-md border">
{access.map((row) => (
<div key={row.label} className="flex items-center justify-between gap-3 px-3 py-2">
<span className="text-xs font-medium">{row.label}</span>
<span className="text-muted-foreground font-mono text-xs">{row.value}</span>
</div>
))}
</div>
)}
{panel.kind === 'budget' && (
<div className="space-y-3">
{budgets.map((row) => (
<div key={row.team}>
<div className="flex items-baseline justify-between gap-3">
<span className="text-xs font-medium">{row.team}</span>
<span className="text-muted-foreground font-mono text-xs">{row.used}%</span>
</div>
<Progress value={row.used} className="mt-1.5 h-1.5" aria-label={`${row.team} budget used`} />
</div>
))}
</div>
)}
{panel.kind === 'release' && (
<div className="space-y-3">
{releases.map((release) => (
<div key={release.version} className="flex items-baseline gap-3">
<span className="text-primary font-mono text-xs">{release.version}</span>
<span className="text-muted-foreground min-w-0 truncate text-xs">{release.note}</span>
</div>
))}
<Separator />
<p className="text-muted-foreground text-xs">Rolled out to 41 consumers, no redeploy.</p>
</div>
)}
</div>
<div className="flex flex-1 flex-col p-6">
<p className="text-muted-foreground font-mono text-xs tracking-[0.14em] uppercase">{panel.eyebrow}</p>
<h3 className="mt-2 text-lg font-semibold tracking-tight">{panel.title}</h3>
<p className="text-muted-foreground mt-2 text-sm leading-relaxed">{panel.body}</p>
<Button variant="link" className="mt-auto h-auto justify-start p-0 pt-4 text-sm">
{panel.link}
<ArrowRight
className="ml-1.5 size-3.5 transition-transform group-hover:translate-x-0.5"
aria-hidden="true"
/>
</Button>
</div>
</CardContent>
</Card>
))}
</div>
</div>
</section>
)
}
Raw manifest:https://uipkge.dev/r/react/features-2x2-spotlight.json