Design comparison
Solution retrospective
-
Anybody knows how to repeat the star multiple times (without inserting the image 5 times in the html) ? I tried using
background-repeat: space
but it doesn't let adjust the space between the stars. -
How is it overall? I feel like I've written too many lines of css code.
Community feedback
- @ApplePieGiraffePosted about 4 years ago
Hey, Yemisrach15! π
Great job on this challenge! It matches the original design very nicely! π
In addition to mrjayy5's feedback, I suggest,
- Allowing the height body of the page to scale to the height of the viewport so that it fills up the entire screen and the background SVG to the right sticks to the bottom of the screen (even on large screens).
Keep coding (and happy coding, too)! π
1 - @mrjayy5Posted about 4 years ago
Hi Yemisrach, I love your work ππΌ!
You have a great eye for detail I can see π! I like to see how you handled the responsiveness, great work!
-
I think you should try to make a
.star
element in your CSS and replace theimg
's with<div class='star-icon'></div>
. This way the page only need to download the SVG once. But you still have to insert the element 5 times. -
I think the HTML is pretty clean. Good indent, so it's nice to read. You should consider using Sass. It can reduce the lines of CSS significantly and it's easier to maintain. So especially for bigger projects it's a must have!
Keep on coding π₯!
1@Yemisrach15Posted about 4 years agoThank you @mrjayy5. I used PerfectPixel chrome extensionπ
-
Yep you're right. Very insightful. I didn't think about that but will definitely use that in the future.
-
I've never used Sass. I'll look into that if I plan to do big projects as you said.
0@mrjayy5Posted about 4 years ago@Yemisrach15 it might be usefull to start with Sass on small project so you can get the hang of it right away. It might seems scary at first, but its really easy. 1 small project in Sass will give you confident working with Sass! And you will never go back again haha!
1@Yemisrach15Posted about 4 years ago@mrjayy5 True. I'll try to. Thanks for the boost.
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