Sagar Kapoor
Sagar Kapoor
NNuxt
Created by Sagar Kapoor on 10/19/2024 in #❓・help
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
NNuxt
Created by Sagar Kapoor on 10/2/2024 in #❓・help
Cookie consent banner for Google Analytics
I want to implement a cookie consent banner for a Nuxt3 project, how can I go about it? Do you guys use an external library for this?
3 replies
NNuxt
Created by Sagar Kapoor on 9/6/2024 in #❓・help
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:
watchEffect(() => {
if (isClient.value) {
if (mobileNav.value) {
document.body.style.overflow = "hidden";
} else {
document.body.style.overflow = "";
}
}
});
watchEffect(() => {
if (isClient.value) {
if (mobileNav.value) {
document.body.style.overflow = "hidden";
} else {
document.body.style.overflow = "";
}
}
});
Is this acceptable in this case? is there a workaround?
3 replies
NNuxt
Created by Sagar Kapoor on 8/25/2024 in #❓・help
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
NNuxt
Created by Sagar Kapoor on 8/17/2024 in #❓・help
How to dynamically render images in Nuxt3
How do I dynamically render images in Nuxt 3? I want to do something like this:
<img src=`/assets/icons/${imageName}.svg`>
<img src=`/assets/icons/${imageName}.svg`>
7 replies
NNuxt
Created by Sagar Kapoor on 7/15/2024 in #❓・help
I want to have a logo as a link, how should I go about it?
As the title says, I am trying to embed a link within a logo. What would be the best way to do it? should I use NuxtLink and then some kind of Nuxt Image component?
4 replies