cta-section-01

PreviousNext

Rounded card layout with app download content featuring heading, description, and App Store/Google Play download buttons

Docs
shadcn-studioblock

Preview

Loading preview…
registry/new-york/components/blocks/cta-section-01/cta-section-01.tsx
import { Card, CardContent } from '@/registry/new-york/ui/card'

const CTA = () => {
  return (
    <section className='bg-muted py-8 sm:py-16 lg:py-24'>
      <div className='mx-auto max-w-7xl px-4 sm:px-6 lg:px-8'>
        <Card className='rounded-3xl border-none py-8 shadow-lg sm:py-16 lg:py-24'>
          <CardContent className='flex flex-wrap items-center justify-between gap-8 px-8 sm:flex-nowrap sm:px-16 lg:px-24'>
            <div className='max-w-xs lg:max-w-lg'>
              <h2 className='mb-4 text-3xl font-bold'>Download our mobile app</h2>
              <p className='text-muted-foreground text-lg font-medium'>
                With a variety of unique blocks, you can effortlessly create a page without any coding. Build your next
                landing page with ease.
              </p>
            </div>
            <div className='flex flex-wrap items-center gap-6 max-md:w-full max-md:flex-col md:justify-end'>
              <div className='bg-card-foreground flex w-[200px] items-center gap-4 rounded-md px-6 py-3'>
                <img
                  src='https://cdn.shadcnstudio.com/ss-assets/brand-logo/apple-icon.png'
                  alt='App Store'
                  className='size-8.5 invert dark:invert-0'
                />
                <div className='flex flex-col items-start'>
                  <p className='text-card text-xs leading-4'>Download on the</p>
                  <p className='text-card text-base leading-6 font-medium opacity-90'>App Store</p>
                </div>
              </div>

              <div className='bg-card-foreground flex w-[200px] items-center gap-4 rounded-md px-6 py-3'>
                <img
                  src='https://cdn.shadcnstudio.com/ss-assets/brand-logo/google-play-icon.png'
                  alt='Google Play'
                  className='size-8.5'
                />
                <div className='flex flex-col items-start'>
                  <p className='text-card text-xs leading-4'>Download on the</p>
                  <p className='text-card text-base leading-6 font-medium opacity-90'>Google Play</p>
                </div>
              </div>
            </div>
          </CardContent>
        </Card>
      </div>
    </section>
  )
}

export default CTA

Installation

npx shadcn@latest add @shadcn-studio/cta-section-01

Usage

import { CtaSection01 } from "@/components/cta-section-01"
<CtaSection01 />