JSFiddle - React, Tailwind, and code Playground
HTML
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="style.css">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
</head>
<body>
<div style="width: 210mm; height: 297mm;">
<div class="container">
<div class="row mt-4">
<div class="col-4 d-flex justify-content-end">
<img src="./logo.png" class="" height="60px" width="150px">
</div>
<div class="col-4 d-flex justify-content-center my-auto">
<span style="z-index: 9999 !important;" id="_insert"></span>
</div>
<div class="col-4 my-auto">
HTTPS://dummpage.com
</div>
</div>
<div class="row mt-4">
<div class="col-4 d-flex">
<span style="margin-left:40%">users:</span>
</div>
<div class="col-8 d-flex justify-content-center my-auto">
<span style="font-size: 12px;">Test user bla bla</span>
</div>
</div>
<div class="row mt-4">
<div class="col-6 d-flex justify-content-end">
<div class="custom-box">
<span style="margin-left:25px; color: white; font-size: 12px">spent energyA:</span><br>
<span style="margin-left:25px; color: white; font-size: 45px">35,42 kWh</span>
</div>
</div>
<div class="col-6">
<div class="custom-box">
<span style="margin-left:25px; color: white; font-size: 12px">spent energyA:</span><br>
<span style="margin-left:25px; color: white;...
CSS
.custom-box {
width: 300px;
height: 95px;
background-color: #231653;
color: white;
}
.custom-box2 {
width: 300px;
height: 95px;
border-style: solid;
border-color: #231653;
}
.table {
font-size:12px;
}
JavaScript
$().ready(function() {
const firma = "TEST";
document.getElementById("_insert").innerHTML = firma;
});