<?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: Hasib Al Rashid</title>
    <description>The latest articles on DEV Community by Hasib Al Rashid (@hasibrashid).</description>
    <link>https://dev.to/hasibrashid</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%2F619548%2Fc419e219-f58b-4b40-93a9-a148308ba776.jpeg</url>
      <title>DEV Community: Hasib Al Rashid</title>
      <link>https://dev.to/hasibrashid</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hasibrashid"/>
    <language>en</language>
    <item>
      <title>I made a Earth Day Challenge website that calls for Humanity for Earth</title>
      <dc:creator>Hasib Al Rashid</dc:creator>
      <pubDate>Sun, 28 Apr 2024 13:44:19 +0000</pubDate>
      <link>https://dev.to/hasibrashid/i-made-a-earth-day-challenge-website-that-calls-for-humanity-for-earth-ege</link>
      <guid>https://dev.to/hasibrashid/i-made-a-earth-day-challenge-website-that-calls-for-humanity-for-earth-ege</guid>
      <description>&lt;p&gt;Hi there! 👋 I am Hasib, the developer behind the Earth Day Challenge Glam up my Markup project aimed at raising awareness about the pressing issue of Global Warming. I take pride in using my skills to create websites that promote environmental consciousness, thanks to this challenge.&lt;/p&gt;

&lt;p&gt;In the homepage, I included a rotating spinning earth that displays all the wildfires currently burning live around the world. This visual representation allows people to grasp the current state of our planet and understand the detrimental effects of global warming on our environment. By witnessing this, individuals can become more aware and take action to protect the earth from potential disasters in the future.&lt;/p&gt;

&lt;p&gt;🌍 You can view the demo website for my project &lt;br&gt;
&lt;a href="https://earth-day-challenge.vercel.app" class="ltag_cta ltag_cta--branded"&gt;Demo Website&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;👑 The source code of the project is open source and available on Github &lt;br&gt;
&lt;a href="https://github.com/hasib-rashid/earth-day-challenge" class="ltag_cta ltag_cta--branded"&gt;Source Code&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;✅ Upon discovering this challenge, I decided to participate and built the website using Vite and React.&lt;/p&gt;

&lt;p&gt;☑️ Throughout the process, I gained valuable insights into Three.JS and React Globes, particularly in integrating them with the NASA API. By utilizing the NASA Wildfire API to plot points and track fires on the map, I had an enjoyable experience working on this project.&lt;/p&gt;

&lt;p&gt;Thank you for your support! Please feel free to leave comments and suggestions for future improvements.&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>frontendchallenge</category>
      <category>css</category>
      <category>javascript</category>
    </item>
    <item>
      <title>TailwindCSS with ReactJS</title>
      <dc:creator>Hasib Al Rashid</dc:creator>
      <pubDate>Mon, 13 Sep 2021 16:43:49 +0000</pubDate>
      <link>https://dev.to/hasibrashid/tailwindcss-with-reactjs-3ih9</link>
      <guid>https://dev.to/hasibrashid/tailwindcss-with-reactjs-3ih9</guid>
      <description>&lt;h1&gt;Setting up Tailwind with React&lt;/h1&gt;

&lt;p&gt;We all know setting up tailwind with React is somewhat a pain for the beginners. I personally got into this problem too. Today here we will be setting up tailwindcss from scratch.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Note: This tutorial can also be used in a project made before
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Without talking anymore lets jump right into the tutorial
&lt;/h3&gt;

&lt;p&gt;First we will start our react project in the normal way&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx create-react-app project-name
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Right when you see the &lt;code&gt;Happy Hacking&lt;/code&gt; Text in your screen, then you know that its done&lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyyia2eh6onv1n4iw4dk8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyyia2eh6onv1n4iw4dk8.png" alt="image" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Cd into the Folder and lets start editing and stuffs!&lt;/p&gt;

&lt;p&gt;Open your code editor. (Mine is VSCode)&lt;/p&gt;

&lt;p&gt;Now open your terminal and Install the following things.&lt;/p&gt;

&lt;p&gt;With NPM:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm i &lt;span class="nt"&gt;-D&lt;/span&gt; tailwindcss postcss autoprefixer postcss-cli
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;With Yarn:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;yarn add &lt;span class="nt"&gt;-D&lt;/span&gt; tailwindcss postcss autoprefixer postcss-cli
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now Create output.css and tailwind.css Files in the &lt;code&gt;src&lt;/code&gt; folder like in the structure given below.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;src/
├── styles/
         ├── output.css
         └── tailwind.css
├── app.js
└── index.js
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Your folder structure should look like this&lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwb5hvkcfuv8dgptyvdk5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwb5hvkcfuv8dgptyvdk5.png" alt="image" width="393" height="428"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In the &lt;code&gt;tailwind.css&lt;/code&gt; file, Paste this code.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="k"&gt;@tailwind&lt;/span&gt; &lt;span class="n"&gt;base&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;@tailwind&lt;/span&gt; &lt;span class="n"&gt;components&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;@tailwind&lt;/span&gt; &lt;span class="n"&gt;utilities&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Leave the Output.css file empty because it will be taken care of Postcss.&lt;/p&gt;

&lt;p&gt;Now enter the following two commands in the Command Line:&lt;br&gt;
(Works with both yarn and npm)&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx tailwindcss init &lt;span class="nt"&gt;--full&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;and&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx tailwindcss init tailwindcss-config.js &lt;span class="nt"&gt;-p&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now we have to edit the Following Lines in &lt;code&gt;package.json&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="nl"&gt;"scripts"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"start"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"npm run watch:css &amp;amp;&amp;amp; react-scripts start"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"build"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"npm run watch:css &amp;amp;&amp;amp; react-scripts build"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"test"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"react-scripts test"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"eject"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"react-scripts eject"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"watch:css"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"postcss src/styles/tailwind.css -o src/styles/output.css"&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="err"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now in order to wrap up and actually code in tailwind we have to import the following line in out &lt;code&gt;App.js&lt;/code&gt; file.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;./styles/output.css&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now start the project and play with Tailwind yourself!&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm run start
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;or&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;yarn start
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  We are all good. We can now use tailwind in our react project!
&lt;/h3&gt;

&lt;h3&gt;
  
  
  HOLD UP! But there is no Intellisense :(
&lt;/h3&gt;

&lt;p&gt;First of all it is all bland and there is no suggestions on what will we do.&lt;/p&gt;

&lt;p&gt;For that we need to add a Extension in VSCode for Tailwind&lt;/p&gt;

&lt;p&gt;Simply search Tailwind in the extensions tab and install the first one :)&lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsbsy1u8dumj3zegpy41z.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsbsy1u8dumj3zegpy41z.png" alt="image" width="714" height="480"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Restart your code editor and now we have awesome Tailwind Intellisense!&lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0zm6tnjyluydzj0ptnc3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0zm6tnjyluydzj0ptnc3.png" alt="image" width="800" height="449"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  👑 Happy Hacking!
&lt;/h3&gt;

&lt;p&gt;Follow me on Github at &lt;a href="https://github.com/hasib-rashid"&gt;https://github.com/hasib-rashid&lt;/a&gt;&lt;/p&gt;

</description>
      <category>tailwindcss</category>
      <category>react</category>
      <category>css</category>
    </item>
  </channel>
</rss>
