@correlucas
Posted
👾Fala Nathan, tudo bem? Parabéns pelo desafio!
Eu sugiro você construir esse component com GRID, que é bem mais fácil e pratico. Aqui um passo a passo para construir este componente com 2 colunas tudo o que você precisa fazer é criar um bloco principal para conter todo o conteúdo (você pode usar <main>
para quebrar), defina seu width
como max-width: 900px
(é o tamanho do contêiner) e display: grid
/ grid-template-column: 1fr 1fr
(isso significa que seu componente terá duas colunas com 50% da largura do contêiner cada uma é 450px)
Para fazer a parte mobile basta aplicar grid-template-column: 1fr
pra deixar o container mostrando apenas uma div por coluna.
👋 Espero ter ajudado e continue no foco!