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

- What is Tailwind CSS?
- The description of Landing Page Cards ui component
- Why use Tailwind CSS to make a Landing Page Cards ui component?
- The preview of Landing Page Cards ui component
- The source code of Landing Page Cards ui component
- How to make a Landing Page Cards with Tailwind CSS?
- Install tailwind css of verion 2.2.4
- All the unility class needed to make a Landing Page Cards component
- 64 steps to make a Landing Page Cards component with Tailwind CSS
- Conclusion
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&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1267&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
Use
relative
to position an element according to the normal flow of the document.Control the background color of an element to blueGray-50 using the
bg-blueGray-50
utilities.Control the padding on top side of an element to 4rem using the
pt-16
utilities.Control the padding on bottom side of an element to 8rem using the
pb-32
utilities.Use
flex
to create a block-level flex container.Set the minimum width/height of an element using the
min-h-screen-75
utilities.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.Use the
top-0
utilities to set the top position of a positioned element to 0rem.Use
w-full
to set an element to a 100% based width.Use
h-full
to set an element’s height to 100% of its parent, as long as the parent has a defined height.Control the background color of an element to center using the
bg-center
utilities.Control the background color of an element to cover using the
bg-cover
utilities.Control the background color of an element to black using the
bg-black
utilities.Control the horizontal margin of an element to auto using the
mx-auto
utilities.Use
flex
to create a block-level flex container.Use
lg:w-6/12
to set an element to a fixed width(6/12) at only large screen sizes.Control the horizontal padding of an element to 1rem using the
px-4
utilities.Control the margin on left side of an element to auto using the
ml-auto
utilities.Control the margin on right side of an element to auto using the
mr-auto
utilities.Control the text color of an element to center using the
text-center
utilities.Control the padding on right side of an element to 3rem using the
pr-12
utilities.Control the text color of an element to white using the
text-white
utilities.Control the text color of an element to 5xl using the
text-5xl
utilities.Control the margin on top side of an element to 1rem using the
mt-4
utilities.Control the text color of an element to lg using the
text-lg
utilities.Control the text color of an element to blueGray-200 using the
text-blueGray-200
utilities.Use the
top-auto
utilities to set the top position of a positioned element to auto.Use the
bottom-0
utilities to set the bottom position of a positioned element to 0rem.Use the
left-0
utilities to set the left position of a positioned element to 0rem.Use the
right-0
utilities to set the right position of a positioned element to 0rem.Use
overflow-hidden
to clip any content within an element that overflows the bounds of that element.Use
h-70-px
to set an element to a fixed height(70-px).Control the padding on bottom side of an element to 2.5rem using the
pb-10
utilities.Control the background color of an element to blueGray-200 using the
bg-blueGray-200
utilities.Control the margin on top side of an element to -6rem using the
-mt-24
utilities.Control the padding on top side of an element to 3rem at only large screen sizes using the
lg:pt-12
utilities.Control the padding on top side of an element to 1.5rem using the
pt-6
utilities.Use
md:w-4/12
to set an element to a fixed width(4/12) at only medium screen sizes.Use
flex
to create a block-level flex container.Set the minimum width/height of an element using the
min-w-0
utilities.Control the background color of an element to white using the
bg-white
utilities.Control the margin on bottom side of an element to 2rem using the
mb-8
utilities.Control the vertical padding of an element to 1.25rem using the
py-5
utilities.Use
flex
to create a block-level flex container.Control the padding on all sides of an element to 0.75rem using the
p-3
utilities.Use
inline-flex
to create an inline flex container that flows with text.Use
w-12
to set an element to a fixed width(3rem).Use
h-12
to set an element to a fixed height(3rem).Control the margin on bottom side of an element to 1.25rem using the
mb-5
utilities.Control the background color of an element to red-400 using the
bg-red-400
utilities.Control the text color of an element to xl using the
text-xl
utilities.Control the margin on top side of an element to 0.5rem using the
mt-2
utilities.Control the margin on bottom side of an element to 1rem using the
mb-4
utilities.Control the text color of an element to blueGray-500 using the
text-blueGray-500
utilities.Control the background color of an element to lightBlue-400 using the
bg-lightBlue-400
utilities.Control the background color of an element to emerald-400 using the
bg-emerald-400
utilities.Control the padding on top side of an element to 2rem using the
pt-8
utilities.Control the padding on bottom side of an element to 1.5rem using the
pb-6
utilities.Control the margin on top side of an element to 0.25rem using the
mt-1
utilities.Use
md:w-6/12
to set an element to a fixed width(6/12) at only medium screen sizes.Control the text color of an element to sm using the
text-sm
utilities.Control the vertical padding of an element to 0.25rem using the
py-1
utilities.Control the text color of an element to gray-800 on hover using the
hover:text-gray-800
utilities.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.