<?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>DEV Community: Gaurav Web99 </title>
    <description>The latest articles on DEV Community by Gaurav Web99  (@gauravweb99).</description>
    <link>https://dev.to/gauravweb99</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%2F1078166%2F92eb88ab-adec-430e-8bee-c02ece0d67d8.jpeg</url>
      <title>DEV Community: Gaurav Web99 </title>
      <link>https://dev.to/gauravweb99</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/gauravweb99"/>
    <language>en</language>
    <item>
      <title>Create a movie card using Tailwind CSS and one code</title>
      <dc:creator>Gaurav Web99 </dc:creator>
      <pubDate>Wed, 10 May 2023 11:08:21 +0000</pubDate>
      <link>https://dev.to/gauravweb99/create-a-movie-card-using-tailwind-css-and-one-code-22ej</link>
      <guid>https://dev.to/gauravweb99/create-a-movie-card-using-tailwind-css-and-one-code-22ej</guid>
      <description>&lt;p&gt;&lt;strong&gt;To create a movie card post using Tailwind CSS CDN and one code, you can follow the steps below:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1.&lt;/strong&gt;First, you need to link the Tailwind CSS CDN to your HTML file. You can do this by adding the following code to the head section of your HTML file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;!doctype html&amp;gt;
&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
  &amp;lt;meta charset="UTF-8"&amp;gt;
  &amp;lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&amp;gt;
  &amp;lt;script src="https://cdn.tailwindcss.com"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body class="bg-slate-700"&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;2.&lt;/strong&gt;Inside this code in body, you can create a movie card using the following code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;div class="m-4 mb-8 w-auto px-4 mx-auto sm:w-1/2 md:w-1/3 lg:w-1/4"&amp;gt;
  &amp;lt;div class="rounded-lg bg-white shadow-lg"&amp;gt;
    &amp;lt;img src="https://source.unsplash.com/400x500/?dark" alt="movie poster" class="rounded-t-lg" /&amp;gt;
    &amp;lt;div class="p-4"&amp;gt;
      &amp;lt;h2 class="mb-2 text-lg font-semibold"&amp;gt;Movie Title&amp;lt;/h2&amp;gt;
      &amp;lt;p class="mb-2 text-sm text-gray-700"&amp;gt;Release Date: January 1, 2023&amp;lt;/p&amp;gt;
      &amp;lt;p class="mb-4 text-sm text-gray-700"&amp;gt;Director: John Doe&amp;lt;/p&amp;gt;
      &amp;lt;a href="#" class="block rounded-lg bg-blue-500 px-4 py-2 text-center font-semibold text-white hover:bg-blue-600"&amp;gt;Watch Movie&amp;lt;/a&amp;gt;
    &amp;lt;/div&amp;gt;
  &amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;3.&lt;/strong&gt;Replace the image with the movie poster and update the movie title, release date, director, and trailer link as necessary.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;!doctype html&amp;gt;
&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
  &amp;lt;meta charset="UTF-8"&amp;gt;
  &amp;lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&amp;gt;
  &amp;lt;script src="https://cdn.tailwindcss.com"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body class="bg-slate-700"&amp;gt;
&amp;lt;div class="m-4 mb-8 w-auto px-4 mx-auto sm:w-1/2 md:w-1/3 lg:w-1/4"&amp;gt;
  &amp;lt;div class="rounded-lg bg-white shadow-lg"&amp;gt;
    &amp;lt;img src="https://source.unsplash.com/400x500/?dark" alt="movie poster" class="rounded-t-lg" /&amp;gt;
    &amp;lt;div class="p-4"&amp;gt;
      &amp;lt;h2 class="mb-2 text-lg font-semibold"&amp;gt;Movie Title&amp;lt;/h2&amp;gt;
      &amp;lt;p class="mb-2 text-sm text-gray-700"&amp;gt;Release Date: January 1, 2023&amp;lt;/p&amp;gt;
      &amp;lt;p class="mb-4 text-sm text-gray-700"&amp;gt;Director: John Doe&amp;lt;/p&amp;gt;
      &amp;lt;a href="#" class="block rounded-lg bg-blue-500 px-4 py-2 text-center font-semibold text-white hover:bg-blue-600"&amp;gt;Watch Movie&amp;lt;/a&amp;gt;
    &amp;lt;/div&amp;gt;
  &amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;4.&lt;/strong&gt;Finally, you can customize the movie card's appearance by adjusting the classes used in the HTML code. The classes used in this example are from Tailwind CSS and provide a responsive layout, rounded corners, drop shadows, and color styles.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;That's it! You now have a movie card post created using Tailwind CSS CDN and one code.&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>tailwindcss</category>
      <category>css</category>
      <category>coding</category>
    </item>
  </channel>
</rss>
