utm
parent
d23b579246
commit
dcddfd9b24
|
@ -1,239 +1,207 @@
|
|||
<!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");
|
||||
}
|
||||
<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;
|
||||
}
|
||||
|
||||
body {
|
||||
transform: scale(2);
|
||||
transform-origin: 0 0;
|
||||
}
|
||||
@font-face {
|
||||
font-family: "Outfit";
|
||||
src: url("../../groupsData/static/Outfit-VariableFont_wght.ttf");
|
||||
}
|
||||
|
||||
body,
|
||||
html {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-size: 14px;
|
||||
width: var(--container-width);
|
||||
height: var(--container-height);
|
||||
overflow: hidden;
|
||||
}
|
||||
body {
|
||||
transform: scale(2);
|
||||
transform-origin: 0 0;
|
||||
}
|
||||
|
||||
p {
|
||||
font-family: "Outfit";
|
||||
font-size: 17.5px;
|
||||
color: black;
|
||||
margin: 0;
|
||||
}
|
||||
body,
|
||||
html {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-size: 14px;
|
||||
width: var(--container-width);
|
||||
height: var(--container-height);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
p {
|
||||
font-family: "Outfit";
|
||||
font-size: 17.5px;
|
||||
color: black;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.container {
|
||||
/* Höhe des Containers */
|
||||
height: var(--container-height);
|
||||
}
|
||||
.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;
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
.container {
|
||||
/* Höhe des Containers */
|
||||
height: var(--container-height);
|
||||
}
|
||||
|
||||
.bgRotate {
|
||||
transform: rotate(-15deg) translate(0, 0mm);
|
||||
}
|
||||
.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;
|
||||
}
|
||||
|
||||
.social_media {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
gap: 2mm;
|
||||
}
|
||||
.bgRotate {
|
||||
transform: rotate(-15deg) translate(0, 0mm);
|
||||
}
|
||||
|
||||
.insta_logo,
|
||||
.tiktok_logo {
|
||||
width: 8mm;
|
||||
}
|
||||
.social_media {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
gap: 2mm;
|
||||
}
|
||||
|
||||
.social_media_area {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
width: 100%;
|
||||
gap: 20mm;
|
||||
}
|
||||
.insta_logo,
|
||||
.tiktok_logo {
|
||||
width: 8mm;
|
||||
}
|
||||
|
||||
.bgContainer {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 40mm;
|
||||
flex-direction: column;
|
||||
width: 60mm;
|
||||
}
|
||||
.social_media_area {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
width: 100%;
|
||||
gap: 20mm;
|
||||
}
|
||||
|
||||
.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>
|
||||
.bgContainer {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 40mm;
|
||||
flex-direction: column;
|
||||
width: 60mm;
|
||||
}
|
||||
|
||||
<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>
|
||||
.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>
|
||||
<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 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 class="large-container">
|
||||
<div
|
||||
class="container"
|
||||
style="width: 20mm; background-color: rgba(255, 166, 0, 0)"
|
||||
></div>
|
||||
</div>
|
||||
<div class="large-container">
|
||||
<div class="container" style="width: 20mm; background-color: rgba(255, 166, 0, 0)"></div>
|
||||
|
||||
<img src="../../groupsData/shx-order-package-label/scissors.svg" />
|
||||
<img src="../../groupsData/shx-order-package-label/scissors.svg" />
|
||||
|
||||
<div
|
||||
class="container"
|
||||
style="
|
||||
<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="../../groupsData/shx-order-package-label/stempel.png" width="400"
|
||||
style="filter: drop-shadow(0 0 2mm #fff)" />
|
||||
</div>
|
||||
|
||||
<img src="../../groupsData/shx-order-package-label/scissors.svg" />
|
||||
<img src="../../groupsData/shx-order-package-label/scissors.svg" />
|
||||
|
||||
<div
|
||||
class="container"
|
||||
style="width: 40mm; background-color: rgba(255, 192, 203, 0)"
|
||||
></div>
|
||||
<div class="container" style="width: 40mm; background-color: rgba(255, 192, 203, 0)"></div>
|
||||
|
||||
<div
|
||||
class="container"
|
||||
style="
|
||||
<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>
|
||||
">
|
||||
<img src="label.png" style="height: 100%; box-shadow: 0 0 15mm 15mm #fff" />
|
||||
</div>
|
||||
|
||||
<script>
|
||||
const name = "{{CUSTOMER_FIRST_NAME}}";
|
||||
<div class="container" style="width: 40mm; background-color: rgba(255, 255, 0, 0)"></div>
|
||||
</div>
|
||||
|
||||
document.querySelector(".myCustomText").innerHTML =
|
||||
`Von SHINNEX für ` + name;
|
||||
<script>
|
||||
const name = "{{CUSTOMER_FIRST_NAME}}";
|
||||
|
||||
let bg = document.querySelector(".background");
|
||||
document.querySelector(".myCustomText").innerHTML =
|
||||
`Von SHINNEX für ` + name;
|
||||
|
||||
let bgRotate = document.querySelector(".background .bgRotate");
|
||||
let bg = document.querySelector(".background");
|
||||
|
||||
// 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>
|
||||
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>
|
|
@ -91,6 +91,6 @@ if __name__ == "__main__":
|
|||
|
||||
replacePlaceholder()
|
||||
|
||||
createHighDpiPng("index.html", "output.png")
|
||||
createHighDpiPng("index.html", "Versandlabel.png")
|
||||
|
||||
utils.clear_workspace(["index.html", "label.png"])
|
||||
utils.clear_workspace(["index.html", "label.png"])
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
{
|
||||
"parameterName": "productUrl",
|
||||
"type": "text",
|
||||
"displayName": "URL vom Produkt (Shopify) (z. B. https://shinnex.de/products/lizard) (für Direktweiterleitung 5 € Gutschein QR-Code)"
|
||||
"displayName": "URL vom Produkt (Shopify) (z. B. https://shinnex.de/products/gizmo) (für Direktweiterleitung 5 € Gutschein QR-Code)"
|
||||
},
|
||||
{
|
||||
"parameterName": "discountCode",
|
||||
|
|
|
@ -114,8 +114,10 @@ def CreateCrmActivityLink(customerId):
|
|||
print(f"CreateCrmActivityLink req error {response.status_code}")
|
||||
sys.exit(1)
|
||||
|
||||
req("10 % Gutschein", "https://shinnex.de")
|
||||
req("5 € Gutschein", productUrl)
|
||||
utm = "?utm_source=order&utm_medium=qrcode&utm_campaign=ordervouchercodes&utm_content=reedemvouchercode"
|
||||
|
||||
req("10 % Gutschein", f"https://shinnex.de/discount/{discountCode}{utm}")
|
||||
req("5 € Gutschein", f"{productUrl}{utm}")
|
||||
req("10 € Gutschein", f"https://docs.google.com/forms/d/e/1FAIpQLSd2GXFbidzazuQnh_Lf2mgeA1npuwHkWjsdmjrxDmSkDQTfew/viewform?entry.347359844={orderId}")
|
||||
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
background-repeat: no-repeat;
|
||||
background-position: center;
|
||||
background-size: 55%;
|
||||
opacity: 0.05;
|
||||
opacity: 0.1;
|
||||
}
|
||||
|
||||
.content {
|
||||
|
|
Loading…
Reference in New Issue