Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ENHANCEMENT]: Add base templates to all Handlebars email templates #1308

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
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
129 changes: 2 additions & 127 deletions src/modules/email/hng-templates/Account-Deactivation.hbs
Original file line number Diff line number Diff line change
@@ -1,51 +1,5 @@
<html lang='en'>
<head>
<meta charset='UTF-8' />
<meta name='viewport' content='width=device-width, initial-scale=1.0' />
<title>Account Deactivation In Two Days</title>
</head>
<style>
@import
url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");
* { box-sizing: border-box; margin: 0; padding: 0; font-family: Inter; } body { min-height: 100svh; } header {
display: flex; width: 100%; height: 7.625rem; justify-content: center; align-items: center; background: rgba(225,
214, 214, 0.4); } h2 { color: #121a26; font-feature-settings: "liga" off, "clig" off; font-size: 1.5rem;
font-weight: 600; } .template-main { display: flex; padding: 3.5rem; flex-direction: column; align-items: center;
gap: 3.5rem; max-width: 790px; margin: 0 auto; } .heading { display: flex; flex-direction: column; justify-content:
center; align-items: center; gap: 0.75rem; } .content { display: flex; flex-direction: column; gap: 2rem; }
.template-header { color: var(--Neutral-Colors-Dark-2, #0a0a0a); text-align: center; font-size: 1.5rem; font-weight:
600; } .template-subheader { color: rgba(0, 0, 0, 0.8); text-align: center; font-size: 1.125rem; font-weight: 500; }
.template-receiver-name { color: #111; font-size: 1.125rem; font-weight: 600; } .template-welcome-message { color:
rgba(17, 17, 17, 0.9); font-weight: 400; } .editable-content-title { color: var(--Neutral-Colors-Dark-2, #0a0a0a);
font-weight: 600; } .editable-content { display: flex; flex-direction: column; gap: 1.75rem; }
.editable-content-list { display: flex; flex-direction: column; gap: 1.25rem; } .content-body { display: flex;
flex-direction: column; gap: 1.75rem; } .editable-content-list p { opacity: 0.9; color: var(--Neutral-Colors-Dark-2,
rgba(17, 17, 17, 0.9)); font-weight: 400; } .editable-content span { color: var(--Neutral-Colors-Dark-2, #0a0a0a);
font-weight: 600; } .template-btn { display: flex; height: 2.75rem; padding: 0.5rem 2.5rem; justify-content: center;
align-items: center; gap: 0.625rem; border: none; color: White; border-radius: 0.5rem; align-self: center;
background: var(--Primary-Color-Primary-Full-500, #f97316); } .template-farewell p { color: #111; font-size:
0.875rem; text-align: left; font-weight: 500; margin-bottom: 0.5rem; } footer { background: #f3efef; display: flex;
width: 100%; padding: 2rem 0; justify-content: center; } .footer-container { max-width: 790px; width: 100%; padding:
0 3rem; } footer .heading { display: flex; flex-direction: row; align-items: center; gap: 2.0625rem; margin-bottom:
1rem; } footer .content { display: flex; flex-direction: column; gap: 1.875rem; color: #5b5b5d; font-size: 0.875rem;
font-weight: 400; } footer .content > span { margin-block-start: 1.3em; } footer .contact-support { color: #111;
font-size: 0.875rem; font-weight: 600; text-decoration: underline; } footer hr { border-style: dashed; width: 100%;
border-color: #969696; }
</style>
<body>
<!-- Header -->
<header class='header'>
<h2>
<svg width='19' height='19' viewBox='0 0 19 19' fill='none' xmlns='http://www.w3.org/2000/svg'>
<circle cx='4.5' cy='4.5' r='4' fill='#F97316' />
<circle cx='14.5' cy='4.5' r='4' fill='#F97316' />
<circle cx='4.5' cy='14.5' r='4' fill='#F97316' />
<circle cx='14.5' cy='14.5' r='4' fill='#F97316' />
</svg>
<span>Boilerplate</span>
</h2>
</header>

{{#> body}}
<!-- Main Content -->
<div class='template-main'>
<div class='heading'>
Expand Down Expand Up @@ -136,83 +90,4 @@
</div>
</div>

<!-- Footer -->
<footer>
<div class='footer-container'>
<div class='heading'>
<svg width='25' height='24' viewBox='0 0 25 24' fill='none' xmlns='http://www.w3.org/2000/svg'>
<path
d='M18.8263 1.90393H22.1998L14.8297 10.3274L23.5 21.7899H16.7112L11.394 14.838L5.30995 21.7899H1.93443L9.81743 12.78L1.5 1.90393H8.46111L13.2674 8.25826L18.8263 1.90393ZM17.6423 19.7707H19.5116L7.44539 3.81706H5.43946L17.6423 19.7707Z'
fill='#5B5B5D'
/>
</svg>
<svg xmlns='http://www.w3.org/2000/svg' width='25' height='24' viewBox='0 0 25 24' fill='none'>
<g clip-path='url(#clip0_23775_3072)'>
<path
d='M12.5 2.16094C15.7063 2.16094 16.0859 2.175 17.3469 2.23125C18.5188 2.28281 19.1516 2.47969 19.5734 2.64375C20.1313 2.85938 20.5344 3.12188 20.9516 3.53906C21.3734 3.96094 21.6313 4.35938 21.8469 4.91719C22.0109 5.33906 22.2078 5.97656 22.2594 7.14375C22.3156 8.40937 22.3297 8.78906 22.3297 11.9906C22.3297 15.1969 22.3156 15.5766 22.2594 16.8375C22.2078 18.0094 22.0109 18.6422 21.8469 19.0641C21.6313 19.6219 21.3687 20.025 20.9516 20.4422C20.5297 20.8641 20.1313 21.1219 19.5734 21.3375C19.1516 21.5016 18.5141 21.6984 17.3469 21.75C16.0813 21.8062 15.7016 21.8203 12.5 21.8203C9.29375 21.8203 8.91406 21.8062 7.65313 21.75C6.48125 21.6984 5.84844 21.5016 5.42656 21.3375C4.86875 21.1219 4.46563 20.8594 4.04844 20.4422C3.62656 20.0203 3.36875 19.6219 3.15313 19.0641C2.98906 18.6422 2.79219 18.0047 2.74063 16.8375C2.68438 15.5719 2.67031 15.1922 2.67031 11.9906C2.67031 8.78438 2.68438 8.40469 2.74063 7.14375C2.79219 5.97187 2.98906 5.33906 3.15313 4.91719C3.36875 4.35938 3.63125 3.95625 4.04844 3.53906C4.47031 3.11719 4.86875 2.85938 5.42656 2.64375C5.84844 2.47969 6.48594 2.28281 7.65313 2.23125C8.91406 2.175 9.29375 2.16094 12.5 2.16094ZM12.5 0C9.24219 0 8.83438 0.0140625 7.55469 0.0703125C6.27969 0.126563 5.40313 0.332812 4.64375 0.628125C3.85156 0.9375 3.18125 1.34531 2.51563 2.01562C1.84531 2.68125 1.4375 3.35156 1.12813 4.13906C0.832812 4.90313 0.626563 5.775 0.570313 7.05C0.514063 8.33437 0.5 8.74219 0.5 12C0.5 15.2578 0.514063 15.6656 0.570313 16.9453C0.626563 18.2203 0.832812 19.0969 1.12813 19.8563C1.4375 20.6484 1.84531 21.3188 2.51563 21.9844C3.18125 22.65 3.85156 23.0625 4.63906 23.3672C5.40313 23.6625 6.275 23.8687 7.55 23.925C8.82969 23.9812 9.2375 23.9953 12.4953 23.9953C15.7531 23.9953 16.1609 23.9812 17.4406 23.925C18.7156 23.8687 19.5922 23.6625 20.3516 23.3672C21.1391 23.0625 21.8094 22.65 22.475 21.9844C23.1406 21.3188 23.5531 20.6484 23.8578 19.8609C24.1531 19.0969 24.3594 18.225 24.4156 16.95C24.4719 15.6703 24.4859 15.2625 24.4859 12.0047C24.4859 8.74688 24.4719 8.33906 24.4156 7.05938C24.3594 5.78438 24.1531 4.90781 23.8578 4.14844C23.5625 3.35156 23.1547 2.68125 22.4844 2.01562C21.8188 1.35 21.1484 0.9375 20.3609 0.632812C19.5969 0.3375 18.725 0.13125 17.45 0.075C16.1656 0.0140625 15.7578 0 12.5 0Z'
fill='#5B5B5D'
/>
<path
d='M12.5 5.83594C9.09688 5.83594 6.33594 8.59688 6.33594 12C6.33594 15.4031 9.09688 18.1641 12.5 18.1641C15.9031 18.1641 18.6641 15.4031 18.6641 12C18.6641 8.59688 15.9031 5.83594 12.5 5.83594ZM12.5 15.9984C10.2922 15.9984 8.50156 14.2078 8.50156 12C8.50156 9.79219 10.2922 8.00156 12.5 8.00156C14.7078 8.00156 16.4984 9.79219 16.4984 12C16.4984 14.2078 14.7078 15.9984 12.5 15.9984Z'
fill='#5B5B5D'
/>
<path
d='M20.3469 5.59214C20.3469 6.38902 19.7 7.0312 18.9078 7.0312C18.1109 7.0312 17.4688 6.38433 17.4688 5.59214C17.4688 4.79526 18.1156 4.15308 18.9078 4.15308C19.7 4.15308 20.3469 4.79995 20.3469 5.59214Z'
fill='#5B5B5D'
/>
</g>
<defs>
<clipPath id='clip0_23775_3072'>
<rect width='24' height='24' fill='white' transform='translate(0.5)' />
</clipPath>
</defs>
</svg>
<svg width='25' height='24' viewBox='0 0 25 24' fill='none' xmlns='http://www.w3.org/2000/svg'>
<path
d='M17.5725 0H13.5278V16.3478C13.5278 18.2957 11.9722 19.8957 10.0363 19.8957C8.10034 19.8957 6.54469 18.2957 6.54469 16.3478C6.54469 14.4348 8.06577 12.8695 9.93257 12.8V8.69567C5.81872 8.7652 2.5 12.1391 2.5 16.3478C2.5 20.5913 5.88786 24 10.0708 24C14.2538 24 17.6416 20.5565 17.6416 16.3478V7.9652C19.1627 9.07827 21.0295 9.73913 23 9.77393V5.66957C19.9579 5.56522 17.5725 3.06087 17.5725 0Z'
fill='#5B5B5D'
/>
</svg>
<svg xmlns='http://www.w3.org/2000/svg' width='25' height='24' viewBox='0 0 25 24' fill='none'>
<path
d='M14.9414 5.65873C15.1495 6.54092 15.9417 7.19811 16.8877 7.19811C17.992 7.19811 18.8873 6.30279 18.8873 5.19842C18.8873 4.09404 17.992 3.19873 16.8877 3.19873C15.922 3.19873 15.1167 3.88311 14.9292 4.79342C13.312 4.96686 12.0492 6.33842 12.0492 8.00061C12.0492 8.00436 12.0492 8.00717 12.0492 8.01092C10.2905 8.08498 8.68453 8.58561 7.40953 9.37592C6.93609 9.00936 6.34172 8.79092 5.69672 8.79092C4.14891 8.79092 2.89453 10.0453 2.89453 11.5931C2.89453 12.7162 3.55453 13.6837 4.50797 14.1309C4.60078 17.384 8.14547 20.0006 12.5058 20.0006C16.8661 20.0006 20.4155 17.3812 20.5036 14.1253C21.4495 13.6753 22.1039 12.7106 22.1039 11.594C22.1039 10.0462 20.8495 8.79186 19.3017 8.79186C18.6595 8.79186 18.068 9.00842 17.5955 9.37217C16.3092 8.57623 14.6855 8.07561 12.9089 8.00904C12.9089 8.00623 12.9089 8.00436 12.9089 8.00154C12.9089 6.81092 13.7939 5.82279 14.9414 5.66061V5.65873ZM7.29703 13.3715C7.34391 12.3553 8.01891 11.5753 8.80359 11.5753C9.58828 11.5753 10.1883 12.3994 10.1414 13.4156C10.0945 14.4319 9.50859 14.8012 8.72297 14.8012C7.93734 14.8012 7.25016 14.3878 7.29703 13.3715ZM16.2089 11.5753C16.9945 11.5753 17.6695 12.3553 17.7155 13.3715C17.7623 14.3878 17.0742 14.8012 16.2895 14.8012C15.5048 14.8012 14.918 14.4328 14.8711 13.4156C14.8242 12.3994 15.4233 11.5753 16.2089 11.5753ZM15.2752 15.7228C15.4223 15.7378 15.5161 15.8906 15.4589 16.0275C14.9761 17.1815 13.8361 17.9925 12.5058 17.9925C11.1755 17.9925 10.0364 17.1815 9.55266 16.0275C9.49547 15.8906 9.58922 15.7378 9.73641 15.7228C10.5989 15.6356 11.5317 15.5878 12.5058 15.5878C13.4798 15.5878 14.4117 15.6356 15.2752 15.7228Z'
fill='#5B5B5D'
/>
</svg>

<svg xmlns='http://www.w3.org/2000/svg' width='25' height='24' viewBox='0 0 25 24' fill='none'>
<g clip-path='url(#clip0_23775_3080)'>
<path
d='M22.7234 0H2.27187C1.29219 0 0.5 0.773438 0.5 1.72969V22.2656C0.5 23.2219 1.29219 24 2.27187 24H22.7234C23.7031 24 24.5 23.2219 24.5 22.2703V1.72969C24.5 0.773438 23.7031 0 22.7234 0ZM7.62031 20.4516H4.05781V8.99531H7.62031V20.4516ZM5.83906 7.43438C4.69531 7.43438 3.77188 6.51094 3.77188 5.37187C3.77188 4.23281 4.69531 3.30937 5.83906 3.30937C6.97813 3.30937 7.90156 4.23281 7.90156 5.37187C7.90156 6.50625 6.97813 7.43438 5.83906 7.43438ZM20.9516 20.4516H17.3937V14.8828C17.3937 13.5562 17.3703 11.8453 15.5422 11.8453C13.6906 11.8453 13.4094 13.2937 13.4094 14.7891V20.4516H9.85625V8.99531H13.2687V10.5609H13.3156C13.7891 9.66094 14.9516 8.70938 16.6813 8.70938C20.2859 8.70938 20.9516 11.0813 20.9516 14.1656V20.4516Z'
fill='#5B5B5D'
/>
</g>
<defs>
<clipPath id='clip0_23775_3080'>
<rect width='24' height='24' fill='white' transform='translate(0.5)' />
</clipPath>
</defs>
</svg>
</div>
<div class='content'>
<span>
Thank you for choosing Boilerplate.com. Need help?
<a href='https://starlight-nestjs.teams.hng.tech/contact-us' class='contact-support'>Contact our customer
support</a>
</span>
<hr />
<p>
You are receiving this email because you signed up at Boilerplate.com. Want to change how you receive these
emails?
</p>
<p>
You can
<a href='#' style='color: #111; text-decoration: none'>update your preferences</a>
or
<a href='#' style='color: #111; text-decoration: none'>unsubscribe from this list</a>.
</p>
</div>
</div>
</footer>
</body>
</html>
{{/body}
Loading