initial commit

This commit is contained in:
dhax 2017-09-25 18:23:11 +02:00
commit 93d8310491
46 changed files with 3379 additions and 0 deletions

View file

@ -0,0 +1,12 @@
{{define "loginToken"}}
{{template "header"}}
<p>Hello {{.Name}},</p>
<p>Click here to login with this device</p>
<p><a href="{{.URL}}" class="btn-primary">Login Now</a></p>
<p>Or enter this token on login page from another device:</p>
<p>{{.Token}}</p>
<p>Link and token are valid one time only for next {{.Expiry | formatAsDuration}}.</p>
{{template "footer"}}
{{end}}

View file

@ -0,0 +1,11 @@
{{define "footer"}}
<div id="footer">
<hr>
<p>sent by GoBase</p>
</div>
</body>
</html>
{{end}}

View file

@ -0,0 +1,15 @@
{{define "header"}}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="viewport" content="width=device-width" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
{{template "styles"}}
</head>
<body itemscope itemtype="http://schema.org/EmailMessage">
{{end}}

View file

@ -0,0 +1,39 @@
{{define "styles"}}
<style type="text/css">
body {
background-color: #f6f6f6;
}
p {
font-family: 'Helvetica Neue', Verdana, sans-serif;
color: #107A94;
}
/* -------------------------------------
LINKS & BUTTONS
------------------------------------- */
a {
color: #348eda;
text-decoration: underline;
}
.btn-primary {
text-decoration: none;
color: #FFF;
background-color: #348eda;
border: solid #348eda;
border-width: 10px 20px;
line-height: 2em;
font-weight: bold;
text-align: center;
cursor: pointer;
display: inline-block;
border-radius: 5px;
text-transform: capitalize;
}
footer {
background-color: #8AB8CE;
}
</style>
{{end}}