<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: abanuprakash</title>
    <description>The latest articles on Forem by abanuprakash (@abanuprakash).</description>
    <link>https://forem.com/abanuprakash</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F554953%2F527c7806-654f-4572-8424-f4b1262de637.png</url>
      <title>Forem: abanuprakash</title>
      <link>https://forem.com/abanuprakash</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/abanuprakash"/>
    <language>en</language>
    <item>
      <title>Responsive E-commerce Product Card with TailwindCSS</title>
      <dc:creator>abanuprakash</dc:creator>
      <pubDate>Mon, 27 Mar 2023 10:49:48 +0000</pubDate>
      <link>https://forem.com/abanuprakash/responsive-e-commerce-product-card-with-tailwindcss-1lfp</link>
      <guid>https://forem.com/abanuprakash/responsive-e-commerce-product-card-with-tailwindcss-1lfp</guid>
      <description>&lt;p&gt;I've created a responsive e-commerce product card tile using tailwindCSS along with the hover effects and Sale labels&lt;/p&gt;

&lt;h2&gt;
  
  
  Web View
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--xB1e1_OD--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lx9k0o7sv3z6153tksi4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--xB1e1_OD--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lx9k0o7sv3z6153tksi4.png" alt="Web view with the vertical tile" width="527" height="593"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Mobile View
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--SxxWHTbJ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lpsg3tb1fu2w99v6u5jh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--SxxWHTbJ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lpsg3tb1fu2w99v6u5jh.png" alt="Mobile view with horizontal tile" width="635" height="201"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Code block:
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;body class="bg-gray-200"&amp;gt;
   &amp;lt;section class="w-full lg:w-1/5 hover:shadow-md transform transition duration-500 hover:scale-110 flex flex-row lg:flex-col mb-3 bg-white mx-auto rounded-md relative cursor-pointer"&amp;gt;
      &amp;lt;section class="mx-auto relative w-2/5 lg:w-full lg:h-[325px] border-b"&amp;gt;
         &amp;lt;section class="absolute flex flex-row items-center top-0 left-0 text-xs z-10 text-primaryFont font-semibold"&amp;gt;
            &amp;lt;div
               class="py-1 desktop:px-2 px-3 lg:flex flex-row items-center bg-green-600 text-white hidden"
               &amp;gt;
               &amp;lt;i class="fi fi-sr-bolt text-primaryCyan pt-1 pr-1"&amp;gt;&amp;lt;/i&amp;gt;
               &amp;lt;span&amp;gt;Flash Sale&amp;lt;/span&amp;gt;
            &amp;lt;/div&amp;gt;
            &amp;lt;div class="flex flex-row items-center bg-green-400 pr-4 py-1 text-[11px] rounded-br-3xl text-white pl-2"&amp;gt;
               🕔
               &amp;lt;span class="pl-1"&amp;gt;23 : 23: 00&amp;lt;/span&amp;gt;
            &amp;lt;/div&amp;gt;
         &amp;lt;/section&amp;gt;
         &amp;lt;img          src="https://images.pexels.com/photos/821651/pexels-photo-821651.jpeg?auto=compress&amp;amp;cs=tinysrgb&amp;amp;w=1260&amp;amp;h=750&amp;amp;dpr=1"
            alt="Product Name"
            class="mx-auto lg:rounded-t-md lg:rounded-b-none rounded-md p-1 lg:p-0"
            layout="fill"
            /&amp;gt;
      &amp;lt;/section&amp;gt;
      &amp;lt;section class="p-2 w-3/5 lg:w-full h-[150px] relative"&amp;gt;
         &amp;lt;section class="flex flex-row items-start"&amp;gt;
            &amp;lt;h1
               class="text-base text-black line-clamp-2 capitalize"
               title="Luna Fabric single seater recliner testing with the two line for line clamp test"
               &amp;gt;
               Pebel retro camera with belt
            &amp;lt;/h1&amp;gt;
         &amp;lt;/section&amp;gt;
         &amp;lt;section class="flex flex-row items-center mt-1"&amp;gt;
            &amp;lt;div class="text-green-700 text-xl font-bold mr-2"&amp;gt;
               Rs. 45,999
            &amp;lt;/div&amp;gt;
            &amp;lt;div class="text-black-200 text-base line-through"&amp;gt;
               Rs.61,999
            &amp;lt;/div&amp;gt;
         &amp;lt;/section&amp;gt;
         &amp;lt;section class="flex flex-row items-center mb-1"&amp;gt;
            &amp;lt;span class="text-xs text-gray-600 font-medium"&amp;gt;
            You Save Rs.16,000
            &amp;lt;/span&amp;gt;
            &amp;lt;span class="text-xs text-green-900 ml-1 font-medium"&amp;gt;
            (56% off)
            &amp;lt;/span&amp;gt;
         &amp;lt;/section&amp;gt;
         &amp;lt;section&amp;gt;
            &amp;lt;p class="text-gray-600 text-xs "&amp;gt;
               EMI starts from &amp;lt;span&amp;gt;Rs.333/month&amp;lt;/span&amp;gt;
            &amp;lt;/p&amp;gt;
            &amp;lt;div class="flex flex-row items-center mt-1 text-red-400 text-sm "&amp;gt;
               &amp;lt;span class="ml-1"&amp;gt;Delivery in 6 days&amp;lt;/span&amp;gt;
            &amp;lt;/div&amp;gt;
         &amp;lt;/section&amp;gt;
      &amp;lt;/section&amp;gt;
      &amp;lt;/Link&amp;gt;
   &amp;lt;/section&amp;gt;
&amp;lt;/body&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Click here Live preview: &lt;a href="https://codepen.io/abanuprakash/pen/gOdZyPb"&gt;codepen link&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Hope it helps you!!!&lt;/p&gt;

</description>
      <category>tailwindcss</category>
      <category>css</category>
      <category>responsive</category>
      <category>html</category>
    </item>
  </channel>
</rss>
