No notes defined.

  • Handle: @tw-ui-simple-stacked
  • Preview:
  • Filesystem Path: components/10-other-examples/tailwind-ui-components/newsletter-signup/simple-stacked.hbs
<div class="max-w-8xl mx-auto px-4 lg:px-6 absolute top-0 mt-8 left-0 right-0 mb-6">
    <div class="py-3 pl-6 pr-3 rounded-lg bg-gray-300 shadow-lg">
        <div class="flex items-center justify-between flex-wrap">
            <div class="flex flex-col md:flex-row w-full flex-1 flex md:items-center md:justify-center sm:w-0">
                <div>

                    <div class="flex flex-col md:flex-row text-2xl font-semibold">
                        <p class="mr-2">
                            Want product news and updates?
                        </p>
                        <p>
                            Sign up for our newsletter.
                        </p>
                    </div>

                    <div class="flex flex-col md:flex-row mt-4 items-center justify-center">

                        <input class="appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" id="email" type="text" placeholder="Enter Your Email">

                        <button class="w-full md:ml-4 px-12 py-2 inline-text bg-blue-500 rounded mt-2 md:mt-0 text-white">Notify Me</button>

                    </div>

                </div>
            </div>
        </div>
    </div>
</div>
<div class="max-w-8xl mx-auto px-4 lg:px-6 absolute top-0 mt-8 left-0 right-0 mb-6">
  <div class="py-3 pl-6 pr-3 rounded-lg bg-gray-300 shadow-lg">
    <div class="flex items-center justify-between flex-wrap">
      <div class="flex flex-col md:flex-row w-full flex-1 flex md:items-center md:justify-center sm:w-0">
        <div>

          <div class="flex flex-col md:flex-row text-2xl font-semibold">
            <p class="mr-2">
              {{ text1 }}
            </p>
            <p>
              {{ text2 }}
            </p>
          </div>

          <div class="flex flex-col md:flex-row mt-4 items-center justify-center">

            <input
              class="appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline"
              id="email" type="text" placeholder="Enter Your Email">

            <button class="w-full md:ml-4 px-12 py-2 inline-text bg-blue-500 rounded mt-2 md:mt-0 text-white">{{ text3 }}</button>

          </div>

        </div>
      </div>
    </div>
  </div>
</div>
{
  "text1": "Want product news and updates?",
  "text2": "Sign up for our newsletter.",
  "text3": "Notify Me"
}