What is a good file structure to have with Vite?

I am using Vite to easily run tailwind and other npm packages in my vanilla HTML and JavaScript. This is what I have now: Current file structure And this is my vite.config.js const { resolve } = require("path"); const { defineConfig } = require("vite"); module.exports = defineConfig({ build: { rollupOptions: { input: { main: resolve(__dirname,… Read More What is a good file structure to have with Vite?

How to associate label with checkbox but not using "for=id"

i have this code: <li><input type="checkbox" id="checkboxThree" value="Alergia3" ><label for="checkboxThree">Alergia 1</label></li> <li><input type="checkbox" id="checkboxFour" value="Alergia4"><label for="checkboxFour">Alergia 1</label></li> <li><input type="checkbox" id="checkboxFive" value="Alergia5"><label for="checkboxFive">Alergia 1</label></li> <li><input type="checkbox" id="checkboxSix" value="Alergia6" ><label for="checkboxSix">Alergia 1</label></li> But I don’t want to use "id" and "for" because I have to do other thing later and I can’t use them. I have see… Read More How to associate label with checkbox but not using "for=id"

Why doesn't the style in my PaperProps within the MenuProps of my Select apply to the select

The white padding in this select won’t disappear and I feel like I’ve tried 30 variations and places to make the css stop showing up. Any advice? This is using MUI 5, and I even tried basing it off of this code, where the styling I applied works, so what could be wrong? Code sandbox… Read More Why doesn't the style in my PaperProps within the MenuProps of my Select apply to the select

Why is my background styling getting ignored?

I have this a scrollable component: <div> <div className="scrolling-component">…</div> <div className="button">…</div> </div> And in the scss file I have: .scrolling-component { background: linear-gradient(white 30%, rgba(255, 255, 255, 0)), linear-gradient(rgba(255, 255, 255, 0), white 70%) 0 100%, radial-gradient(50% 0, farthest-side, rgba(0, 0, 0, .2), rgba(0, 0, 0, 0)), radial-gradient(50% 100%, farthest-side, rgba(0, 0, 0, .2), rgba(0,… Read More Why is my background styling getting ignored?