Newsletter

Centered Card With Graphic

/*
This example requires Tailwind CSS v2.0+ 

This example requires some changes to your config:


// tailwind.config.js
module.exports = {
  // ...
  plugins: [
    // ...
    require('@tailwindcss/forms'),
  ]
}

*/
export default function Example() {
return (
  <div className='bg-white py-16 sm:py-24'>
    <div className='relative sm:py-16'>
      <div aria-hidden='true' className='hidden sm:block'>
        <div className='absolute inset-y-0 left-0 w-1/2 bg-gray-50 rounded-r-3xl' />
        <svg
          className='absolute top-8 left-1/2 -ml-3'
          width={404}
          height={392}
          fill='none'
          viewBox='0 0 404 392'
        >
          <defs>
            <pattern
              id='8228f071-bcee-4ec8-905a-2a059a2cc4fb'
              x={0}
              y={0}
              width={20}
              height={20}
              patternUnits='userSpaceOnUse'
            >
              <rect
                x={0}
                y={0}
                width={4}
                height={4}
                className='text-gray-200'
                fill='currentColor'
              />
            </pattern>
          </defs>
          <rect width={404} height={392} fill='url(#8228f071-bcee-4ec8-905a-2a059a2cc4fb)' />
        </svg>
      </div>
      <div className='mx-auto max-w-md px-4 sm:max-w-3xl sm:px-6 lg:max-w-7xl lg:px-8'>
        <div className='relative rounded-2xl px-6 py-10 bg-blue-600 overflow-hidden shadow-xl sm:px-12 sm:py-20'>
          <div aria-hidden='true' className='absolute inset-0 -mt-72 sm:-mt-32 md:mt-0'>
            <svg
              className='absolute inset-0 h-full w-full'
              preserveAspectRatio='xMidYMid slice'
              xmlns='http://www.w3.org/2000/svg'
              fill='none'
              viewBox='0 0 1463 360'
            >
              <path
                className='text-blue-500 text-opacity-40'
                fill='currentColor'
                d='M-82.673 72l1761.849 472.086-134.327 501.315-1761.85-472.086z'
              />
              <path
                className='text-blue-700 text-opacity-40'
                fill='currentColor'
                d='M-217.088 544.086L1544.761 72l134.327 501.316-1761.849 472.086z'
              />
            </svg>
          </div>
          <div className='relative'>
            <div className='sm:text-center'>
              <h2 className='text-3xl font-extrabold text-white tracking-tight sm:text-4xl'>
                Get notified when we&rsquo;re launching.
              </h2>
              <p className='mt-6 mx-auto max-w-2xl text-lg text-blue-200'>
                Sagittis scelerisque nulla cursus in enim consectetur quam. Dictum urna sed
                consectetur neque tristique pellentesque.
              </p>
            </div>
            <form action='#' className='mt-12 sm:mx-auto sm:max-w-lg sm:flex'>
              <div className='min-w-0 flex-1'>
                <label htmlFor='cta-email' className='sr-only'>
                  Email address
                </label>
                <input
                  id='cta-email'
                  type='email'
                  className='block w-full border border-transparent rounded-md px-5 py-3 text-base text-gray-900 placeholder-gray-500 shadow-sm focus:outline-none focus:border-transparent focus:ring-2 focus:ring-white focus:ring-offset-2 focus:ring-offset-blue-600'
                  placeholder='Enter your email'
                />
              </div>
              <div className='mt-4 sm:mt-0 sm:ml-3'>
                <button
                  type='submit'
                  className='block w-full rounded-md border border-transparent px-5 py-3 bg-blue-500 text-base font-medium text-white shadow hover:bg-blue-400 focus:outline-none focus:ring-2 focus:ring-white focus:ring-offset-2 focus:ring-offset-blue-600 sm:px-10'
                >
                  Notify me
                </button>
              </div>
            </form>
          </div>
        </div>
      </div>
    </div>
  </div>
);
}

Simple Stacked

/* This example requires Tailwind CSS v2.0+ */
export default function Example() {
  return (
    <div className='bg-white'>
      <div className='max-w-7xl mx-auto py-12 px-4 sm:px-6 md:py-16 lg:px-8 lg:py-20'>
        <h2 className='text-3xl font-extrabold tracking-tight text-gray-900 sm:text-4xl'>
          <span className='block'>Ready to dive in?</span>
          <span className='block text-blue-600'>Start your free trial today.</span>
        </h2>
        <div className='mt-8 flex'>
          <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-white bg-blue-600 hover:bg-blue-700'
            >
              Get started
            </a>
          </div>
          <div className='ml-3 inline-flex'>
            <a
              href='#'
              className='inline-flex items-center justify-center px-5 py-3 border border-transparent text-base font-medium rounded-md text-blue-700 bg-blue-100 hover:bg-blue-200'
            >
              Learn more
            </a>
          </div>
        </div>
      </div>
    </div>
  );
}

Simple With Description

/*
This example requires Tailwind CSS v2.0+ 

This example requires some changes to your config:

// tailwind.config.js
module.exports = {
  // ...
  plugins: [
    // ...
    require('@tailwindcss/forms'),
  ]
}
*/
export default function Example() {
return (
  <div className='bg-white'>
    <div className='max-w-7xl mx-auto py-24 px-4 sm:px-6 lg:py-32 lg:px-8 lg:flex lg:items-center'>
      <div className='lg:w-0 lg:flex-1'>
        <h2 className='text-3xl font-extrabold text-gray-900 sm:text-4xl'>
          Sign up for our newsletter
        </h2>
        <p className='mt-3 max-w-3xl text-lg text-gray-500'>
          Anim aute id magna aliqua ad ad non deserunt sunt. Qui irure qui Lorem cupidatat
          commodo. Elit sunt amet fugiat veniam occaecat fugiat.
        </p>
      </div>
      <div className='mt-8 lg:mt-0 lg:ml-8'>
        <form className='sm:flex'>
          <label htmlFor='email-address' className='sr-only'>
            Email address
          </label>
          <input
            id='email-address'
            name='email-address'
            type='email'
            autoComplete='email'
            required
            className='w-full px-5 py-3 border border-gray-300 shadow-sm placeholder-gray-400 focus:ring-1 focus:ring-blue-500 focus:border-blue-500 sm:max-w-xs rounded-md'
            placeholder='Enter your email'
          />
          <div className='mt-3 rounded-md shadow sm:mt-0 sm:ml-3 sm:flex-shrink-0'>
            <button
              type='submit'
              className='w-full flex items-center justify-center py-3 px-5 border border-transparent text-base font-medium rounded-md text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500'
            >
              Notify me
            </button>
          </div>
        </form>
        <p className='mt-3 text-sm text-gray-500'>
          We care about the protection of your data. Read our{' '}
          <a href='#' className='font-medium underline'>
            Privacy Policy.
          </a>
        </p>
      </div>
    </div>
  </div>
);
}

With Description On Brand Card

/*
This example requires Tailwind CSS v2.0+ 

This example requires some changes to your config:

// tailwind.config.js
module.exports = {
  // ...
  plugins: [
    // ...
    require('@tailwindcss/forms'),
  ]
}
*/
export default function Example() {
return (
  <div className='bg-white'>
    <div className='max-w-7xl mx-auto px-4 py-12 sm:px-6 lg:py-16 lg:px-8'>
      <div className='py-10 px-6 bg-blue-700 rounded-3xl sm:py-16 sm:px-12 lg:p-20 lg:flex lg:items-center'>
        <div className='lg:w-0 lg:flex-1'>
          <h2 className='text-3xl font-extrabold tracking-tight text-white'>
            Sign up for our newsletter
          </h2>
          <p className='mt-4 max-w-3xl text-lg text-blue-100'>
            Anim aute id magna aliqua ad ad non deserunt sunt. Qui irure qui Lorem cupidatat
            commodo. Elit sunt amet fugiat.
          </p>
        </div>
        <div className='mt-12 sm:w-full sm:max-w-md lg:mt-0 lg:ml-8 lg:flex-1'>
          <form className='sm:flex'>
            <label htmlFor='email-address' className='sr-only'>
              Email address
            </label>
            <input
              id='email-address'
              name='email-address'
              type='email'
              autoComplete='email'
              required
              className='w-full border-white px-5 py-3 placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-blue-700 focus:ring-white rounded-md'
              placeholder='Enter your email'
            />
            <button
              type='submit'
              className='mt-3 w-full flex items-center justify-center px-5 py-3 border border-transparent text-base font-medium rounded-md text-white bg-blue-500 hover:bg-blue-400 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-blue-700 focus:ring-white sm:mt-0 sm:ml-3 sm:w-auto sm:flex-shrink-0'
            >
              Notify me
            </button>
          </form>
          <p className='mt-3 text-sm text-blue-100'>
            We care about the protection of your data. Read our{' '}
            <a href='#' className='text-white font-medium underline'>
              Privacy Policy.
            </a>
          </p>
        </div>
      </div>
    </div>
  </div>
);
}

With Paragraph On Brand Card

/*
This example requires Tailwind CSS v2.0+ 

This example requires some changes to your config:

// tailwind.config.js
module.exports = {
  // ...
  plugins: [
    // ...
    require('@tailwindcss/forms'),
  ]
}
*/
export default function Example() {
return (
  <div className='bg-white'>
    <div className='max-w-7xl mx-auto px-4 py-12 sm:px-6 lg:py-16 lg:px-8'>
      <div className='px-6 py-6 bg-blue-700 rounded-lg md:py-12 md:px-12 lg:py-16 lg:px-16 xl:flex xl:items-center'>
        <div className='xl:w-0 xl:flex-1'>
          <h2 className='text-2xl font-extrabold tracking-tight text-white sm:text-3xl'>
            Want product news and updates?
          </h2>
          <p className='mt-3 max-w-3xl text-lg leading-6 text-blue-200'>
            Sign up for our newsletter to stay up to date.
          </p>
        </div>
        <div className='mt-8 sm:w-full sm:max-w-md xl:mt-0 xl:ml-8'>
          <form className='sm:flex'>
            <label htmlFor='email-address' className='sr-only'>
              Email address
            </label>
            <input
              id='email-address'
              name='email-address'
              type='email'
              autoComplete='email'
              required
              className='w-full border-white px-5 py-3 placeholder-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-blue-700 focus:ring-white rounded-md'
              placeholder='Enter your email'
            />
            <button
              type='submit'
              className='mt-3 w-full flex items-center justify-center px-5 py-3 border border-transparent shadow text-base font-medium rounded-md text-white bg-blue-500 hover:bg-blue-400 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-blue-700 focus:ring-white sm:mt-0 sm:ml-3 sm:w-auto sm:flex-shrink-0'
            >
              Notify me
            </button>
          </form>
          <p className='mt-3 text-sm text-blue-200'>
            We care about the protection of your data. Read our{' '}
            <a href='#' className='text-white font-medium underline'>
              Privacy Policy.
            </a>
          </p>
        </div>
      </div>
    </div>
  </div>
);
}

With Paragraph On Dark

/*
This example requires Tailwind CSS v2.0+ 

This example requires some changes to your config:

// tailwind.config.js
module.exports = {
  // ...
  plugins: [
    // ...
    require('@tailwindcss/forms'),
  ]
}
*/
export default function Example() {
return (
  <div className='bg-gray-800'>
    <div className='max-w-7xl mx-auto py-12 px-4 sm:px-6 lg:py-16 lg:px-8 lg:flex lg:items-center'>
      <div className='lg:w-0 lg:flex-1'>
        <h2
          className='text-3xl font-extrabold tracking-tight text-white sm:text-4xl'
          id='newsletter-headline'
        >
          Sign up for our newsletter
        </h2>
        <p className='mt-3 max-w-3xl text-lg leading-6 text-gray-300'>
          Anim aute id magna aliqua ad ad non deserunt sunt. Qui irure qui Lorem cupidatat
          commodo. Elit sunt amet fugiat veniam occaecat fugiat.
        </p>
      </div>
      <div className='mt-8 lg:mt-0 lg:ml-8'>
        <form className='sm:flex'>
          <label htmlFor='email-address' className='sr-only'>
            Email address
          </label>
          <input
            id='email-address'
            name='email-address'
            type='email'
            autoComplete='email'
            required
            className='w-full px-5 py-3 border border-transparent placeholder-gray-500 focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-800 focus:ring-white focus:border-white sm:max-w-xs rounded-md'
            placeholder='Enter your email'
          />
          <div className='mt-3 rounded-md shadow sm:mt-0 sm:ml-3 sm:flex-shrink-0'>
            <button
              type='submit'
              className='w-full flex items-center justify-center px-5 py-3 border border-transparent text-base font-medium rounded-md text-white bg-blue-500 hover:bg-blue-600 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-800 focus:ring-blue-500'
            >
              Notify me
            </button>
          </div>
        </form>
        <p className='mt-3 text-sm text-gray-300'>
          We care about the protection of your data. Read our{' '}
          <a href='#' className='text-white font-medium underline'>
            Privacy Policy.
          </a>
        </p>
      </div>
    </div>
  </div>
);
}