@correlucas
Posted
๐พHello @GastonSKL, congratulations on your first solution!
Nice code and nice solution! You did a good job here putting everything together. Iโve some suggestions for you:
1.Fix the alignment of the whole content using flex
and min-height
to manage the vertical alignment and make everything centered.First of all put min-height: 100vh
to the body
to make the body display 100% of the viewport height (this makes the container align to the height size that's now 100% of the screen height) size and display: flex
e flex-direction: column
to align the child element (the container) vertically using the body as reference.
body {
min-height: 100vh;
font-size: 15px;
font-family: 'Inter', sans-serif;
background-color: var(--Verydarkblue);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
2.To get closer to overlay effect
on the photo as the Figma Design its better you use mix-blend-mode
. All you need is the div
under the image
with this background-color: hsl(277, 64%, 61%);
and apply mix-blend-mode: multiply
and opacity: 80%
on the img
or picture
selector to activate the overlay blending the image with the color of the div. See the code bellow:
img {
mix-blend-mode: multiply;
opacity: 80%;
}
โ๏ธ I hope this helps you and happy coding!
Marked as helpful