alex 2024-05-04 15:36:39 +02:00
parent d23b579246
commit dcddfd9b24
5 changed files with 171 additions and 201 deletions

View File

@ -1,6 +1,7 @@
<!DOCTYPE html>
<html lang="de">
<head>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Versandlabel</title>
@ -116,27 +117,21 @@
transform: translate(-50%, -50%);
}
</style>
</head>
</head>
<body>
<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"
/>
<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"
/>
<img class="tiktok_logo" src="../../groupsData/shx-order-package-label/tiktok-logo.png" />
<p>SHINNEX</p>
</div>
</div>
@ -146,18 +141,12 @@
<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"
/>
<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"
/>
<img class="insta_logo" src="../../groupsData/shx-order-package-label/instagram-logo.png" />
<p>SHINNEX</p>
</div>
</div>
@ -165,58 +154,36 @@
</div>
</div>
<div class="large-container">
<div
class="container"
style="width: 20mm; background-color: rgba(255, 166, 0, 0)"
></div>
<div class="container" style="width: 20mm; background-color: rgba(255, 166, 0, 0)"></div>
<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)"
/>
">
<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" />
<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"
/>
">
<img src="label.png" style="height: 100%; box-shadow: 0 0 15mm 15mm #fff" />
</div>
<div
class="container"
style="width: 40mm; background-color: rgba(255, 255, 0, 0)"
></div>
<div class="container" style="width: 40mm; background-color: rgba(255, 255, 0, 0)"></div>
</div>
<script>
@ -235,5 +202,6 @@
bg.appendChild(clone);
}
</script>
</body>
</body>
</html>

View File

@ -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"])

View File

@ -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",

View File

@ -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}")

View File

@ -15,7 +15,7 @@
background-repeat: no-repeat;
background-position: center;
background-size: 55%;
opacity: 0.05;
opacity: 0.1;
}
.content {