admin-dashboard-backend/groupTasks/groups/shx-order-package-label/index.html

240 lines
5.7 KiB
HTML

<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Versandlabel</title>
<style>
:root {
--container-width: 580mm;
--container-height: 102mm;
}
@font-face {
font-family: "Outfit";
src: url("../../groupsData/static/Outfit-VariableFont_wght.ttf");
}
body {
transform: scale(2);
transform-origin: 0 0;
}
body,
html {
margin: 0;
padding: 0;
font-size: 14px;
width: var(--container-width);
height: var(--container-height);
overflow: hidden;
}
p {
font-family: "Outfit";
font-size: 17.5px;
color: black;
margin: 0;
}
.large-container {
width: var(--container-width);
/* Breite des Containers */
height: var(--container-height);
/* Höhe des Containers */
background-color: #80808000;
/* Hintergrundfarbe */
display: flex;
align-items: center;
}
.container {
/* Höhe des Containers */
height: var(--container-height);
}
.background {
width: var(--container-width);
height: var(--container-height);
overflow: hidden;
position: absolute;
background-color: #fff;
display: flex;
justify-content: center;
align-items: center;
gap: 20mm;
z-index: -10;
opacity: 0.25;
}
.bgRotate {
transform: rotate(-15deg) translate(0, 0mm);
}
.social_media {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
width: 100%;
gap: 2mm;
}
.insta_logo,
.tiktok_logo {
width: 8mm;
}
.social_media_area {
display: flex;
justify-content: space-between;
width: 100%;
gap: 20mm;
}
.bgContainer {
display: flex;
justify-content: center;
align-items: center;
gap: 40mm;
flex-direction: column;
width: 60mm;
}
.myCustomText {
font-size: 20px;
max-width: 80mm;
white-space: nowrap;
/* Prevents text wrapping */
overflow: hidden;
/* Optional: hides text that exceeds max-width */
text-overflow: ellipsis;
/* Optional: adds '...' for overflowed text */
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}
</style>
</head>
<body>
<div class="background">
<div class="bgRotate">
<div class="bgContainer">
<div class="social_media_area">
<div class="social_media">
<p>Folge uns</p>
<img
class="insta_logo"
src="../../groupsData/shx-order-package-label/instagram-logo.png"
/>
<p>SHINNEX</p>
</div>
<div class="social_media">
<p>Folge uns</p>
<img
class="tiktok_logo"
src="../../groupsData/shx-order-package-label/tiktok-logo.png"
/>
<p>SHINNEX</p>
</div>
</div>
<p class="myCustomText">Von SHINNEX für dich</p>
<div class="social_media_area">
<div class="social_media">
<p>Folge uns</p>
<img
class="tiktok_logo"
src="../../groupsData/shx-order-package-label/tiktok-logo.png"
/>
<p>SHINNEX</p>
</div>
<div class="social_media">
<p>Folge uns</p>
<img
class="insta_logo"
src="../../groupsData/shx-order-package-label/instagram-logo.png"
/>
<p>SHINNEX</p>
</div>
</div>
</div>
</div>
</div>
<div class="large-container">
<div
class="container"
style="width: 20mm; background-color: rgba(255, 166, 0, 0)"
></div>
<img src="scissors.svg" />
<div
class="container"
style="
width: 240mm;
background-color: rgba(0, 0, 255, 0);
display: flex;
justify-content: center;
align-items: center;
"
>
<img
src="../../groupsData/shx-order-package-label/stempel.png"
width="400"
style="filter: drop-shadow(0 0 2mm #fff)"
/>
</div>
<img src="scissors.svg" />
<div
class="container"
style="width: 40mm; background-color: rgba(255, 192, 203, 0)"
></div>
<div
class="container"
style="
width: 240mm;
background-color: rgba(128, 0, 128, 0);
display: flex;
justify-content: center;
align-items: center;
"
>
<img
src="label.png"
width="760"
style="box-shadow: 0 0 15mm 15mm #fff"
/>
</div>
<div
class="container"
style="width: 40mm; background-color: rgba(255, 255, 0, 0)"
></div>
</div>
<script>
const name = "{{CUSTOMER_FIRST_NAME}}";
document.querySelector(".myCustomText").innerHTML =
`Von SHINNEX für ` + name;
let bg = document.querySelector(".background");
let bgRotate = document.querySelector(".background .bgRotate");
// clone bgRotate often enough to fill the screen with for loop
for (let i = 0; i < 20; i++) {
let clone = bgRotate.cloneNode(true);
bg.appendChild(clone);
}
</script>
</body>
</html>