-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #946 from hngprojects/dev
chore: Merge dev branch into staging branch
- Loading branch information
Showing
37 changed files
with
1,254 additions
and
306 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{% extends 'admin-base.html' %} | ||
|
||
{% block title %} | ||
Magic Link | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<div class="container" | ||
style=" | ||
width: 100%; | ||
max-width: 600px; | ||
margin: auto; | ||
padding: 20px; | ||
font-family: Arial, sans-serif; | ||
color: #333; | ||
"> | ||
<div class="header" | ||
style=" | ||
text-align: center; | ||
padding-bottom: 20px; | ||
"> | ||
<h2>Dear {{ full_name }},</h2> | ||
<p>Thank you for your inquiry! We're processing your request, and here's a copy of for your records:</p> | ||
</div> | ||
<div class="content" | ||
style=" | ||
margin-bottom: 20px; | ||
"> | ||
<h3>User Details</h3> | ||
<ul> | ||
<li><span class="highlight" | ||
style=" | ||
font-weight: bold; color: #333; | ||
"> | ||
Full Name:</span> {{ full_name }}</li> | ||
<li> | ||
<span class="highlight" | ||
style=" | ||
font-weight: bold; color: #333; | ||
"> | ||
Email:</span> {{ email }} | ||
</li> | ||
</ul> | ||
<h3>Message</h3> | ||
<p class="message" style="margin-top: 10px;"> | ||
{{ message }} | ||
</p> | ||
</div> | ||
</div> | ||
{% endblock %} | ||
|
42 changes: 42 additions & 0 deletions
42
api/core/dependencies/email/templates/profile_recovery_email.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{% extends 'base.html' %} | ||
|
||
{% block title %}Recovery Email Verification{% endblock %} | ||
{% block style %}<link rel="stylesheet" href="{{ url_for('email_static', path='css/email-verification.css') }}">{% endblock %} | ||
|
||
{% block content %} | ||
<div class="template-main"> | ||
<div class="heading"> | ||
<p class="template-header">Recovery Email Verification</p> | ||
</div> | ||
<div class="content"> | ||
<p class="template-receiver-name">Hi {{ first_name }} {{ last_name }},</p> | ||
<p class="template-message"> | ||
You have requested to change the recovery email on your profile. | ||
</p> | ||
<div class="editable-content"> | ||
<p> | ||
This link will expire 5 minutes from when this email was been sent. If | ||
you did not make this request, you can ignore this email. | ||
</p> | ||
<p>To change your recovery email, please click the button below:</p> | ||
<a href="{{ link }}"><button | ||
style=" | ||
display: inline-block; | ||
padding: 10px 200px; | ||
background-color: orangered; | ||
color: #fff; | ||
text-decoration: none; | ||
border-radius: 10px; | ||
">Change Recovery Email</button></a> | ||
<p> | ||
Or copy this link into your browser: | ||
{{ link }} | ||
</p> | ||
<div class="template-farewell"> | ||
<p>Regards,</p> | ||
<p>Boilerplate</p> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{% extends 'base.html' %} {% block title %}Welcome{% endblock %} {% block | ||
content %} | ||
<table role="presentation" width="100%" style="padding: 3.5rem"> | ||
<tr> | ||
<td> | ||
<div style="text-align: center; margin-bottom: 1.5rem"> | ||
<h1 style="font-size: 1.5rem; color: #0a0a0a; font-weight: 600"> | ||
Hello From The Boilerplate | ||
</h1> | ||
<p | ||
style=" | ||
font-size: 1.125rem; | ||
color: rgba(0, 0, 0, 0.8); | ||
font-weight: 500; | ||
" | ||
> | ||
Unsubscription Successful | ||
</p> | ||
</div> | ||
|
||
<div> | ||
<p style="color: #111; font-size: 1.125rem; font-weight: 600"> | ||
Hi Hope this find you well. | ||
</p> | ||
<p style="color: rgba(17, 17, 17, 0.9); font-weight: 400"> | ||
You have successfully Unsubscribed from our email newsletter. | ||
</p> | ||
<p style="color: rgba(17, 17, 17, 0.9); font-weight: 400"> | ||
This emai is a confirmation of that action. As you will not recieve | ||
any newsletter updates from us anymore. | ||
</p> | ||
</div> | ||
|
||
<!-- <div style="margin-top: 2rem;"> | ||
<p style="color: #111; font-size: 0.875rem; font-weight: 500;">Thank you for joining Boilerplate</p> | ||
</div> --> | ||
|
||
<div style="margin-top: 2rem"> | ||
<p>Regards,</p> | ||
<p>Boilerplate</p> | ||
</div> | ||
</td> | ||
</tr> | ||
</table> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
{% extends 'base.html' %} | ||
|
||
{% block title %}Welcome{% endblock %} | ||
|
||
{% block content %} | ||
<table role="presentation" width="100%" style="padding: 3.5rem;"> | ||
<tr> | ||
<td> | ||
<div style="text-align: center; margin-bottom: 1.5rem;"> | ||
<h1 style="font-size: 1.5rem; color: #0A0A0A; font-weight: 600;">Welcome to Boilerplate Waitlist</h1> | ||
<p style="font-size: 1.125rem; color: rgba(0, 0, 0, 0.8); font-weight: 500;">Thanks for signing up</p> | ||
</div> | ||
|
||
<div> | ||
<p style="color: #111; font-size: 1.125rem; font-weight: 600;">Hi {{name}}</p> | ||
<p style="color: rgba(17, 17, 17, 0.9); font-weight: 400;">We're thrilled to have you join our waitlist. Experience quality and innovation | ||
like never before. Our product is made to fit your needs and make your | ||
life easier.</p> | ||
</div> | ||
|
||
<div style="margin-bottom: 1.75rem;"> | ||
<h3 style="color: #0A0A0A; font-weight: 600;">Here's what you can look forward to.</h3> | ||
<div style="margin-bottom: 1.25rem;"> | ||
<ul> | ||
<li> | ||
<span style="font-weight: 600;">Exclusive Offers:</span> Enjoy special promotions and | ||
discounts available only to our members. | ||
</li> | ||
<li> | ||
<span style="font-weight: 600;">Exclusive Offers:</span> Enjoy special promotions and | ||
discounts available only to our members. | ||
</li> | ||
<li> | ||
<span style="font-weight: 600;">Exclusive Offers:</span> Enjoy special promotions and | ||
discounts available only to our members. | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
|
||
<a href="{{cta_link}}" style="display: block; width: fit-content; padding: 0.5rem 2.5rem; background-color: #F97316; color: white; text-decoration: none; border-radius: 0.5rem; margin: 0 auto; text-align: center;"> | ||
Learn more about us | ||
</a> | ||
|
||
<!-- <div style="margin-top: 2rem;"> | ||
<p style="color: #111; font-size: 0.875rem; font-weight: 500;">Thank you for joining Boilerplate</p> | ||
</div> --> | ||
|
||
<div style="margin-top: 2rem;"> | ||
<p>Regards,</p> | ||
<p>Boilerplate</p> | ||
</div> | ||
</td> | ||
</tr> | ||
</table> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from sqlalchemy import Column, String, Text | ||
from api.v1.models.base_model import BaseTableModel | ||
|
||
|
||
class FAQInquiries(BaseTableModel): | ||
__tablename__ = "faq_inquiries" | ||
|
||
email = Column(String, nullable=False) | ||
full_name = Column(String, nullable=False) | ||
message = Column(Text, nullable=False) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.