Design comparison
Solution retrospective
I would appreciate any feedback! I'm very new to scss still. One of the issues I was having was using "@use" to import my partials into my main scss style sheet. I eventually was able to more it work using @import and I can't seem to figure it out. Also issues with vs code plugins crashing whenever I would open the style.scss file.
Community feedback
- @pikapikamartPosted about 3 years ago
Hey, great work on this one. The desktop layout seems a bit bigger but is fine, it resize as well and looks fine in mobile.
For the scss functions, I think Conrad already suggested a good resource.
Some suggestions on the website would be:
- Do not
position: absolute
the.flex-container
element. If you inspect your website in dev tools, then hover on thebody
tag, you will see that thebody
doesn't have any dimension, because its content, the.flex-container
is out of the flow. If you are centering the card, instead of usingposition: absolute
, take a look at below stylings:
First, on the .flex-container, remove all these stylings: { position: absolute; */ top: 50%; left: 50%; transform: translate(-50%, -50%); margin: 1rem auto 0; } Then on the body tag, add these body { align-items: center; display: flex; justify-content: center; min-height: 100vh; padding: adjust to your preference but add padding }
Those styling above will dynamically centers your content. Also, the
min-height: 100vh
ensures that thebody
tag will have enoughheight
to align the content vertically. Also,height: 100vh
is different tomin-height: 100vh
okay, themin-height
is much much better. Do not use theheight: 100vh
.- On the
img
for the card, I would usealt=""
on it, because it is just for decoration and it is just a vector image. - I would wrap the
annual plan
in a heading tag, because if I navigate in it using screen reader, I would know that the next content will/could be the price of my "plan". - On the
proceed to payment
it would be better for thea
tag to occupy the whole size of thediv
parent, so that users can click as well on the blue bar and trigger the link. Right now, even if you click on the blue bar, it doesn't make anything.
Aside from those, really great work on this one.
Marked as helpful0@BrandenEvansWDPosted about 3 years ago@pikamart Thank you so much for the tips. I struggled to get the card center and just used that horrible hacky method so thank you for that. Fixed everything I believe while also getting rid of some of my deprecated scss thanks to another @conrad's video suggestion.
0 - Do not
- @ConradMcGrifterPosted about 3 years ago
check out this video by Kevin Powell on how to use @forward and @use link to video
Marked as helpful0 - @Kl3vaPosted about 3 years ago
This comment was deleted about 3 years ago
0@pikapikamartPosted about 3 years ago@Kl3va nodemon? nodemon is for starting and restarting the server from backend I think you have a separate script that builds the scss. nodemon doesn't do compiling
0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord