I am trying do do a Dashboard like with an CSS Grid Layout. I never worked with Grids and most of online tutorials are not useful because its such complex.
This is my Figma Design (width & height are not exactly accurate, just a scratch)
These are my beginnings of doing it without a Grid. I did some workarounds with margin and stuff.
.secure-margin {
margin: 1vw;
}
.inner-box {
position: absolute;
margin-top: 0.5vw;
margin-left: 0.8vw;
}
.dash-welc {
background-color: rgba(144, 22, 216, 0.8);
width: 64vw;
height: 11.09vw;
border-radius: 2vw;
margin-bottom: 1vw;
}
.dash-welc-tit {
font-family: 'Chakra Petch';
font-size: 22px;
font-size: 2vw;
font-weight: bolder;
}
.dash-welc-txt {
font-family: 'Roboto Black', sans-serif;
font-size: 1.5vw;
}
.dash-info {
position: absolute;
background-color: rgba(144, 22, 216, 0.8);
width: 29vw;
height: 49vw;
left: 66.5vw;
top: 1vw;
border-radius: 2vw;
margin-bottom: 1vw;
}
<div class="secure-margin">
<!--Wrapper Around Dash-->
<div class="dash-welc">
<div class="inner-box">
<h1 class="dash-welc-tit">Wilkommen,
<?php echo $daten['firstname']." ".$daten['lastname']; ?>
</h1><br>
<h1 class="dash-welc-txt">Hier im Dashbaord siehst du die wichtigsten Informationen zu deinem Charakter.<br> Willst du deine Fraktion verwalten oder andere Aktionen durchführen,<br> wähle es links im Menu aus.</h1>
</div>
</div>
<div class="dash-info">
<div class="inner-box"></div>
</div>
</div>
This is my result...
But I think its better todo it with a Grid. Gap between every Element and the sides should be 1.5vw
Would be nice if someone experienced could just Scratch this up and explain a little bit.

