<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" c initial-scale=1.0">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
>
<title>Ticket</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@300;400;500&family=Inclusive+Sans&family=Montserrat:wght@300;400;500&family=Open+Sans:wght@300&display=swap');
/* Define styles for .ticket class */
html {
-webkit-print-color-adjust: exact;
}
.ticket {
max-width: 100%;
display: flex;
font-family: Roboto;
margin: 16px;
border: 1px solid grey;
position: relative;
}
/* Define styles for the ticket corners */
.ticket:after {
content: '';
width: 32px;
height: 32px;
background-color: #fff;
border: 1px solid grey;
position: absolute;
border-radius: 50%;
border: 1px solid grey;
border-top-color: transparent;
border-left-color: transparent;
top: 50%;
margin-top: -16px;
border-radius: 50%;
transform: rotate(135deg);
right: -18px;
top: 50%;
margin-top: -16px;
}
.ticket--end:before {
content: '';
width: 32px;
height: 32px;
background-color: #fff;
border: 1px solid grey;
position: absolute;
border-radius: 50%;
border: 1px solid grey;
border-bottom-color: transparent;
border-top-color: transparent;
border-right-color: transparent;
top: 50%;
margin-top: -16px;
border-radius: 50%;
transform: rotate(135deg);
right: -18px;
top: 50%;
margin-top: -16px;
}
.ticket--end:after {
content: '';
width: 32px;
height: 32px;
background-color: #fff;
border: 1px solid grey;
position: absolute;
border-radius: 50%;
border: 1px solid grey;
border-right-color: transparent;
border-left-color: transparent;
border-bottom-color: transparent;
top: 50%;
margin-top: -16px;
border-radius: 50%;
transform: rotate(135deg);
right: -18px;
top: 50%;
margin-top: -16px;
}
/* Define styles for .ticket--center class */
.ticket--center {
max-width: 100%;
display: flex;
flex-direction: column;
gap: 15px;
}
.ticket--center--row {
display: flex;
}
.ticket--center--row:not(:last-child) {
padding-bottom: 48px;
}
.ticket--center--row:first-child span {
color: #4872b0;
/* Updated color */
text-transform: uppercase;
line-height: 24px;
font-size: 13px;
font-weight: 500;
}
.ticket--center--row strong {
font-size: 20px;
font-weight: 400;
text-transform: uppercase;
}
.ticket--center--col {
display: flex;
flex: 1;
width: 50%;
box-sizing: border-box;
}
.ticket--center--col:not(:last-child) {
padding-right: 16px;
}
/* Define styles for .ticket--end class */
.ticket--end {
width: auto;
background-color: #faae4d;
padding: 50px;
display: flex;
flex-direction: column;
gap: 20px;
position: relative;
align-items: center;
}
.ticket--end:before {
transform: rotate(-45deg);
right: -18px;
top: -2px;
margin-top: -16px;
}
.ticket--end:after {
transform: rotate(-45deg);
right: -18px;
top: 100%;
margin-top: -16px;
}
.ticket--end>div:first-child {
flex: 1;
}
.ticket--end>div:first-child>img {
width: 128px;
padding: 4px;
}
.ticket--end>div:last-child>img {
display: block;
margin: 0 auto;
filter: brightness(2);
opacity: 1;
}
/* Define styles for .ticket--info classes */
.ticket--info--title {
text-transform: uppercase;
color: #757575;
font-size: 13px;
line-height: 24px;
font-weight: 600;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.ticket--info--subtitle {
font-size: 16px;
line-height: 24px;
font-weight: 500;
color: #4872b0;
/* Updated color */
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.ticket--info--content {
font-size: 13px;
line-height: 24px;
font-weight: 500;
white-space: wrap;
overflow: hidden;
text-overflow: ellipsis;
color: #082f3d;
}
/* Define styles for specific text classes */
.orange-text {
color: #A73121;
font-weight: 500;
font-size: 19px;
font-family: 'sans-serif';
}
.yellow-text {
color: black;
font-weight: 400;
font-size: 20px;
font-family: 'sans-serif';
}
.opacity-text {
font-family: monospace;
font-size: 14px;
font-weight: 500;
}
.date-text {
font-weight: 500;
font-size: 14px;
/* font-style: oblique; */
/* font-family: fantasy; */
}
.details-location {
color: black;
font-size: 15px;
}
#dynamic-segment {
white-space: pre-wrap;
word-wrap: break-word;
}
</style>
</head>
<body fit-content; font-family: 'Open Sans', sans-serif;">
flex; justify-content:space-between; align-items: center; gap: 60px; font-family: 'Open Sans', sans-serif;"
class="ticket">
<div class="ticket--center">
<div flex; flex-direction: column; gap: 20px; padding: 20px 10px 20px 30px ; width: 100%">
<span flex; flex-direction: column;" class="yellow-text">Event Pass
</span>
<div flex; flex-direction: column;">
<span class="ticket--info--title opacity-text">Date and time
</span>
<span class="ticket--info--content">{month} {day} {year}
</span>
<div class=" flex; flex-direction: column;">
<span class="ticket--info--title opacity-text">Segment name
</span>
<span id="dynamic-segment" class="ticket--info--content">{segment}
</span>
<!-- script -->
<!-- [removed]
const dynamicText = "This is the dynamically generated text.";
document.getElementById("dynamic-segment")[removed] = dynamicText;
dynamicSegment.style.whiteSpace = 'pre-wrap';
dynamicSegment.style.wordWrap = 'break-word';
[removed] -->
<div flex; flex-direction: column;">
<span class="ticket--info--title opacity-text">Participant Id
</span>
<span class="ticket--info--content">{p_id}
</span>
<span class="ticket--info--title opacity-text">Participant Email
</span>
<span class="ticket--info--content">{p_email}
</span>
<div flex; flex-direction: column; gap: 10px; padding: 10px; align-items:center;">
<div 80%; height:fit-content; ">
<img src="{host_logo}" />
<div class="flex; flex-direction: column; gap: 10px;">
<div flex; flex-direction: column; gap: 10px;">
<span class="ticket--info--title opacity-text">Location
</span>
<div flex; flex-direction: column;">
<span class="ticket--info--subtitle yellow-text">{location}
</span>
<span class="ticket--info--content" id="dynamic-segment" black;
font-size: 15px;">{location 2}
</span>
<div class="ticket--end">
<div flex; flex-direction:column; align-items: center;">
src="https://res.cloudinary.com/dvzj3k20y/image/upload/v1695383055/Screenshot_2023-09-22_at_5.38.56_PM-removebg-preview_qmgznw.png" />
<p 'Inclusive Sans', sans-serif; color:#212628; font-size: 12px; margin: 0; font-weight: 100; letter-spacing: 1.5px;">Simplifying Events
</p>
<p #4b5563; padding-top: 10px; text-align: center; margin: 0; padding: 0;">
"Don't forget to bring this ticket with you to the event - it holds the key to unlock more details via the QR
code!"
</body>
</html>