View on GitHub

perfume-shop

Hi everybody! I built this mini project using new tailwind framework and alpine js so as to create a new project in a new way, my main attempt was using tailwind instead of pure css, sass or bootstrap which i had worked with in my other projects, actually i enjoyed it a lot! hope you enjoy it too! let's use tailwind more which will definitely speed up your coding and gives you lighter and cleaner project

Perfume Shop by Elle Famkar (developed with tailwind and alpine js)

Welcome to my project guys! 👋

important point : remember to install node package and then command -> npm run dev so as to start the project

Table of contents

Overview

Thanks for checking out this front-end project. My main aim was to develop a project using tailwind, which i enjoyed so much and definitely will work more with tailwind instead of bootstrap or sass or pure css. Hope you enjoy it too.

Remember that “Every day is a learning day”, so let’s checkout the requirements to start such project

The challenge

In his project you should be able to:

Screenshot

My process

Where to find resources

We know what we need first, yes! you are right, the design file. So let’s checkout this repository to find even the smallest details about the style requirements of this project such as font-size, padding and margin as well as finding all the required assets in the /images folder. The assets are already optimized. color palette is also available in figma file to guide you to choose the accurate colors.

Built with

You can use any tools you like to help you complete the project. So if you got something you’d like to practice, feel free to give it a try.

What I learned

This projects helped me being more familiar with the details of html, tailwind and alpine js together to create a responsive project with small details on colors,sizes and so on. It was a great experience to built such a project with such different css framework.

To see parts of my codes and see how you can add code snippets, see below:

<div class="flex md:hidden rounded-md border my-2 border-gray-900 shadow-gray-900 shadow-md items-center justify-between p-4">
   <a href="#" class="font-serif text-4xl">Perfume</a>
   <span class="text-4xl">home</span>
   <div class="w-8 h-8 rounded-full bg-white flex items-center cursor-pointer justify-center">
      <svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 hover:text-darkGold stroke-black" fill="none" viewBox="0 0 24 24" stroke-width="2">
         <path stroke-linecap="round" stroke-linejoin="round" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" />
      </svg>
   </div>
</div>
<div class="flex md:hidden rounded-md border my-2 border-gray-900 shadow-gray-900 shadow-md items-center justify-between p-4">
       <a href="#" class="font-serif text-4xl">Perfume</a>
       <span class="text-4xl">home</span>
</div>

```js - using alpine js

<button @click="colorOne = 'slate'" :class="colorOne === 'slate' ? 'bg-opacity-100' : ' '" class="w-6 h-6 flex items-center justify-center -m-1 bg-slate-300 bg-opacity-25 rounded-full cursor-pointer"> </button>

```

Continued development

In my future projects, not only i am going to focus on improving my basic knowledge of front end development (html and css), but also i will make it more dynamic and use javascript so as to develop cooler projects. I will also try to be much more familiar with UI design so as to better understand my clients needs and requirements.

Useful resources

In order to do this project in a correct way you need to have a good knowledge of html and pure css and grid and then tailwind and you need to know how to work with alpine js in the project and connect it to css if you want to use js.

To my persian friends: You can benefit from this complete article on which sources to use to master flex and grid.

Author

Feel free to ask any questions come to your mind on my github account!

Acknowledgments

I want to thanks my tailwind mentor, Saheb Mohammadi, who has been inspiring and helpfull with great projects, tips and lessons.

Have fun using this project! 🚀