For a client I need to have an image and 3 shapes in the hero section. The hero always needs to be 100vh minus the height of the header. I have already worked this out in JS, but I can't figure out how to style the icons in a way they always align perfectly in width and height.
I have tried to put them in a grid, flexbox and absolute values, but none of them seem to do the job. If further information is needed I'd be happy to provide it. This seems so simple in my mind but I just can't find the seemingly easy solution.
My html is as follows:
#vormen {
display: flex;
align-items: flex-start;
height: 100vh;
}
#vormen .shape_group {
display: flex;
align-items: flex-start;
flex-wrap: wrap;
}
#vormen .shape_group svg {
width: 50%;
max-height: 50%;
}
#vormen #image_container {
width: 100%;
height: 100%;
}
#vormen #image_container img {
width: 100%;
height: 100%;
object-fit: cover;
}
<div class="fl-html" id="vormen">
<div id="shapes_1" class="shape_group">
<svg xmlns="http://www.w3.org/2000/svg" width="471.875" height="471.875" viewBox="0 0 471.875 471.875" id="shape_1">
<path id="Path_6" data-name="Path 6" d="M0,0,471.875,471.875V0Z" fill="#56c385"/>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" width="471.214" height="471.214" viewBox="0 0 471.214 471.214" id="shape_2">
<path id="Path_2" data-name="Path 2" d="M148.612,0,85.48,80.105,22.349,0,7.729,100.94-87,63.132l37.81,94.727-100.942,14.618,80.107,63.132-80.107,63.13,100.942,14.62L-87,408.085l94.725-37.81,14.62,100.94L85.48,391.107l63.132,80.107,14.62-100.94,94.725,37.81-37.808-94.727,100.938-14.62-80.105-63.13,80.105-63.132L220.149,157.859l37.808-94.727L163.232,100.94Z" transform="translate(150.128)" fill="#56c385"/>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" width="471.216" height="464.556" viewBox="0 0 471.216 464.556" id="shape_3">
<g id="Group_225" data-name="Group 225" transform="translate(-468.98 -468.853)">
<path id="Path_3" data-name="Path 3" d="M117.206,0C-12.915,0-118.4,52-118.4,116.138s105.487,116.14,235.608,116.14,235.608-52,235.608-116.14S247.328,0,117.206,0" transform="translate(587.382 701.131)" fill="#56c385"/>
<path id="Path_4" data-name="Path 4" d="M117.206,0C-12.915,0-118.4,52-118.4,116.138s105.487,116.14,235.608,116.14,235.608-52,235.608-116.14S247.328,0,117.206,0" transform="translate(587.382 468.853)" fill="#56c385"/>
</g>
</svg>
</div>
<div id="image_container">
<img src="https://image.shutterstock.com/image-illustration/modern-interior-server-room-data-600w-1717870396.jpg">
</div>
</div>