Published on

How To Create A Suresh Natarajan With Tailwind CSS In 6 Easy Steps?

Tags
Suresh Natarajan

What is Tailwind CSS?

Tailwind CSS is a utility-first CSS framework that helps you quickly build custom designs. It provides pre-defined classes that you can use to style your HTML elements. With Tailwind CSS, you don't need to write CSS from scratch, which saves you time and effort.

The description of Suresh Natarajan ui component

Suresh Natarajan is a UI component that displays a user's profile picture, name, and job title. It's a simple and elegant design that can be used in various applications.

Why use Tailwind CSS to create a Suresh Natarajan ui component?

Tailwind CSS provides pre-defined classes that make it easy to create custom designs. With Tailwind CSS, you can easily style your HTML elements without writing CSS from scratch. This saves you time and effort and allows you to focus on building your application.

The preview of Suresh Natarajan ui component

Suresh Natarajan is a simple and elegant UI component that displays a user's profile picture, name, and job title. It's perfect for use in various applications, including social media, job portals, and e-commerce websites.

Free download of the Suresh Natarajan's source code

The source code of Suresh Natarajan ui component

To create a Suresh Natarajan UI component with Tailwind CSS, you need to write HTML and CSS code. The HTML code defines the structure of the component, while the CSS code styles the HTML elements.

<div class="antialiased bg-white">
  <div>
    <nav class="flex flex-row justify-between items-center bg-gray-200 border-black border-b-2">
      <div class="flex items-center">
        <svg class="w-6 h-6 m-2 bg-white" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16"></path></svg>
        <h1 class="font-bold">Website Name</h1>
      </div>
      <div class="flex">
        <a href="">
          <div class="flex justify-between items-center rounded-full px-1 w-8 h-8 bg-white m-2">
            <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9"></path></svg>
          </div>
        </a>
        <a href="">
          <div class="flex justify-between items-center rounded-full px-1 w-8 h-8 bg-white m-2">
            
          </div>
        </a>
      </div>
    </nav>
  </div>
  <div class="h-screen flex">
    <div class="flex flex-col justify-between items-center border-r-2 border-l-2 border-black ">
      <div class="flex-col">
        <div class="mt-8"></div>
        <a href="">
          <div class="flex justify-between items-center rounded-full px-1 w-8 h-8 bg-white m-2">
            <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z"></path></svg>
          </div>
        </a>
        <a href="">
          <div class="flex justify-between items-center rounded-full px-1 w-8 h-8 bg-white m-2">
            <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M9 17a2 2 0 11-4 0 2 2 0 014 0zM19 17a2 2 0 11-4 0 2 2 0 014 0z"></path><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16V6a1 1 0 00-1-1H4a1 1 0 00-1 1v10a1 1 0 001 1h1m8-1a1 1 0 01-1 1H9m4-1V8a1 1 0 011-1h2.586a1 1 0 01.707.293l3.414 3.414a1 1 0 01.293.707V16a1 1 0 01-1 1h-1m-6-1a1 1 0 001 1h1M5 17a2 2 0 104 0m-4 0a2 2 0 114 0m6 0a2 2 0 104 0m-4 0a2 2 0 114 0"></path></svg>
          </div>
        </a>
        <a href="">
          <div class="flex justify-between items-center rounded-full px-1 w-8 h-8 bg-white m-2">
            <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 11V7a4 4 0 00-8 0v4M5 9h14l1 12H4L5 9z"></path></svg>
          </div>
        </a>
      </div>
      <div class="flex flex-col">
        <a href="">
          <div class="flex justify-between items-center rounded-full px-1 w-8 h-8 bg-white m-2">
            <svg class="flex-none w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 7v10c0 2.21 3.582 4 8 4s8-1.79 8-4V7M4 7c0 2.21 3.582 4 8 4s8-1.79 8-4M4 7c0-2.21 3.582-4 8-4s8 1.79 8 4m0 5c0 2.21-3.582 4-8 4s-8-1.79-8-4"></path></svg>
          </div>
        </a>
        <a href="">
          <div class="flex justify-between items-center rounded-full px-1 w-8 h-8 bg-white m-2">
            <svg class="flex-none w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"></path><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path></svg>
          </div>
        </a>
        <a href="">
          <div class="flex justify-between items-center rounded-full px-1 w-8 h-8 bg-white m-2">
            <svg class="flex-none w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1"></path></svg>
          </div>
        </a>
      </div>
    </div>
    <div class="bg-gray-200 flex-auto border-2 border-gray">
      <div class="bg-white">Home > </div>
      <div class="m-2 space-y-2">
        <div class="rounded-full">
            <div class="bg-white">
              <div class="w-6 h-6 rounded-full bg-blue-600 text-sm text-white justify-items-center">
                <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4M7.835 4.697a3.42 3.42 0 001.946-.806 3.42 3.42 0 014.438 0 3.42 3.42 0 001.946.806 3.42 3.42 0 013.138 3.138 3.42 3.42 0 00.806 1.946 3.42 3.42 0 010 4.438 3.42 3.42 0 00-.806 1.946 3.42 3.42 0 01-3.138 3.138 3.42 3.42 0 00-1.946.806 3.42 3.42 0 01-4.438 0 3.42 3.42 0 00-1.946-.806 3.42 3.42 0 01-3.138-3.138 3.42 3.42 0 00-.806-1.946 3.42 3.42 0 010-4.438 3.42 3.42 0 00.806-1.946 3.42 3.42 0 013.138-3.138z"></path></svg>
              </div>
              <hr class="border-gray-800 mt-10" />
              <div class="py-2 px-2 bg-gray-400">
                <p class="font-bold text-white">Title</p>
                <p class="text-white pt-3">Description</p>
                <div class="bg-green-200 mt-3 cursor-pointer i text-center text-gray-800 font-bold">
                  Show more
                </div>
              </div>
            </div>
        </div>
        <div class="rounded-full">
            <div class="bg-white">
              <div class="w-6 h-6 rounded-full bg-blue-600 text-sm text-white justify-items-center">
                <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4M7.835 4.697a3.42 3.42 0 001.946-.806 3.42 3.42 0 014.438 0 3.42 3.42 0 001.946.806 3.42 3.42 0 013.138 3.138 3.42 3.42 0 00.806 1.946 3.42 3.42 0 010 4.438 3.42 3.42 0 00-.806 1.946 3.42 3.42 0 01-3.138 3.138 3.42 3.42 0 00-1.946.806 3.42 3.42 0 01-4.438 0 3.42 3.42 0 00-1.946-.806 3.42 3.42 0 01-3.138-3.138 3.42 3.42 0 00-.806-1.946 3.42 3.42 0 010-4.438 3.42 3.42 0 00.806-1.946 3.42 3.42 0 013.138-3.138z"></path></svg>
              </div>
              <hr class="border-gray-800 mt-10" />
              <div class="py-2 px-2 bg-gray-400">
                <p class="font-bold text-white">Title</p>
                <p class="text-white pt-3">Description</p>
                <div class="bg-green-200 mt-3 cursor-pointer i text-center text-gray-800 font-bold">
                  Show more
                </div>
              </div>
            </div>
        </div>
        <div class="rounded-full">
            <div class="bg-white">
              <div class="w-6 h-6 rounded-full bg-blue-600 text-sm text-white justify-items-center">
                <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4M7.835 4.697a3.42 3.42 0 001.946-.806 3.42 3.42 0 014.438 0 3.42 3.42 0 001.946.806 3.42 3.42 0 013.138 3.138 3.42 3.42 0 00.806 1.946 3.42 3.42 0 010 4.438 3.42 3.42 0 00-.806 1.946 3.42 3.42 0 01-3.138 3.138 3.42 3.42 0 00-1.946.806 3.42 3.42 0 01-4.438 0 3.42 3.42 0 00-1.946-.806 3.42 3.42 0 01-3.138-3.138 3.42 3.42 0 00-.806-1.946 3.42 3.42 0 010-4.438 3.42 3.42 0 00.806-1.946 3.42 3.42 0 013.138-3.138z"></path></svg>
              </div>
              <hr class="border-gray-800 mt-10" />
              <div class="py-2 px-2 bg-gray-400">
                <p class="font-bold text-white">Title</p>
                <p class="text-white pt-3">Description</p>
                <div class="bg-green-200 mt-3 cursor-pointer i text-center text-gray-800 font-bold">
                  Show more
                </div>
              </div>
            </div>
        </div>
      </div>
    </div>
  </div>
</div>

How to create a Suresh Natarajan with Tailwind CSS?

Here are the six easy steps to create a Suresh Natarajan UI component with Tailwind CSS:

Step 1: Set up your project

Create a new HTML file and add the following code to it:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Suresh Natarajan UI Component</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/tailwind.min.css">
</head>
<body>
    
</body>
</html>

This code sets up a new HTML file and includes the Tailwind CSS framework.

Step 2: Add the HTML code

Add the following HTML code to the body tag:

<div class="flex items-center">
    <img class="w-16 h-16 rounded-full mr-4" src="https://via.placeholder.com/150" alt="Profile Picture">
    <div>
        <h2 class="text-lg font-medium text-gray-900">Suresh Natarajan</h2>
        <p class="text-sm font-medium text-gray-500">Frontend Developer</p>
    </div>
</div>

This code defines the structure of the Suresh Natarajan UI component. It includes an img tag for the profile picture, a div tag for the name and job title, and some classes from Tailwind CSS to style the elements.

Step 3: Add the CSS code

Add the following CSS code to the head tag:

<style>
    .rounded-full {
        border-radius: 9999px;
    }
</style>

This code styles the profile picture by adding a border radius of 9999px to make it round.

Step 4: Preview the component

Save the HTML file and open it in your web browser. You should see the Suresh Natarajan UI component displayed on the screen.

Step 5: Customize the component

You can customize the Suresh Natarajan UI component by changing the profile picture, name, and job title. You can also change the styles by modifying the Tailwind CSS classes.

Step 6: Use the component in your application

Copy the HTML and CSS code and paste it into your application where you want to use the Suresh Natarajan UI component.

Conclusion

In this article, we learned how to create a Suresh Natarajan UI component with Tailwind CSS in six easy steps. Tailwind CSS provides pre-defined classes that make it easy to style your HTML elements without writing CSS from scratch. With Tailwind CSS, you can quickly build custom designs and focus on building your application.