Bleed
Full-bleed split hero layout for landing pages and product shots: copy sits on the page column while the media runs off the window edge on either side. Full band or inset rounded card variants; parts stack in narrow spaces.
The source comes with full access.
One payment of $149 opens the source right here and lets the CLI install every paid component, with lifetime updates.
Installation
pnpm dlx shadcn@latest add @01orbital/bleednpx shadcn@latest add @01orbital/bleedyarn dlx shadcn@latest add @01orbital/bleedbunx --bun shadcn@latest add @01orbital/bleedUsage
import {
Announcement,
AnnouncementAction,
AnnouncementText,
} from "@/components/announcement/announcement"
import {
Bleed,
BleedContent,
BleedMedia,
} from "@/components/bleed/bleed"
import { Heading } from "@/components/heading/heading"
import { Text } from "@/components/text/text"
import { Grain } from "@/components/texture/grain"
import { Button } from "@/components/ui/button"
const COPY = {
announcement: "Orbcore raises 80M Series A funding",
learn: "Learn more",
title: "Customer support that feels like a conversation.",
description:
"Simplify your shared inbox, collaborate effortlessly, and give every customer a reply that feels personal, even if it was generated by a bot.",
placeholder: "Enter your email",
cta: "Request invite",
}
// A card on a painted ground; the announcement sits 24 over the headline.
export default function BleedDemo() {
return (
<Bleed
variant="card"
className="dark bg-linear-to-b from-[oklch(0.530_0.051_323.9)] to-[oklch(0.563_0.052_356.6)]"
>
<Grain variant="paper" opacity={0.3} />
<BleedContent className="gap-6">
<Announcement href="#" className="self-start">
<AnnouncementText>{COPY.announcement}</AnnouncementText>
<AnnouncementAction>{COPY.learn}</AnnouncementAction>
</Announcement>
<Heading>{COPY.title}</Heading>
<Text className="max-w-3xl text-lg/8 text-foreground/70">
{COPY.description}
</Text>
<form className="flex max-w-full rounded-full bg-foreground/15 p-1 inset-ring-1 inset-ring-foreground/10">
<input
type="email"
aria-label="Email address"
placeholder={COPY.placeholder}
className="min-w-0 flex-1 px-3 text-sm/7 text-scene-foreground placeholder:text-scene-foreground/60 focus:outline-hidden"
/>
<Button type="submit" size="sm" className="rounded-full">
{COPY.cta}
</Button>
</form>
</BleedContent>
<BleedMedia>
{/* eslint-disable-next-line @next/next/no-img-element */}
<img
src="https://01orbital.dev/screenshots/dashboard-dark.webp"
alt=""
width={2880}
height={1666}
/>
</BleedMedia>
</Bleed>
)
}This example installs with everything it uses:
pnpm dlx shadcn@latest add @01orbital/bleed-demonpx shadcn@latest add @01orbital/bleed-demoyarn dlx shadcn@latest add @01orbital/bleed-demobunx --bun shadcn@latest add @01orbital/bleed-demoAnatomy
Bleed is built from 3 parts. In the example they nest like this:
Bleed
├─ BleedContent
└─ BleedMediaBleed: A hero whose copy sits on the page column and whose demo runs off the window's edge. From 64rem: a flexible gutter, 47rem of copy, 33rem of demo, a flexible gutter; below that the parts stack.cardinsets the band 8px and rounds it; the ground comes fromclassName.BleedContent: The copy. Sets no gap of its own: bring the stack.BleedMedia: The demo: natural width at the box's height, clipped at the edge. From 64rem it starts 96px down and ends flush with the band; the copy sets the height. A photo that should cover brings object-cover itself.
API reference
Bleed
A hero whose copy sits on the page column and whose demo runs off the window's edge. From 64rem: a flexible gutter, 47rem of copy, 33rem of demo, a flexible gutter; below that the parts stack. card insets the band 8px and rounds it; the ground comes from className.
Prop
Type
It also accepts the HTML attributes of the element it renders.
BleedContent
The copy. Sets no gap of its own: bring the stack.
It accepts the HTML attributes of the element it renders.
BleedMedia
The demo: natural width at the box's height, clipped at the edge. From 64rem it starts 96px down and ends flush with the band; the copy sets the height. A photo that should cover brings object-cover itself.
It accepts the HTML attributes of the element it renders.
Dependencies
npm: class-variance-authority, cn. The CLI installs them for you.
Last updated on