Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted about 1 year ago

Product card component

planeboom911•40
@planeboom911
A solution to the Product preview card component challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


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

I learned to build responsive layouts using grids. It was very interesting to start mobile first and adjust the grid to desktop.

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

I encountered some challenges of grids, encountered them through googling. also, there was the line-through not going through the center, for that this StackOverflow post helped

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

is it just me or everyone that uses this long css for a button ?

button {
  display: flex;
  align-items: center;
  justify-content: center;

  font-family: 'Montserrat', sans-serif;
  font-weight: 600;

  outline: none;
  border: none;
  cursor: pointer;

  width: 100%;
  max-height: 3rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  column-gap: 0.5rem;
  
  background: var(--cyan-dark);
  color: white;
}
/* Also button:focus-within, button:hover, & button:active states */

Please tell me how to improve!

Suggestions and feedback are very much appreciated.

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on planeboom911's solution.

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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License