Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
302 changes: 302 additions & 0 deletions frontend/vue-gewoscout/src/assets/emailTemplate.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,302 @@
<!DOCTYPE html>
<html>
<head>
<style>
:root {
--font-family: "Inter var", sans-serif;
--font-feature-settings: "cv02", "cv03", "cv04", "cv11";
--primary-color: #f59e0b;
--text-color: #4b5563;
}

.p-menubar {
padding: 0.5rem;
background: #f9fafb;
color: #4b5563;
border: 1px solid #e5e7eb;
border-radius: 6px;
}

.h-2rem {
height: 2rem !important;
}

.p-card {
background: #ffffff;
color: #4b5563;
box-shadow: 0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);
border-radius: 6px;
}

.p-component {
font-family: var(--font-family);
font-feature-settings: var(--font-feature-settings);
font-size: 1rem;
font-weight: normal;
}

img {
background-image: url('/src/assets/temp.jpg');
background-size: 518px 180px;
background-repeat: no-repeat;
}

.p-card .p-card-body {
padding: 1.25rem;
}

.p-card .p-card-title {
font-size: 1.5rem;
font-weight: 700;
margin-bottom: 0.5rem;
}

.p-card .p-card-subtitle {
font-weight: 400;
margin-bottom: 0.5rem;
color: #6b7280;
}

.pi {
font-family: 'primeicons';
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
display: inline-block;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

.pi-map-marker:before {
content: "📍";
}

.p-card .p-card-content {
padding: 1.25rem 0;
}

.justify-content-around {
justify-content: space-around !important;
}

.flex {
display: flex !important;
}

.m-0 {
margin: 0rem !important;
}

.mt-1 {
margin-top: 0.25rem !important;
}

.flex-column {
flex-direction: column !important;
}

.text-center {
text-align: center !important;
}

.text-right {
text-align: right !important;
}

.p-divider.p-divider-horizontal:before {
border-top: 1px solid #e5e7eb;
}

.p-divider.p-divider-solid.p-divider-horizontal:before {
border-top-style: solid;
}

.p-divider-horizontal:before {
position: absolute;
display: block;
top: 50%;
left: -1.25rem;
width: 100%;
content: "";
}

.p-divider.p-divider-horizontal {
margin: 1.25rem 0;
padding: 0 1.25rem;
}

.p-divider-horizontal {
display: flex;
width: 100%;
position: relative;
align-items: center;
}

.p-card .p-card-footer {
padding: 1.25rem 0 0 0;
}

.gap-3 {
gap: 1rem !important;
}

.w-full {
width: 100% !important;
}

.p-button {
color: #ffffff;
background: #f59e0b;
border: 1px solid #f59e0b;
padding: 0.75rem 1.25rem;
font-size: 1rem;
transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
border-radius: 6px;
outline-color: transparent;
display: inline-flex;
cursor: pointer;
user-select: none;
align-items: center;
text-align: center;
overflow: hidden;
position: relative;
}

.p-button .p-button-label {
transition-duration: 0.2s;
}

.p-button-label {
flex: 1 1 auto;
font-weight: 600;
}

.box-listing {
width: 30rem;
}

.template {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}

.header-logo {
width: 100%;
padding: 0.5rem;
margin-bottom: 1rem;
background: #f9fafb;
color: #4b5563;
border: 1px solid #e5e7eb;
border-radius: 6px;
justify-content: center;
display: flex;
}

text {
font-family: sans-serif;
}

.logo-text {
display: flex;
align-self: center;
flex-direction: row;
}

.user-greeting {
margin: 0 0 0 3rem;
align-self: center;
font-weight: 700;
}
</style>
</head>
<body>
<div class="template">
<div class="header-logo">
<div class="logo-text">
<svg width="41" height="40" viewBox="0 0 35 41" fill="yellow" xmlns="http://www.w3.org/2000/svg" class="h-2rem">
<text x="0" y="15" fill="var(--primary-color)" stroke="var(--primary-color)" font-size="15"> GeWoScout </text>
<text x="0" y="40" fill="var(--text-color)" stroke="var(--text-color)" font-size="15"> Scout </text>
</svg>
<p class="user-greeting p-component">Es gibt eine neue Anzeige für dich :)</p>
</div>
</div>
<div class="box-listing">
<div class="p-card p-component" style="overflow: hidden;">
<div class="p-card-header">
<img src="https://storage.justimmo.at/thumb/0c5072775d363556a7b77425eade1195/fc_h1080_mwebp_w1920/Sha6GzBVrT5ZGLmKsK1yq.jpg" width="100%" height="200">
</div>
<div class="p-card-body">
<div class="p-card-caption">
<div class="p-card-title">Modern 3-Bedroom Apartment in Central Vienna</div>
<div class="p-card-subtitle">
<span class="pi pi-map-marker"></span> 1010 Vienna
</div>
</div>
<div class="p-card-content">
<div class="card flex justify-content-around">
<div class="flex flex-column m-0">
<p>Rooms</p>
<p class="text-center m-0">3</p>
</div>
<div class="flex flex-column m-0">
<p>Area</p>
<p class="text-center m-0">95 m²</p>
</div>
</div>
<div class="p-divider p-component p-divider-horizontal p-divider-solid p-divider-center" style="justify-content: center;"></div>
<div class="card flex justify-content-around">
<div class="flex flex-column m-0">
<p>
<strong>Availability Date</strong>
</p>
<p>
<strong>Year Built</strong>
</p>
<p>
<strong>HWG Energy Class</strong>
</p>
<p>
<strong>FGEE Energy Class</strong>
</p>
<p>
<strong>Rent Price Per Month</strong>
</p>
<p>
<strong>Cooperative Share</strong>
</p>
<p>
<strong>Sale Price</strong>
</p>
<p>
<strong>Additional Fees</strong>
</p>
</div>
<div class="flex flex-column m-0 text-right">
<p>2024-09-01</p>
<p>2019</p>
<p>A</p>
<p>A+</p>
<p>€ 1200</p>
<p>€ 5000</p>
<p>€ 350000</p>
<p>€ 6500</p>
</div>
</div>
</div>
<div class="p-card-footer">
<div class="flex gap-3 mt-1">
<button class="p-button p-component w-full" type="button">
<span class="p-button-label">Request</span>
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
Loading