@darryncodes
Posted
Hi Manvanth,
Well done, a very close match on desktop!
At a glance here is some amendments you could try. I'd really encourage you to research responsive design:
- add a media query on
.container
and addflex-direction: column;
at a mobile breakpoint to make your design responsive. Then addorder: 2;
to.text-area
to move the text below the image - this is an invaluable resource A Complete Guide to Flexbox
- remove
background-color: hsl(233, 47%, 7%);
andheight: 100vh;
from.background
your body could be the background instead of the extra<div>
- add the following to your body to centre your design nicely in the viewport with the above steps
min-height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background-color: hsl(233, 47%, 7%);
Marked as helpful
@MANVANTH04
Posted
Thank you darry @darryncodes