Card 7

PreviousNext

Overlay card with image background and overlaid text content

Docs
shadcn-studiocomponent

Preview

Loading preview…
registry/new-york/components/card/card-07.tsx
import { Card, CardContent, CardHeader, CardTitle } from '@/registry/new-york/ui/card'

const CardOverlayDemo = () => {
  return (
    <Card className='before:bg-primary/70 relative max-w-md py-0 before:absolute before:size-full before:rounded-xl'>
      <CardContent className='px-0'>
        <img
          src='https://cdn.shadcnstudio.com/ss-assets/components/card/image-8.png?widht=448&height=280&format=auto'
          alt='Banner'
          className='h-70 w-112 rounded-xl'
        />
      </CardContent>
      <div className='absolute'>
        <CardHeader className='text-primary-foreground w-full pt-6'>
          <CardTitle>Creative Catalyst</CardTitle>
        </CardHeader>
        <CardContent className='text-primary-foreground/80'>
          Step into a world where imagination takes the lead and every pixel tells a story. This is a space designed to
          unleash your creative potential without boundaries or time constraints. Explore bold ideas, experiment with
          vibrant concepts, and craft visuals that inspire and captivate.
        </CardContent>
      </div>
    </Card>
  )
}

export default CardOverlayDemo

Installation

npx shadcn@latest add @shadcn-studio/card-07

Usage

import { Card07 } from "@/components/card-07"
<Card07 />