Design comparison
Solution retrospective
Hello Frontend community! :)
I completed this project a week ago; however, I did not include any comments or adhere to best practices at the time. Since then, I have gained a significant amount of experience and improved my skills. Despite the initial oversights, I thoroughly enjoyed working on this project.
- To accurately position the elements, I extensively utilized the transform feature, which resulted in satisfactory outcomes.
- Furthermore, I incorporated an interactive star rating system that can be altered by modifying the style attribute using "style: --rating: 5 ( any number between 1 - 5.) "
.stars {
--percent: calc(var(--rating) / 5 * 100%);
display: inline-block;
font-size: var(--star-size);
font-family: Times;
line-height: 1;
margin-bottom: .5rem;
}
.stars::before {
content: 'β
β
β
β
β
';
letter-spacing: 5px;
background: linear-gradient(90deg, var(--star-background) var(--percent), var(--star-color) var(--percent));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
I must acknowledge that the code I used was not my own; I found it online and regretfully cannot recall the original author's name. Nevertheless, I diligently reviewed and refactored the code multiple times to gain a thorough understanding of its operations.
I began teaching myself HTML and CSS approximately one and a half weeks ago, and my primary objective is to complete all of the Newbie projects. My intention is to enhance my skills in HTML and CSS to the fullest extent possible before progressing to more complex projects involving complex JavaScript. I invite you to join me on this journey as I continue to solve more challenging projects. As of April 30, 2023, I have successfully completed 11 out of the 18 available Newbie projects.
Community feedback
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