Glass Image Hero
A full-bleed rounded photo hero with corner-anchored content: glass social links and a floating info card up top, pill tags and a headline below, a lead and CTA to the side. Harvested from Linksmoor.
npx shadcn@latest add https://ui.develop-better-solutions.com/r/glass-image-hero.jsonDependencies:
lucide-reactUses:resilient-image
Usage
glass-image-hero-example.tsx
import { GlassImageHero } from "@dbs/ui";
import { Instagram, Twitter, Linkedin, Users, Flag } from "lucide-react";
export default function GlassImageHeroExample() {
return (
<GlassImageHero
image="/samples/linksmoor-hero.jpg"
imageAlt="Golf course fairway"
socials={[
{ label: "Instagram", icon: <Instagram className="size-4" /> },
{ label: "X", icon: <Twitter className="size-4" /> },
{ label: "LinkedIn", icon: <Linkedin className="size-4" /> },
]}
card={{
image: "/samples/linksmoor-hero-card.jpg",
imageAlt: "Mountain valley course",
detailsLabel: "Details",
detailsHref: "#",
title: "Limited slots available, book early!",
meta: [
{ icon: <Users className="size-3.5" />, label: "6 player slot" },
{ icon: <Flag className="size-3.5" />, label: "3 golf court" },
],
}}
tags={["Golfing", "Fairway", "Tee time", "Swing"]}
title={
<>
Tee off in perfect
<br className="hidden sm:block" /> surroundings
</>
}
description="Book your tee time at premium courses with world-class facilities and stunning landscapes."
ctaLabel="Book now"
ctaHref="#"
/>
);
}

