Sagar Kapoor
CSS class nomenclature for components and pages
What's the recommended way to structure root element class names in Nuxt 3 components and pages with SCSS? For example, should ProductCard.vue use .product-card and products.vue use .products-page as their root classes?
5 replies
How to password protect a site?
I want to quickly share a project I made with a client. But I want to password protect it so that it cannot be accessed by anyone else.
The site would be up for a very short time so I don't want to mess with Authentication and stuff. I am searching for a very simple solution.
Thanks in advance.
3 replies
Responsive Header Menu
I am working on a responsive menu and this is what I came up with:
https://gist.github.com/Sagar-Kap/abdbac1380f76cc36d3297ff9dead1b2
The only thing about this menu that is bugging me out is that I am using this piece of code to change the visibility of the menu buttons:
Is this acceptable in this case? is there a workaround?
3 replies
Getting error when running ESLint & Prettier"Disallow self-closing on HTML void elements (<img/>)"
I am using ESLint and Prettier in the project and when I try to remove the
/
and save, it gets restored when I save because of Prettier.
How can I fix this issue? Is there a plugin that i have to install which will make it so that ESLint and Prettier will not interfere with each other?2 replies