Latest comments
- @JEWebDev@Ludzikk
Hello
background-image: url("assets/images/background-pattern-desktop.svg");
since this code is in css/style.css by doing path like u did, u are kinda like stuck inside of css folder, you first need to use ../ to leave css folder and enter your main folder and then continue path that you did.
background-image: url("../assets/images/background-pattern-desktop.svg");
You did same path in js but it's working there becouse js is putting this path to html file. Your html file is in main folder so that's why it don't work only in css file.
- @yogskr@Ludzikk
Hello, i don't know why button didn't worked for you. I did copy your code to test it and button tag work completly fine.
I have just one suggestion about one thing in your js code.
emailInput.style.border = '1px solid hsl(4, 100%, 67%)'; emailInput.style.backgroundColor = 'rgba(255, 87, 135, 0.1)'; emailInput.style.color = 'hsl(4, 100%, 67%)';
Im not a big fan of styling by this way, it would be more simple by adding all of these to css class and then toggle that class when u need it.
- @Shakeel-Coder@Ludzikk
Hello, im not good at giving advice, but i'll try my best. So to validate email you will have to check if email in input is correct on click on button. So if it's correct after checking regex.
Function you are trying to run on dismiss button named: dismissMessage() is not defined.
To close popup msg, simply remove "hide" class from your submit form and add "hide" class to popup msg.
If you need more help msg me on discord it's linked on my github.
Marked as helpful