Skip to content

Commit

Permalink
adjust email template for mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
vhcsilva committed Aug 16, 2024
1 parent f52a01a commit 6384b29
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,32 +9,34 @@
{{> styles}}
</head>
<body id="body">
<table id="container" cellspacing="0" cellpadding="0" border="0">
<tr>
<td>
{{> logo}}
<h1>{{notificationTitleHeading}}</h1>
<table id="action-card" cellspacing="0" cellpadding="0" border="0">
<tr>
<td>
<p>{{taskTitleParagraph}}</p>
<a id="action-button" href="{{actionHref}}">View task</a>
</td>
</tr>
</table>
<div id="notification-manage">Manage your BEPRO notifications</div>
<table id="links" cellspacing="0" cellpadding="0" border="0">
<tr>
<td>
<a href="https://app.bepro.network" class="link-item">App</a>
<a href="https://bepro.network" class="link-item">Website</a>
<a href="https://discord.gg/layerx" class="link-item">Discord</a>
<a href="https://twitter.com/bepronet" class="link-item">Twitter</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
<div class="main">
<table id="container" cellspacing="0" cellpadding="0" border="0">
<tr>
<td>
{{> logo}}
<h1>{{notificationTitleHeading}}</h1>
<table id="action-card" cellspacing="0" cellpadding="0" border="0">
<tr>
<td>
<p>{{taskTitleParagraph}}</p>
<a id="action-button" href="{{actionHref}}">View task</a>
</td>
</tr>
</table>
<div id="notification-manage">Manage your BEPRO notifications</div>
<table id="links" cellspacing="0" cellpadding="0" border="0">
<tr>
<td>
<a href="https://app.bepro.network" class="link-item">App</a>
<a href="https://bepro.network" class="link-item">Website</a>
<a href="https://discord.gg/layerx" class="link-item">Discord</a>
<a href="https://twitter.com/bepronet" class="link-item">Twitter</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -1,13 +1,29 @@
<style>
#body {
padding: 4.4375em 10.25em;
.main {
width: 100%;
background: #09090B;
font-family: 'Inter', sans-serif;
}
@media only screen and (min-width: 601px) {
#container {
padding: 4.4375em 10.25em;
}
}
@media only screen and (max-width: 600px) {
#container {
padding: 2em;
}
h1 {
font-size: 1rem;
}
}
#container {
width: 100%;
padding: 4.4375em 10.25em;
box-sizing: border-box;
font-family: 'Inter', sans-serif;
background-color: #09090B;
}
Expand Down Expand Up @@ -61,6 +77,7 @@
font-style: normal;
font-weight: 500;
line-height: 140%;
text-decoration: none;
}
#notification-manage {
Expand All @@ -71,13 +88,21 @@
line-height: 1.05em;
}
#notification-manage {
margin-top: 8px;
}
#links {
margin-top: 8px;
}
#links a {
color: rgba(255, 255, 255, 0.60);
font-size: 0.75em;
font-style: normal;
font-weight: 500;
line-height: 1.05em;
text-decoration: none;
text-decoration: underline;
margin: 0 1em;
}
Expand Down

0 comments on commit 6384b29

Please sign in to comment.