A Pen by Matt Daniel Brown on CodePen.
Created
December 19, 2020 05:48
-
-
Save matt-daniel-brown/e4b1eee596a8075ea9af356314d9293c to your computer and use it in GitHub Desktop.
Lo-fi Content Grid 2 - Tailwind CSS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<body class="flex items-center justify-center w-screen min-h-screen p-10"> | |
<!-- Resice the preview panel to check the responsiveness --> | |
<!-- Component Start --> | |
<div class="grid xl:grid-cols-4 md:grid-cols-2 grid-cols-1 gap-2 max-w-6xl"> | |
<!-- Tile 1 --> | |
<div class="flex flex-col bg-gray-200 rounded-lg p-4 m-2"> | |
<div class="h-40 bg-gray-400 rounded-lg"></div> | |
<div class="flex flex-col items-start mt-4"> | |
<h4 class="text-xl font-semibold">Heading</h4> | |
<p class="text-sm">Some text about the thing that goes over a few lines.</p> | |
<a class="p-2 leading-none rounded font-medium mt-3 bg-gray-400 text-xs uppercase" href="#">Click Here</a> | |
</div> | |
</div> | |
<!-- Tile 2 --> | |
<div class="flex flex-col bg-gray-200 rounded-lg p-4 m-2"> | |
<div class="h-40 bg-gray-400 rounded-lg"></div> | |
<div class="flex flex-col items-start mt-4"> | |
<h4 class="text-xl font-semibold">Heading</h4> | |
<p class="text-sm">Some text about the thing that goes over a few lines.</p> | |
<a class="p-2 leading-none rounded font-medium mt-3 bg-gray-400 text-xs uppercase" href="#">Click Here</a> | |
</div> | |
</div> | |
<!-- Tile 3 --> | |
<div class="flex flex-col bg-gray-200 rounded-lg p-4 m-2"> | |
<div class="h-40 bg-gray-400 rounded-lg"></div> | |
<div class="flex flex-col items-start mt-4"> | |
<h4 class="text-xl font-semibold">Heading</h4> | |
<p class="text-sm">Some text about the thing that goes over a few lines.</p> | |
<a class="p-2 leading-none rounded font-medium mt-3 bg-gray-400 text-xs uppercase" href="#">Click Here</a> | |
</div> | |
</div> | |
<!-- Tile 4 --> | |
<div class="flex flex-col bg-gray-200 rounded-lg p-4 m-2"> | |
<div class="h-40 bg-gray-400 rounded-lg"></div> | |
<div class="flex flex-col items-start mt-4"> | |
<h4 class="text-xl font-semibold">Heading</h4> | |
<p class="text-sm">Some text about the thing that goes over a few lines.</p> | |
<a class="p-2 leading-none rounded font-medium mt-3 bg-gray-400 text-xs uppercase" href="#">Click Here</a> | |
</div> | |
</div> | |
</div> | |
<!-- Component End --> | |
</body> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link href="https://cdnjs.cloudflare.com/ajax/libs/tailwindcss/1.8.10/tailwind.min.css" rel="stylesheet" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment