- Hardest thing was to get the "add to cart" icon aligned with text (still don't know how to achieve this without using absolute positioning).
- Have no clue how to center the smaller old price tag to the right of the actual price.
- Is there a better way to implement the "add to cart" icon?
Adeola Ganiu
@DeolabestAll comments
- @EinaroksSubmitted over 1 year ago@DeolabestPosted over 1 year ago
Hey , Congratulations on completing this challenge!
Here is my feedback:
-
You're using the span element too much.
-
Use <main> instead of a simple <div> to improve the semantics and accessibility on the page. Remember that every page should have a <main> block and that <div> doesn't have any semantic meaning.
To answer your questions.
*1. The Add to Cart text and icon are both in the button. Just put them in it like this:
<button class="btn" type="button"><img src="images/icon-cart.svg" alt="">Add to Cart</button>
Then you can give the img some margins to create space.
*2. For the smaller old price, you have to make sure both prices are under one parent elements. i.e.
<div class="prices"> <strong>$149.99</strong> <p class="original-price">$169.99</p> </div>
Then use this CSS:
.prices { display: flex; margin: 20px; } strong { font-size: 2rem; margin-right: 15px; } .prices p{ font-size: 0.8rem; margin-top: 12px; }
*3. Already answered in the first question.
Keep doing a good job!
Marked as helpful0 -
- @0xabdulkhaliqSubmitted almost 2 years ago
Hello everyone..π¨βπ»
- This was an excellent challenge to train and improve my knowledge with
grid
&flex
layout. - As always, i gave a personal touch to this solution
- I tried to make my code as clean and readable as possible! If there's anything I can improve on this, I'd love to know!
Things i tweaked up..π
- Added shake animation for mail validation
- Used
scrollreveal.js
ondom
elements to animate them - Added a welcoming page, which greets the user
Feel free to leave comments on how I can improve my code.
Peace be upon you..β¨
@DeolabestPosted over 1 year agoHey @0xAbdulKhalid, Congratulations on completing this challenge!
Here is my feedback:
-
Your design is so amazing. The animation makes it more attractive.
-
The project is not responsive enough for iPad and Tablet users (481px β 768px).
-
Some of the design is cutting out for the mobile users (320px β 480px) too.
Keep doing a good job!
Marked as helpful0 - This was an excellent challenge to train and improve my knowledge with
- @KuraanalSubmitted over 1 year ago@DeolabestPosted over 1 year ago
https://www.youtube.com/watch?v=BW0FCFV323s
Hey @Kuraanal, Congratulations on completing this challenge!
Here is my feedback:
-
Firstly, you did not upload your project properly on Github. Please watch this video for guidance
https://www.youtube.com/watch?v=BW0FCFV323s
-
It's not a good practice to use px to set font-size. Instead use rem units, they are great since they adapt better to the font-size the user will set in the browser settings. You can convert from px to rem here:
https://pixelsconverter.com/px-to-rem.
-
The project is not responsive enough. The width of the
main
element should determine where the media query should begin.
Keep doing a good job!
0 -
- @xdcronSubmitted over 1 year ago
Very happy with how this came out .would love to hear some feedback.
@DeolabestPosted over 1 year agoHey @xdcron, Congratulations on completing this challenge!
Here is my feedback:
- You don't need a div for main-container when you already have the main element.
Keep doing a good job!
Marked as helpful1 - @HermodesignSubmitted over 1 year ago@DeolabestPosted over 1 year ago
Hey @Hermodesign, Congratulations on completing this challenge!
Here is my feedback:
-
It's not a good practice to use px to set font-size. Instead use rem units, they are great since they adapt better to the font-size the user will set in the browser settings. You can convert from px to rem here:
https://pixelsconverter.com/px-to-rem.
-
Use <main> instead of a simple <div> to improve the semantics and accessibility on the page. Remember that every page should have a <main> block and that <div> doesn't have any semantic meaning.
-
This property
background-color: hsl(212, 45%, 89%);
should be under thebody
element to avoid the white space in the body.
i.e.
body { height: 100vh; display: flex; align-items: center; justify-content: center; background-color: hsl(212, 45%, 89%); }
Keep doing a good job!
Marked as helpful0 -
- @Spsingh0005Submitted over 1 year ago@DeolabestPosted over 1 year ago
Hey @Spsingh0005, Congratulations on completing this challenge!
Here is my feedback:
-
You're using about 3 different font-family that's making the required one for the project Montserrat not to work.
-
- Use <main> instead of a simple <div> to improve the semantics and accessibility on the page. Remember that every page should have a <main> block and that <div> doesn't have any semantic meaning.
Keep doing a good job!
Marked as helpful0 -
- @ecemgoSubmitted over 1 year ago@DeolabestPosted over 1 year ago
Hey @ecemgo, Congratulations on completing this challenge!
Your solutions are top notch and I've learnt a lot from them.
I noticed the top border-radius is missing from the mobile version.
Keep doing a good job!
1 - @visualdennissSubmitted over 1 year ago
It starts with a loader animation, once you get to Thank You page, you can click on Thank you again to go back and forth between two pages/states.
A challenge i've done while ago, so i'vent changed the old code, (e.g. conversion from px to rem etc) but i've just added some animations today.
@DeolabestPosted over 1 year agoHey , Congratulations on completing this challenge!
Here is my feedback:
-
The thanks page doesn't have the option to rate again.
-
5 star rating is selected by default which shouldn't be the case.
NB: I just started learning JS and I'm checking out some related projects here.
Keep doing a good job!
0 -
- @jmjulesSubmitted over 1 year ago
I tried to use radio buttons so that my HTML is more semantic. For some Reason the content is slightly more to the left for Desktop in the given designs, which gave me difficulties in recreating the layout.
@DeolabestPosted over 1 year agoGreat work!
You forgot to add the JS file on Github.
0 - @simplysabirSubmitted almost 2 years ago@DeolabestPosted almost 2 years ago
Hey @simplysabir, Congratulations on completing this challenge!
Here is my feedback:
-
It's not a good practice to use px to set font-size. Instead use rem units, they are great since they adapt better to the font-size the user will set in the browser settings. You can convert from px to rem here:
https://pixelsconverter.com/px-to-rem.
-
Use <main> instead of a simple <div> to improve the semantics and accessibility on the page. Remember that every page should have a <main> block and that <div> doesn't have any semantic meaning.
Keep doing a good job!
Marked as helpful0 -
- @dragonansonSubmitted almost 2 years ago@DeolabestPosted almost 2 years ago
Hey @dragonanson, Congratulations on completing this challenge!
Here is my feedback:
-
It's not a good practice to use px to set font-size. Instead use rem units, they are great since they adapt better to the font-size the user will set in the browser settings. You can convert from px to rem here:
https://pixelsconverter.com/px-to-rem.
-
Use <main> instead of a simple <div> to improve the semantics and accessibility on the page. Remember that every page should have a <main> block and that <div> doesn't have any semantic meaning.
Keep doing a good job!
0 -
- @YaswanthSaiChSubmitted almost 2 years ago@DeolabestPosted almost 2 years ago
Hey @YaswanthSaiCh, Congratulations on completing this challenge!
Here is my feedback:
-
It's not a good practice to use px to set font-size. Instead use rem units, they are great since they adapt better to the font-size the user will set in the browser settings. You can convert from px to rem here:
https://pixelsconverter.com/px-to-rem.
-
Use <main> instead of a simple <div> to improve the semantics and accessibility on the page. Remember that every page should have a <main> block and that <div> doesn't have any semantic meaning.
-
Also add a little margin to the bottom of the original price.
Keep doing a good job!
0 -