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

Always I use display: flex

@MellonFive

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


This project I did with hyperfocus. It took me around 5 hours to do this project and it was the first project I do from Front-End mentor

Community feedback

Lucas 👾 104,400

@correlucas

Posted

🐙Fala Felipe beleza? Parabéns pelo novo desafio.

Minha sugestão pra você seria usar grid, porque é bem mais fácil de construir o componente.

Por exemplo, pra fazer o componente com duas colunas exatamente iguais voce só precisa de duas linhas de codigo pro container.

display: grid; e grid-template-column: 1fr 1fr;

E usar flex na div com o conteúdo de texto

Depois pra fazer a versão mobile so precisaria de uma media query mudando pra 1 coluna.

@media (max-width: 350px) {
.container {
Grid-template-column: 1fr;}

Se você quiser pode olhar minha solução pra esse desafio, fiz ela com grid usando esse mesmo esquema.

Boa, continue codando.

0
Elaine 11,400

@elaineleung

Posted

Hi Felipe, well done completing your first challenge at Frontend Mentor! One small suggestion I have is, your image looks squished right now, so try adding object-fit: cover; on the img selector so that it looks normal again.

Also, I see that you used position: absolute and transform to position your component. You can try using a simple way of display:grid instead on the body:

body {
  display: grid;
  place-content: center;
  min-height: 100vh;
}

Once again, great job on your very first challenge, and hope to see more!

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