forked from BolajiOlajide/a_socials
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature(email): Design User Invite Email template
This change addresses the need by: 1. Create html email template 2. Implement functionality to send email invite notification to users in the same category when a new event under the category is created. Delivers #161750658
- Loading branch information
Showing
4 changed files
with
281 additions
and
35 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
175 changes: 175 additions & 0 deletions
175
server/graphql_schemas/templates/event_email_invite.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,175 @@ | ||
<html> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
<meta name="viewport" content="width=device-width" /> | ||
<title> Andela Socials </title> | ||
<style type="text/css"> | ||
table { | ||
padding: 0; | ||
margin: 0; | ||
width: 100%; | ||
} | ||
|
||
table tr { | ||
width: 100%; | ||
margin-bottom: 10px; | ||
} | ||
|
||
td { | ||
width: 100%; | ||
padding: 5px 60px; | ||
} | ||
|
||
.email-template__container { | ||
position: relative; | ||
width: 765px; | ||
min-height: 100vh; | ||
border: 2px solid #000; | ||
} | ||
|
||
.email-template__header { | ||
margin: 0; | ||
width: 100%; | ||
height: 15%; | ||
border: none; | ||
padding: 20px; | ||
} | ||
|
||
img { | ||
background-color: #0000FF; | ||
height: 100%; | ||
} | ||
|
||
table.email-template__body { | ||
margin: 0; | ||
padding: 25px 50px; | ||
width: 100%; | ||
border: none; | ||
border-top: 1px solid #000; | ||
text-align: center; | ||
} | ||
|
||
a.email-template__body__btn { | ||
padding: 15px 40px; | ||
max-height: 52px; | ||
color: #FFF; | ||
background-color: #3359DB; | ||
text-decoration: none; | ||
margin-top: 30px; | ||
} | ||
|
||
p.email-template__body__text { | ||
font-size: 22px; | ||
font-weight: 300; | ||
margin-bottom: 10px; | ||
color: #000; | ||
} | ||
|
||
.email-template__body__text.bold-text { | ||
font-weight: bold; | ||
} | ||
|
||
table.email-template__footer { | ||
position: absolute; | ||
bottom: 0; | ||
height: 15%; | ||
width: 100%; | ||
margin: 0; | ||
padding: 10px 50px; | ||
background-color: #F1F9FF; | ||
border: none; | ||
border-top: 1px solid #000; | ||
text-align: center; | ||
|
||
} | ||
|
||
.email-template__footer td { | ||
width: 100%; | ||
padding: 5px 60px; | ||
} | ||
|
||
.email-template__footer__text { | ||
font-size: 14px; | ||
font-weight: 300; | ||
color: #000; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="email-template__container"> | ||
<div class="email-template__header"> | ||
<img | ||
src="http://res.cloudinary.com/dd3lv0o93/image/upload/v1531322847/Andela_Logo_3_jkv99w.png" | ||
alt="andela-logo" | ||
/> | ||
</div> | ||
<table class="email-template__body"> | ||
<tr> | ||
<td> | ||
<p class="email-template__body__text bold-text">Hi {{receiverName}}!</p> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<p class="email-template__body__text">You have received an invite from | ||
<span class="email-template__body__text bold-text">{{senderName}}</span> to attend the | ||
<span class="email-template__body__text bold-text">{{title}}</span> | ||
</p> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<p class="email-template__body__text bold-text">Date</p> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<p class="email-template__body__text">{{startDate}}</p> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<p class="email-template__body__text bold-text">Venue</> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<p class="email-template__body__text">{{venue}}</p> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td></td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<a | ||
type="button" | ||
class="email-template__body__btn" | ||
target="_blank" | ||
href="{{url}}" | ||
> | ||
RSVP Now | ||
</a> | ||
</td> | ||
</tr> | ||
</table> | ||
<table class="email-template__footer"> | ||
<tr> | ||
<td> | ||
<p class="email-template__footer__text">Have a question?</p> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<p class="email-template__footer__text">[email protected]</p> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<p class="email-template__footer__text">unsubscribe</p> | ||
</td> | ||
</tr> | ||
</table> | ||
</div> | ||
</body> | ||
</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