Latest solutions
Rock Paper Scissor Lizard Spock with React.js and framer-motion
#motion#react#viteSubmitted over 1 year agoCurrently, I am unhappy with the grid layout for 'Rock Paper Scissors Lizard Spock'. I can't position the lower symbols correctly.
Perhaps someone has an idea of how I can manage this.
Tic Tac Toe Challenge with webpack/Vanilla Javascript and sass
#bem#webpack#sass/scssSubmitted over 2 years agoFEM - Planet Facts Challenge - build with scss/webpack and JavaScript
#cube-css#webpack#sass/scssSubmitted almost 3 years ago
Latest comments
- @Duyen-codes@astragenius
Hey your bg-images and icons dont load correctly.
Remove "/" on all your img url path.
for example:
body { --bg-img: url("/images/bg-mobile-dark.jpg"); } to body { --bg-img: url("images/bg-mobile-dark.jpg"); }
do this on all your image urls. After this all images should load correctly.
Marked as helpful - @jglopezre@astragenius
Hi my friend :)
Delete the div and picture element with the class .background-image. And delete the class in the css file aswell. (these are not necessary) Set the background-image on the body via CSS. (less code)
I make this change on your css file:
body { background-image: url(./images/bg-intro-desktop.png); background-color: #ff7a7a; min-height: 100vh; font-family: "Poppins", sans-serif; }
You can make a mediaquerie to change the mobile image aswell.
media (max-width: 375px) { body { background-image: url(./images/bg-intro-mobile.png); } }
This shoult work:)
have a nice day :)
- @klaudij@astragenius
Hey ho :) Good solution so far. Your layout is really accurate.
You should set the 'label' html element to each input element.
For more Details:
for example
<label for="email"></label> <input type="email" id="email"> or <label for="email"> <input type="email" id="email"> </label>
Technical you don't need Javascript for clientsite formvalidation. You can it do only with CSS pseudo-classes. (its an alternative because some user have deactivate JS on their browser. So no JS validation possible.)
For example
input:invalid { border: 2px dashed red; } input:invalid:required { background-color: red; } input:valid { border: 2px solid green; }
For more Details:
- @MorteyKafui@astragenius
Hey ho :) Good solution so far.
Change
background: url(/images/bg-intro-desktop.png); (you have to add a dot) to background: url(./images/bg-intro-desktop.png); (now your background image is loading).
You can delete the body:after class completly
Add the red background-color in the html element instead:
html { font-size: 62.5%; background-color: hsla(0, 100%, 74%, 0.658); }
You should set the 'label' html element to each input element.
For more Details:
for example
<label for="email"></label> <input type="email" id="email"> or <label for="email"> <input type="email" id="email"> </label>
Technical you don't need Javascript for clientsite formvalidation. You can it do only with CSS pseudo-classes.
For example
input:invalid { border: 2px dashed red; } input:invalid:required { background-color: red; } input:valid { border: 2px solid green; }
For more Details:
- @dreamspice@astragenius
Hey ho :) Good solution so far. Your layout is really accurate.
You should set a 'label' html element to each input element.
For more Details:
for example
<label for="email"></label> <input type="email" id="email"> or <label for="email"> <input type="email" id="email"> </label>
Technical you don't need Javascript for clientsite formvalidation. You can it do only with CSS pseudo-classes.
For example
input:invalid { border: 2px dashed red; } input:invalid:required { background-color: red; } input:valid { border: 2px solid green; }
For more Details:
Marked as helpful - @mlzzi@astragenius
Hey ho :) Good solution so far. Your layout is really accurate.
For your question for the Email input:
- Set a "required" attribute and the "pattern" attribute and set an RegEx for Email validation in it. For example
<input type="email" id="email" placeholder="Email Address" pattern="/[\w\-\._]+@[\w\-\._]+\.\w{2,10}/" required>
You should set the 'label' html element to each input element.
For more Details:
for example
<label for="email"></label> <input type="email" id="email"> or <label for="email"> <input type="email" id="email"> </label>
Technical you don't need Javascript for clientsite formvalidation. You can it do only with CSS pseudo-classes.
For example
input:invalid { border: 2px dashed red; } input:invalid:required { background-color: red; } input:valid { border: 2px solid green; }
For more Details: