Published on

How To Build A Create Portfolio (Not Yet) I Will To Change It Again With Tailwind CSS In 6 Easy Steps?

Tags
Create Portfolio (Not Yet) I Will to change it again

What is Tailwind CSS?

Tailwind CSS is a utility-first CSS framework that focuses on creating personalized user interfaces quickly. It can gives you all the building blocks you are able to create personalized designs without having to fight to override irritating opinionated styles. Also, Tailwind CSS is a highly configurable, low-level CSS framework.

The description of Create Portfolio (Not Yet) I Will to change it again ui component

Create portfolio (not yet) i will to change it again

Why use Tailwind CSS to create a Create Portfolio (Not Yet) I Will to change it again ui component?

  • It can make the building process of Create Portfolio (Not Yet) I Will to change it again ui component faster and more easily.
  • Enables building complex responsive layouts and components freely.
  • Minimum lines of CSS code in Create Portfolio (Not Yet) I Will to change it again component file.

The preview of Create Portfolio (Not Yet) I Will to change it again ui component

Free download of the Create Portfolio (Not Yet) I Will to change it again's source code

The source code of Create Portfolio (Not Yet) I Will to change it again ui component

<!-- Creaet Blog Portfolio By Joker Banny -->
<header class="max-h-full bg-white p-6 grid">
  <!-- Navbar Menu -->
  <nav class="w-full grid justify-end">
    <ul class="hidden md:flex space-x-8 font-bold text-gray-700">
      <li><a href="#">Works</a></li>
      <li><a href="#">Blog</a></li>
      <li><a href="#">Contact</a></li>
    </ul>
    <div class="md:hidden">
      <svg xmlns="http://www.w3.org/2000/svg" class="h-10 w-10 text-gray-700 cursor-pointer" fill="none" viewBox="0 0 24 24" stroke="currentColor">
        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16" />
      </svg>
    </div>
  </nav>

  <!-- Section Hero  -->
  <div class="container mx-auto mt-8 md:mt-0 md:space-x-10 md:grid grid-cols-3 justify-center md:py-40">
    <div class="grid justify-center items-center order-1 col-span-1">
      <img class="lg:h-80 md:h-64 h-40 rounded-full" src="https://images.unsplash.com/photo-1535713875002-d1d0cf377fde" alt="" />
    </div>
    <div class="mt-8 md:mt-0 lg:justify-end col-span-2">
      <h1 class="text-4xl text-gray-800 text-center md:text-left font-bold mb-6">Hi, I am John, Creative Technologist</h1>
      <p class="text-xl text-gray-800 text-center md:text-left">Amet minim mollit non deserunt ullamco est sit aliqua dolor do amet sint. Velit officia consequat duis enim velit mollit. Exercitation veniam consequat sunt nostrud amet.</p>
      <button class="block mt-8 mx-auto md:mx-0 text-2xl py-3 px-6 text-red-50 font-semibold rounded bg-red-400">Download Resume</button>
    </div>
  </div>
</header>

<!-- Main -->
<div class="md:gap-4 p-6 bg-blue-50 md:grid">
  <div class="grid grid-cols-2 justify-between lg:px-40 md:mb-4">
    <h1 class="justify-start md:text-left text-2xl">Recent posts</h1>
    <p class="hidden md:block text-right text-2xl">View all</p>
  </div>
  <div class="md:grid grid-cols-2 gap-6 lg:px-40">
    <div>
      <div class="bg-white p-4">
        <div>
          <div class="mb-4">
            <h1 class="text-2xl font-bold text-gray-700">Making a design system from scratch</h1>
          </div>

          <div class="">
            <span class="block mb-4 text-xl">12 Feb 20 20 | Design, Pattern</span>
            <p class="text-lg text-gray-700">Amet minim mollit non deserunt ullamco est sit aliqua dolor do amet sint. Velit officia consequat duis enim velit mollit. Exercitation veniam consequat sunt nostrud amet.</p>
          </div>
        </div>
      </div>
    </div>

    <div class="bg-white p-4 md:mt-0 mt-6">
      <div>
        <div class="mb-4">
          <h1 class="text-2xl font-bold text-gray-700">Creating pixel perfect icons in Figma</h1>
          <p class="hidden">View all</p>
        </div>

        <div class="">
          <span class="block mb-4 text-xl">12 Feb 20 20 | Design, Pattern</span>
          <p class="text-lg text-gray-700">Amet minim mollit non deserunt ullamco est sit aliqua dolor do amet sint. Velit officia consequat duis enim velit mollit. Exercitation veniam consequat sunt nostrud amet.</p>
        </div>
      </div>
    </div>
  </div>

  <div class="mt-6 p-4 bg-white px-6">
    <div class="border-b pb-6">
      <h1 class="mt-2 mb-6 text-center text-xl">Featured works</h1>
      <div class="md:grid grid-cols-2 gap-6">
        <div>
          <img class="md:h-full object-cover" src="https://images.unsplash.com/photo-1602992708529-c9fdb12905c9" alt="" />
        </div>
        <div>
          <h1 class="my-6 text-2xl font-bold text-gray-700">Designing Dashboards</h1>
          <span class="text-lg mr-4 py-1 px-4 rounded-full bg-gray-800 text-white">2020</span>
          <spnan class="text-lg">Dashboard</spnan>
          <p class="mt-6 text-lg text-gray-700">Amet minim mollit non deserunt ullamco est sit aliqua dolor do amet sint. Velit officia consequat duis enim velit mollit. Exercitation veniam consequat sunt nostrud amet.</p>
        </div>
      </div>
    </div>
  </div>
</div>
<footer class="bg-white">
  <div class="flex mt-20 px-10 items-center justify-around max-md">
    <span>
      <svg xmlns="http://www.w3.org/2000/svg" class="h-10 text-gray-800 w-10" fill="none" viewBox="0 0 24 24" stroke="currentColor">
        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 8h2a2 2 0 012 2v6a2 2 0 01-2 2h-2v4l-4-4H9a1.994 1.994 0 01-1.414-.586m0 0L11 14h4a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2v4l.586-.586z" />
      </svg>
    </span>
    <span>
      <svg xmlns="http://www.w3.org/2000/svg" class="h-10 textgray-800e w-10" fill="none" viewBox="0 0 24 24" stroke="currentColor">
        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 8l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2M5 3a2 2 0 00-2 2v1c0 8.284 6.716 15 15 15h1a2 2 0 002-2v-3.28a1 1 0 00-.684-.948l-4.493-1.498a1 1 0 00-1.21.502l-1.13 2.257a11.042 11.042 0 01-5.516-5.517l2.257-1.128a1 1 0 00.502-1.21L9.228 3.683A1 1 0 008.279 3H5z" />
      </svg>
    </span>
    <span>
      <svg xmlns="http://www.w3.org/2000/svg" class="h-10 text-gray-800 w-10" fill="none" viewBox="0 0 24 24" stroke="currentColor">
        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9a5 5 0 117.072 0l-.548.547A3.374 3.374 0 0014 18.469V19a2 2 0 11-4 0v-.531c0-.895-.356-1.754-.988-2.386l-.548-.547z" />
      </svg>
    </span>
    <span>
      <svg xmlns="http://www.w3.org/2000/svg" class="h-10 text-gray-800 w-10" fill="none" viewBox="0 0 24 24" stroke="currentColor">
        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3.055 11H5a2 2 0 012 2v1a2 2 0 002 2 2 2 0 012 2v2.945M8 3.935V5.5A2.5 2.5 0 0010.5 8h.5a2 2 0 012 2 2 2 0 104 0 2 2 0 012-2h1.064M15 20.488V18a2 2 0 012-2h3.064M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
      </svg>
    </span>
  </div>
  <p class="text-center my-10 text-lg">Copyright ©2020 All rights reserved</p>
</footer>

How to create a Create Portfolio (Not Yet) I Will to change it again with Tailwind CSS?

Install tailwind css of verion 2.2.4

Use the script html tag to import the script of Tailwind CSS of the version 2.2.4

<script src="https://cdn.tailwindcss.com"></script>

All the unility class needed to create a Create Portfolio (Not Yet) I Will to change it again component

  • max-h-full
  • bg-white
  • p-6
  • grid
  • w-full
  • hidden
  • md:flex
  • text-gray-700
  • md:hidden
  • h-10
  • w-10
  • mx-auto
  • mt-8
  • md:mt-0
  • md:grid
  • grid-cols-3
  • md:py-40
  • lg:h-80
  • md:h-64
  • h-40
  • text-4xl
  • text-gray-800
  • text-center
  • md:text-left
  • mb-6
  • text-xl
  • block
  • md:mx-0
  • text-2xl
  • py-3
  • px-6
  • text-red-50
  • bg-red-400
  • md:gap-4
  • bg-blue-50
  • grid-cols-2
  • lg:px-40
  • md:mb-4
  • justify-start
  • md:block
  • text-right
  • gap-6
  • p-4
  • mb-4
  • text-lg
  • mt-6
  • border-b
  • pb-6
  • mt-2
  • md:h-full
  • my-6
  • mr-4
  • py-1
  • px-4
  • bg-gray-800
  • text-white
  • flex
  • mt-20
  • px-10
  • max-md
  • my-10

61 steps to create a Create Portfolio (Not Yet) I Will to change it again component with Tailwind CSS

  1. Set the maximum width/height of an element using the max-h-full utilities.

  2. Control the background color of an element to white using the bg-white utilities.

  3. Control the padding on all sides of an element to 1.5rem using the p-6 utilities.

  4. Use grid to create a grid container.

  5. Use w-full to set an element to a 100% based width.

  6. Use hidden to set an element to display: none and remove it from the page layout.

  7. Use flex to create a block-level flex container at only medium screen sizes.

  8. Control the text color of an element to gray-700 using the text-gray-700 utilities.

  9. Use hidden to set an element to display: none and remove it from the page layout at only medium screen sizes.

  10. Use h-10 to set an element to a fixed height(2.5rem).

  11. Use w-10 to set an element to a fixed width(2.5rem).

  12. Control the horizontal margin of an element to auto using the mx-auto utilities.

  13. Control the margin on top side of an element to 2rem using the mt-8 utilities.

  14. Control the margin on top side of an element to 0rem at only medium screen sizes using the md:mt-0 utilities.

  15. Use grid to create a grid container at only medium screen sizes.

  16. Use grid to create a grid container.

  17. Control the vertical padding of an element to 10rem at only medium screen sizes using the md:py-40 utilities.

  18. Use lg:h-80 to set an element to a fixed height(20rem) at only large screen sizes.

  19. Use md:h-64 to set an element to a fixed height(16rem) at only medium screen sizes.

  20. Use h-40 to set an element to a fixed height(10rem).

  21. Control the text color of an element to 4xl using the text-4xl utilities.

  22. Control the text color of an element to gray-800 using the text-gray-800 utilities.

  23. Control the text color of an element to center using the text-center utilities.

  24. Control the text color of an element to left at only medium screen sizes using the md:text-left utilities.

  25. Control the margin on bottom side of an element to 1.5rem using the mb-6 utilities.

  26. Control the text color of an element to xl using the text-xl utilities.

  27. Use inline utilities to put the element on its own line and fill its parent.

  28. Control the horizontal margin of an element to 0rem at only medium screen sizes using the md:mx-0 utilities.

  29. Control the text color of an element to 2xl using the text-2xl utilities.

  30. Control the vertical padding of an element to 0.75rem using the py-3 utilities.

  31. Control the horizontal padding of an element to 1.5rem using the px-6 utilities.

  32. Control the text color of an element to red-50 using the text-red-50 utilities.

  33. Control the background color of an element to red-400 using the bg-red-400 utilities.

  34. To specify the width between columns at only medium screen sizes, you can use the md:gap-4 utilities.

  35. Control the background color of an element to blue-50 using the bg-blue-50 utilities.

  36. Use grid to create a grid container.

  37. Control the horizontal padding of an element to 10rem at only large screen sizes using the lg:px-40 utilities.

  38. Control the margin on bottom side of an element to 1rem at only medium screen sizes using the md:mb-4 utilities.

  39. Use justify-start to justify items against the start of the container’s main axis.

  40. Use inline utilities to put the element on its own line and fill its parent at only medium screen sizes.

  41. Control the text color of an element to right using the text-right utilities.

  42. To specify the width between columns, you can use the gap-6 utilities.

  43. Control the padding on all sides of an element to 1rem using the p-4 utilities.

  44. Control the margin on bottom side of an element to 1rem using the mb-4 utilities.

  45. Control the text color of an element to lg using the text-lg utilities.

  46. Control the margin on top side of an element to 1.5rem using the mt-6 utilities.

  47. Control the border color of an element to b using the border-b utilities.

  48. Control the padding on bottom side of an element to 1.5rem using the pb-6 utilities.

  49. Control the margin on top side of an element to 0.5rem using the mt-2 utilities.

  50. Use h-full to set an element’s height to 100% of its parent at only medium screen sizes, as long as the parent has a defined height.

  51. Control the vertical margin of an element to 1.5rem using the my-6 utilities.

  52. Control the margin on right side of an element to 1rem using the mr-4 utilities.

  53. Control the vertical padding of an element to 0.25rem using the py-1 utilities.

  54. Control the horizontal padding of an element to 1rem using the px-4 utilities.

  55. Control the background color of an element to gray-800 using the bg-gray-800 utilities.

  56. Control the text color of an element to white using the text-white utilities.

  57. Use flex to create a block-level flex container.

  58. Control the margin on top side of an element to 5rem using the mt-20 utilities.

  59. Control the horizontal padding of an element to 2.5rem using the px-10 utilities.

  60. Set the maximum width/height of an element using the max-md utilities.

  61. Control the vertical margin of an element to 2.5rem using the my-10 utilities.

Conclusion

The above is a step-by-step tutorial on how to use Tailwind CSS to create a Create Portfolio (Not Yet) I Will to change it again components, learn and follow along to implement your own components.