Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

product-preview-card-component

@AkshayV30

Desktop design screenshot for the Product preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


What are you most proud of, and what would you do differently next time?

I am proud of creating a simple webpage component which is modular in nature can be coded to be used in any other component of a website.

What challenges did you encounter, and how did you overcome them?

Faced challenges while writing the media queries and while making the edges of the card round at edges.

What specific areas of your project would you like help with?

Can the code be improved further with less lines of code while maintaining readability if so please let me know?.

Community feedback

P

@Antonvasilache

Posted

Hello there!

Nice work creating the preview card. A few minor suggestions, if you are interested:

Your h2 heading should use font-family, instead of font-style to apply the desired font:

.product-heading-2{
`font-family: 'Fraunces', serif;
}

Also, you might want to consider the use of variables, instead of repeating the hsl/rgb codes, like so:

:root {
  --Dark-cyan: hsl(158, 36%, 37%);
  --Cream: hsl(30, 38%, 92%);
  --Very-dark-blue: hsl(212, 21%, 14%);
  --Dark-grayish-blue: hsl(228, 12%, 48%);
  --White: hsl(0, 0%, 100%);
}

body {
  background-color: var(--Cream);
}

Hope you find this useful.

Good luck!

0

Please log in to post a comment

Log in with GitHub
Discord logo

Join 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