CTA

Simple In Card

/* This example requires Tailwind CSS v2.0+ */
export default function Example() {
  return (
    <div className='bg-gray-50 pt-12 sm:pt-16'>
      <div className='max-w-7xl mx-auto px-4 sm:px-6 lg:px-8'>
        <div className='max-w-4xl mx-auto text-center'>
          <h2 className='text-3xl font-extrabold text-gray-900 sm:text-4xl'>
            Trusted by developers from over 80 planets
          </h2>
          <p className='mt-3 text-xl text-gray-500 sm:mt-4'>
            Lorem ipsum dolor, sit amet consectetur adipisicing elit. Repellendus repellat
            laudantium.
          </p>
        </div>
      </div>
      <div className='mt-10 pb-12 bg-white sm:pb-16'>
        <div className='relative'>
          <div className='absolute inset-0 h-1/2 bg-gray-50' />
          <div className='relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8'>
            <div className='max-w-4xl mx-auto'>
              <dl className='rounded-lg bg-white shadow-lg sm:grid sm:grid-cols-3'>
                <div className='flex flex-col border-b border-gray-100 p-6 text-center sm:border-0 sm:border-r'>
                  <dt className='order-2 mt-2 text-lg leading-6 font-medium text-gray-500'>
                    Pepperoni
                  </dt>
                  <dd className='order-1 text-5xl font-extrabold text-blue-600'>100%</dd>
                </div>
                <div className='flex flex-col border-t border-b border-gray-100 p-6 text-center sm:border-0 sm:border-l sm:border-r'>
                  <dt className='order-2 mt-2 text-lg leading-6 font-medium text-gray-500'>
                    Delivery
                  </dt>
                  <dd className='order-1 text-5xl font-extrabold text-blue-600'>24/7</dd>
                </div>
                <div className='flex flex-col border-t border-gray-100 p-6 text-center sm:border-0 sm:border-l'>
                  <dt className='order-2 mt-2 text-lg leading-6 font-medium text-gray-500'>
                    Calories
                  </dt>
                  <dd className='order-1 text-5xl font-extrabold text-blue-600'>100k</dd>
                </div>
              </dl>
            </div>
          </div>
        </div>
      </div>
    </div>
  );
}

Simple On Brand

/* This example requires Tailwind CSS v2.0+ */
export default function Example() {
  return (
    <div className='bg-blue-800'>
      <div className='max-w-7xl mx-auto py-12 px-4 sm:py-16 sm:px-6 lg:px-8 lg:py-20'>
        <div className='max-w-4xl mx-auto text-center'>
          <h2 className='text-3xl font-extrabold text-white sm:text-4xl'>
            Trusted by developers from over 80 planets
          </h2>
          <p className='mt-3 text-xl text-blue-200 sm:mt-4'>
            Lorem ipsum dolor, sit amet consectetur adipisicing elit. Repellendus repellat
            laudantium.
          </p>
        </div>
        <dl className='mt-10 text-center sm:max-w-3xl sm:mx-auto sm:grid sm:grid-cols-3 sm:gap-8'>
          <div className='flex flex-col'>
            <dt className='order-2 mt-2 text-lg leading-6 font-medium text-blue-200'>Pepperoni</dt>
            <dd className='order-1 text-5xl font-extrabold text-white'>100%</dd>
          </div>
          <div className='flex flex-col mt-10 sm:mt-0'>
            <dt className='order-2 mt-2 text-lg leading-6 font-medium text-blue-200'>Delivery</dt>
            <dd className='order-1 text-5xl font-extrabold text-white'>24/7</dd>
          </div>
          <div className='flex flex-col mt-10 sm:mt-0'>
            <dt className='order-2 mt-2 text-lg leading-6 font-medium text-blue-200'>Calories</dt>
            <dd className='order-1 text-5xl font-extrabold text-white'>100k+</dd>
          </div>
        </dl>
      </div>
    </div>
  );
}

Split With Image

/* This example requires Tailwind CSS v2.0+ */
import { ExternalLinkIcon } from '@heroicons/react/solid';

export default function Example() {
  return (
    <div className='relative bg-gray-800'>
      <div className='h-56 bg-blue-600 sm:h-72 md:absolute md:left-0 md:h-full md:w-1/2'>
        <img
          className='w-full h-full object-cover'
          src='https://images.unsplash.com/photo-1525130413817-d45c1d127c42?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1920&q=60&blend=6366F1&sat=-100&blend-mode=multiply'
          alt=''
        />
      </div>
      <div className='relative max-w-7xl mx-auto px-4 py-12 sm:px-6 lg:px-8 lg:py-16'>
        <div className='md:ml-auto md:w-1/2 md:pl-10'>
          <h2 className='text-base font-semibold uppercase tracking-wider text-gray-300'>
            Award winning support
          </h2>
          <p className='mt-2 text-white text-3xl font-extrabold tracking-tight sm:text-4xl'>
            We’re here to help
          </p>
          <p className='mt-3 text-lg text-gray-300'>
            Lorem ipsum dolor sit amet, consectetur adipiscing elit. Et, egestas tempus tellus etiam
            sed. Quam a scelerisque amet ullamcorper eu enim et fermentum, augue. Aliquet amet
            volutpat quisque ut interdum tincidunt duis.
          </p>
          <div className='mt-8'>
            <div className='inline-flex rounded-md shadow'>
              <a
                href='#'
                className='inline-flex items-center justify-center px-5 py-3 border border-transparent text-base font-medium rounded-md text-gray-900 bg-white hover:bg-gray-50'
              >
                Visit the help center
                <ExternalLinkIcon className='-mr-1 ml-3 h-5 w-5 text-gray-400' aria-hidden='true' />
              </a>
            </div>
          </div>
        </div>
      </div>
    </div>
  );
}

With Fading Background Image

/* This example requires Tailwind CSS v2.0+ */
const metrics = [
  { id: 1, stat: '8K+', emphasis: 'Companies', rest: 'use laoreet amet lacus nibh integer quis.' },
  { id: 2, stat: '25K+', emphasis: 'Countries around the globe', rest: 'lacus nibh integer quis.' },
  {
    id: 3,
    stat: '98%',
    emphasis: 'Customer satisfaction',
    rest: 'laoreet amet lacus nibh integer quis.',
  },
  { id: 4, stat: '12M+', emphasis: 'Issues resolved', rest: 'lacus nibh integer quis.' },
];

export default function Example() {
  return (
    <div className='relative bg-gray-900'>
      <div className='h-80 w-full absolute bottom-0 xl:inset-0 xl:h-full'>
        <div className='h-full w-full xl:grid xl:grid-cols-2'>
          <div className='h-full xl:relative xl:col-start-2'>
            <img
              className='h-full w-full object-cover opacity-25 xl:absolute xl:inset-0'
              src='https://images.unsplash.com/photo-1521737852567-6949f3f9f2b5?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=2830&q=80&sat=-100'
              alt='People working on laptops'
            />
            <div
              aria-hidden='true'
              className='absolute inset-x-0 top-0 h-32 bg-gradient-to-b from-gray-900 xl:inset-y-0 xl:left-0 xl:h-full xl:w-32 xl:bg-gradient-to-r'
            />
          </div>
        </div>
      </div>
      <div className='max-w-4xl mx-auto px-4 sm:px-6 lg:max-w-7xl lg:px-8 xl:grid xl:grid-cols-2 xl:grid-flow-col-dense xl:gap-x-8'>
        <div className='relative pt-12 pb-64 sm:pt-24 sm:pb-64 xl:col-start-1 xl:pb-24'>
          <h2 className='text-sm font-semibold text-blue-300 tracking-wide uppercase'>
            Valuable Metrics
          </h2>
          <p className='mt-3 text-3xl font-extrabold text-white'>
            Get actionable data that will help grow your business
          </p>
          <p className='mt-5 text-lg text-gray-300'>
            Rhoncus sagittis risus arcu erat lectus bibendum. Ut in adipiscing quis in viverra
            tristique sem. Ornare feugiat viverra eleifend fusce orci in quis amet. Sit in et vitae
            tortor, massa. Dapibus laoreet amet lacus nibh integer quis. Eu vulputate diam sit
            tellus quis at.
          </p>
          <div className='mt-12 grid grid-cols-1 gap-y-12 gap-x-6 sm:grid-cols-2'>
            {metrics.map((item) => (
              <p key={item.id}>
                <span className='block text-2xl font-bold text-white'>{item.stat}</span>
                <span className='mt-1 block text-base text-gray-300'>
                  <span className='font-medium text-white'>{item.emphasis}</span> {item.rest}
                </span>
              </p>
            ))}
          </div>
        </div>
      </div>
    </div>
  );
}