Published on

Most Effective Ways To Make A Landing Page Cards With Tailwind CSS

Landing Page Cards

What is Tailwind CSS?

Tailwind CSS is a utility-first CSS framework that focuses on creating personalized user interfaces quickly. It can gives you all the building blocks you are able to create personalized designs without having to fight to override irritating opinionated styles. Also, Tailwind CSS is a highly configurable, low-level CSS framework.

The description of Landing Page Cards ui component

Small landing page with three cards

Why use Tailwind CSS to make a Landing Page Cards ui component?

  • It can make the building process of Landing Page Cards ui component faster and more easily.
  • Enables building complex responsive layouts and components freely.
  • Minimum lines of CSS code in Landing Page Cards component file.

The preview of Landing Page Cards ui component

Free download of the Landing Page Cards's source code

The source code of Landing Page Cards ui component

<link rel="stylesheet" href="https://demos.creative-tim.com/notus-js/assets/styles/tailwind.css">
<link rel="stylesheet" href="https://demos.creative-tim.com/notus-js/assets/vendor/@fortawesome/fontawesome-free/css/all.min.css">


<section class="relative  bg-blueGray-50">
<div class="relative pt-16 pb-32 flex content-center items-center justify-center min-h-screen-75">
        <div class="absolute top-0 w-full h-full bg-center bg-cover" style="
            background-image: url('https://images.unsplash.com/photo-1557804506-669a67965ba0?ixlib=rb-1.2.1&amp;ixid=eyJhcHBfaWQiOjEyMDd9&amp;auto=format&amp;fit=crop&amp;w=1267&amp;q=80');
          ">
          <span id="blackOverlay" class="w-full h-full absolute opacity-75 bg-black"></span>
        </div>
        <div class="container relative mx-auto">
          <div class="items-center flex flex-wrap">
            <div class="w-full lg:w-6/12 px-4 ml-auto mr-auto text-center">
              <div class="pr-12">
                <h1 class="text-white font-semibold text-5xl">
                  Your story starts with us.
                </h1>
                <p class="mt-4 text-lg text-blueGray-200">
                  This is a simple example of a Landing Page you can build using
                  Notus JS. It features multiple CSS components based on the
                  Tailwind CSS design system.
                </p>
              </div>
            </div>
          </div>
        </div>
        <div class="top-auto bottom-0 left-0 right-0 w-full absolute pointer-events-none overflow-hidden h-70-px" style="transform: translateZ(0px)">
          <svg class="absolute bottom-0 overflow-hidden" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none" version="1.1" viewBox="0 0 2560 100" x="0" y="0">
            <polygon class="text-blueGray-200 fill-current" points="2560 0 2560 100 0 100"></polygon>
          </svg>
        </div>
      </div>
      <section class="pb-10 bg-blueGray-200 -mt-24">
        <div class="container mx-auto px-4">
          <div class="flex flex-wrap">
            <div class="lg:pt-12 pt-6 w-full md:w-4/12 px-4 text-center">
              <div class="relative flex flex-col min-w-0 break-words bg-white w-full mb-8 shadow-lg rounded-lg">
                <div class="px-4 py-5 flex-auto">
                  <div class="text-white p-3 text-center inline-flex items-center justify-center w-12 h-12 mb-5 shadow-lg rounded-full bg-red-400">
                    <i class="fas fa-award"></i>
                  </div>
                  <h6 class="text-xl font-semibold">Awarded Agency</h6>
                  <p class="mt-2 mb-4 text-blueGray-500">
                    Divide details about your product or agency work into parts.
                    A paragraph describing a feature will be enough.
                  </p>
                </div>
              </div>
            </div>
            <div class="w-full md:w-4/12 px-4 text-center">
              <div class="relative flex flex-col min-w-0 break-words bg-white w-full mb-8 shadow-lg rounded-lg">
                <div class="px-4 py-5 flex-auto">
                  <div class="text-white p-3 text-center inline-flex items-center justify-center w-12 h-12 mb-5 shadow-lg rounded-full bg-lightBlue-400">
                    <i class="fas fa-retweet"></i>
                  </div>
                  <h6 class="text-xl font-semibold">Free Revisions</h6>
                  <p class="mt-2 mb-4 text-blueGray-500">
                    Keep you user engaged by providing meaningful information.
                    Remember that by this time, the user is curious.
                  </p>
                </div>
              </div>
            </div>
            <div class="pt-6 w-full md:w-4/12 px-4 text-center">
              <div class="relative flex flex-col min-w-0 break-words bg-white w-full mb-8 shadow-lg rounded-lg">
                <div class="px-4 py-5 flex-auto">
                  <div class="text-white p-3 text-center inline-flex items-center justify-center w-12 h-12 mb-5 shadow-lg rounded-full bg-emerald-400">
                    <i class="fas fa-fingerprint"></i>
                  </div>
                  <h6 class="text-xl font-semibold">Verified Company</h6>
                  <p class="mt-2 mb-4 text-blueGray-500">
                    Write a few lines about each one. A paragraph describing a
                    feature will be enough. Keep you user engaged!
                  </p>
                </div>
              </div>
            </div>
          </div>
           <footer class="relative  pt-8 pb-6 mt-1">
  <div class="container mx-auto px-4">
    <div class="flex flex-wrap items-center md:justify-between justify-center">
      <div class="w-full md:w-6/12 px-4 mx-auto text-center">
        <div class="text-sm text-blueGray-500 font-semibold py-1">
          Made with <a href="https://www.creative-tim.com/product/notus-js" class="text-blueGray-500 hover:text-gray-800" target="_blank">Notus JS</a> by <a href="https://www.creative-tim.com" class="text-blueGray-500 hover:text-blueGray-800" target="_blank"> Creative Tim</a>.
        </div>
      </div>
    </div>
  </div>
</footer>
      </section>
      </section>

How to make a Landing Page Cards with Tailwind CSS?

Install tailwind css of verion 2.2.4

Use the script html tag to import the script of Tailwind CSS of the version 2.2.4

<script src="https://cdn.tailwindcss.com"></script>

All the unility class needed to make a Landing Page Cards component

  • relative
  • bg-blueGray-50
  • pt-16
  • pb-32
  • flex
  • min-h-screen-75
  • absolute
  • top-0
  • w-full
  • h-full
  • bg-center
  • bg-cover
  • bg-black
  • mx-auto
  • flex-wrap
  • lg:w-6/12
  • px-4
  • ml-auto
  • mr-auto
  • text-center
  • pr-12
  • text-white
  • text-5xl
  • mt-4
  • text-lg
  • text-blueGray-200
  • top-auto
  • bottom-0
  • left-0
  • right-0
  • overflow-hidden
  • h-70-px
  • pb-10
  • bg-blueGray-200
  • -mt-24
  • lg:pt-12
  • pt-6
  • md:w-4/12
  • flex-col
  • min-w-0
  • bg-white
  • mb-8
  • py-5
  • flex-auto
  • p-3
  • inline-flex
  • w-12
  • h-12
  • mb-5
  • bg-red-400
  • text-xl
  • mt-2
  • mb-4
  • text-blueGray-500
  • bg-lightBlue-400
  • bg-emerald-400
  • pt-8
  • pb-6
  • mt-1
  • md:w-6/12
  • text-sm
  • py-1
  • hover:text-gray-800
  • hover:text-blueGray-800

64 steps to make a Landing Page Cards component with Tailwind CSS

  1. Use relative to position an element according to the normal flow of the document.

  2. Control the background color of an element to blueGray-50 using the bg-blueGray-50 utilities.

  3. Control the padding on top side of an element to 4rem using the pt-16 utilities.

  4. Control the padding on bottom side of an element to 8rem using the pb-32 utilities.

  5. Use flex to create a block-level flex container.

  6. Set the minimum width/height of an element using the min-h-screen-75 utilities.

  7. Use absolute to position an element outside of the normal flow of the document, causing neighboring elements to act as if the element doesn’t exist.

  8. Use the top-0 utilities to set the top position of a positioned element to 0rem.

  9. Use w-full to set an element to a 100% based width.

  10. Use h-full to set an element’s height to 100% of its parent, as long as the parent has a defined height.

  11. Control the background color of an element to center using the bg-center utilities.

  12. Control the background color of an element to cover using the bg-cover utilities.

  13. Control the background color of an element to black using the bg-black utilities.

  14. Control the horizontal margin of an element to auto using the mx-auto utilities.

  15. Use flex to create a block-level flex container.

  16. Use lg:w-6/12 to set an element to a fixed width(6/12) at only large screen sizes.

  17. Control the horizontal padding of an element to 1rem using the px-4 utilities.

  18. Control the margin on left side of an element to auto using the ml-auto utilities.

  19. Control the margin on right side of an element to auto using the mr-auto utilities.

  20. Control the text color of an element to center using the text-center utilities.

  21. Control the padding on right side of an element to 3rem using the pr-12 utilities.

  22. Control the text color of an element to white using the text-white utilities.

  23. Control the text color of an element to 5xl using the text-5xl utilities.

  24. Control the margin on top side of an element to 1rem using the mt-4 utilities.

  25. Control the text color of an element to lg using the text-lg utilities.

  26. Control the text color of an element to blueGray-200 using the text-blueGray-200 utilities.

  27. Use the top-auto utilities to set the top position of a positioned element to auto.

  28. Use the bottom-0 utilities to set the bottom position of a positioned element to 0rem.

  29. Use the left-0 utilities to set the left position of a positioned element to 0rem.

  30. Use the right-0 utilities to set the right position of a positioned element to 0rem.

  31. Use overflow-hidden to clip any content within an element that overflows the bounds of that element.

  32. Use h-70-px to set an element to a fixed height(70-px).

  33. Control the padding on bottom side of an element to 2.5rem using the pb-10 utilities.

  34. Control the background color of an element to blueGray-200 using the bg-blueGray-200 utilities.

  35. Control the margin on top side of an element to -6rem using the -mt-24 utilities.

  36. Control the padding on top side of an element to 3rem at only large screen sizes using the lg:pt-12 utilities.

  37. Control the padding on top side of an element to 1.5rem using the pt-6 utilities.

  38. Use md:w-4/12 to set an element to a fixed width(4/12) at only medium screen sizes.

  39. Use flex to create a block-level flex container.

  40. Set the minimum width/height of an element using the min-w-0 utilities.

  41. Control the background color of an element to white using the bg-white utilities.

  42. Control the margin on bottom side of an element to 2rem using the mb-8 utilities.

  43. Control the vertical padding of an element to 1.25rem using the py-5 utilities.

  44. Use flex to create a block-level flex container.

  45. Control the padding on all sides of an element to 0.75rem using the p-3 utilities.

  46. Use inline-flex to create an inline flex container that flows with text.

  47. Use w-12 to set an element to a fixed width(3rem).

  48. Use h-12 to set an element to a fixed height(3rem).

  49. Control the margin on bottom side of an element to 1.25rem using the mb-5 utilities.

  50. Control the background color of an element to red-400 using the bg-red-400 utilities.

  51. Control the text color of an element to xl using the text-xl utilities.

  52. Control the margin on top side of an element to 0.5rem using the mt-2 utilities.

  53. Control the margin on bottom side of an element to 1rem using the mb-4 utilities.

  54. Control the text color of an element to blueGray-500 using the text-blueGray-500 utilities.

  55. Control the background color of an element to lightBlue-400 using the bg-lightBlue-400 utilities.

  56. Control the background color of an element to emerald-400 using the bg-emerald-400 utilities.

  57. Control the padding on top side of an element to 2rem using the pt-8 utilities.

  58. Control the padding on bottom side of an element to 1.5rem using the pb-6 utilities.

  59. Control the margin on top side of an element to 0.25rem using the mt-1 utilities.

  60. Use md:w-6/12 to set an element to a fixed width(6/12) at only medium screen sizes.

  61. Control the text color of an element to sm using the text-sm utilities.

  62. Control the vertical padding of an element to 0.25rem using the py-1 utilities.

  63. Control the text color of an element to gray-800 on hover using the hover:text-gray-800 utilities.

  64. Control the text color of an element to blueGray-800 on hover using the hover:text-blueGray-800 utilities.

Conclusion

The above is a step-by-step tutorial on how to use Tailwind CSS to make a Landing Page Cards components, learn and follow along to implement your own components.