Build Responsive website with Tailwind CSS in 10 mins

Nabendu Biswas
4 min readMay 22, 2021

--

In this post, we are going to quickly build a responsive tailwind site, using awesome ready to use tailwind components.

Now, create a basic html structure in VS Code using the shortcut ! and press tab. After that we are adding the tailwind css CDN link, which we have got from tailwind site.

Tailwind Block

We are going to get ready made blocks for our site, from the awesome site Tailwind blocks. The link for it is https://tailblocks.cc/

Now, there are different sections in the site and we will create the header first. So, scroll down a bit and choose the first header. I have chosen the yellow color, but any other color can be selected.

Header

Clicking on the View Code, will give you the code which you need to put in the index.html, inside the body tag.

After, putting the header code, our site looks like below. I have also noticed that it is dark and the reason is that i have choose dark theme in Tailwind Block site.

Header

Now, we will do a bit of customization in the header, by changing the color of the button and the content of the links.

Header links

Now, we will create the Hero image part. So, go to the Hero section and choose the first one. We need to click on View Code and then COPY TO CLIPBOARD link.

Copy To Clipboard

We need to paste it below our header section, but the main thing is the image. Now, i got the vector image from https://undraw.co/search site and also removed it’s background from https://www.remove.bg

After that created a new images folder in our project and put the image in it.

Hero

Now, our site looks like below.

Current site

Now, we will create the About Us section. For this go to the CONTENT section and choose the second one and View Code and Copy to Clipboard as usual.

Content

We have pasted this code after the earlier section. Again in this section, we have four images, so got those vector images and removed background and uploaded it to images folder.

About Us

Now, our About Us section looks like below.

About Us

Now, we will add our pricing section.

Pricing

We have just changed the header text in the pricing and our Pricing section is also looking good.

Pricing

Now, we will add the Our Team section. For this go to the Testimonial, in the tailblock site and choose the third one.

Testimonial

Now, this code didn’t had any header so i created one. For image of user, i have taken from the random user site. We can choose any images from https://randomuser.me/photos

Testimonial

Now, the Our Team section looks like below.

Our Team

Now, we will create our Contact Us section. For this go to the Contact, in the tailblock site and choose the third one.

Contact

We only need to do a small change in the code and make the Us in Contact as Yellow. Also, notice that the Contact Us section also contains a small footer, which looks awesome and minimalist.

Contact Us

This completes our site. The code for the same can be taken from this github link.

Site done

--

--