News Card Using Tailwind UI Component
This component is an example of a news card implemented using Tailwind UI. The card utilizes a simple and effective layout to display brief information or headlines from a news article.
card
Loading component...
26 lines
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link
href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap"
rel="stylesheet">
<style>
#font {
font-family: 'Plus Jakarta Sans', sans-serif;
}
</style>
<div id="font"
class="flex justify-center items-center 2xl:mx-auto 2xl:container pt-12 px-12 sm:px-6 xl:px-20 2xl:px-0 w-full">
<div class="relative group flex justify-center items-center h-full lg:w-1/2 py-6">
<div class="w-full h-full bg-gray-500 absolute ml-12 z-0"></div>
<img class="object-center object-cover h-full w-full z-10"
src="https://images.unsplash.com/photo-1603665230556-b5bb38f82591?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=870&q=80"
alt="The Enchanting Splendor of Paintings" />
<div class="bottom-6 z-10 absolute text-gray-200 w-full py-6 px-8 bg-black bg-opacity-75 z-11">
<a class="text-lg font-semibold leading-normal cursor-pointer hover:text-white">The Enchanting Splendor of
Paintings: Journey through the Timeless Beauty of Art</a>
<p class="text-xs mt-2">18 July 2023</p>
</div>
</div>
</div>