-
Notifications
You must be signed in to change notification settings - Fork 44
/
createmail.js
168 lines (149 loc) · 5.57 KB
/
createmail.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
const createMail = (username, email) => {
return `
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='UTF-8'>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<meta http-equiv='X-UA-Compatible' content='ie=edge'>
<title>Welcome to IIITV Organization</title>
<!-- Stylesheet -->
<style type='text/css'>
* {
margin: 0px;
}
#root {
width: 100%;
}
body {
color: rgb(68, 68, 68);
-webkit-font-smoothing: antialiased;
text-shadow: rgba(0, 0, 0, .01) 0 0 1px;
transition: 0.1s linear;
font-family:
-apple-system,
system-ui,
BlinkMacSystemFont,
"Segoe UI",
Roboto,
"Helvetica Neue",
Arial,
sans-serif;
}
#header {
width: 100%;
}
#brand-logo {
width: 4.5rem;
height: 4.5rem;
}
#brand-logo-cont {
width: max-content;
margin: 0 auto;
}
h2,
p,
h3,
h4 {
text-align: center;
}
.divider {
width: 20%;
margin: 5px auto;
}
main,
footer {
width: 60%;
margin: 0 auto;
padding: 10px;
text-align: center;
}
#verify {
display: block;
padding: 10px 20px;
background-color: rgb(43, 150, 43);
border: 0px;
border-radius: 3px;
color: white;
font-weight: bold;
font-size: 17px;
margin: 20px auto;
/*box-shadow: 3px 3px 20px 0px grey;*/
width: max-content;
text-decoration: none;
}
#verify:hover {
box-shadow: 3px 3px 20px 2px grey;
cursor: pointer;
background-color: rgb(46, 196, 0);
}
#verify:active {
box-shadow: 3px 3px 20px 0px grey;
cursor: pointer;
background-color: rgb(18, 77, 0);
}
.social-link {
text-decoration: none;
font-size: 15px;
color: rgb(38, 102, 141);
}
.image {
margin-top: 10px;
width: 35px;
height: 35px;
border-radius: 5px;
}
.image:hover {
width: 40px;
height: 40px;
border-radius: 7px;
box-shadow: 3px 3px 20px 2px grey;
overflow: hidden;
}
.divide {
margin-left: -5px;
margin-right: -5px;
width: 15px;
height: 35px;
}
</style>
</head>
<body>
<div id='root'>
<div id='header'>
<div id='brand-logo-cont'>
<img id='brand-logo' src='http://github.com/iiitv.png' alt='IIITV Organization Logo'>
</div>
<h2>Welcome to IIITV Open Source<br>Organization</h2><br>
</div>
<hr class='divider' />
<main>
<h3>We're glad to have you with us, ${username}!</h3>
<br>
<p>Click on the (Verify e-mail) button below to verify your Identity,<br>and you are good to go!</p>
<a href='${email}' id='verify'>Verify e-mail</a>
<p>Join us on Discord on our <a href="https://discord.gg/DaP5GvB" target="_blank" rel="noopener noreferrer">DSC IIITV</a> and <a href="https://discord.gg/6bpEt2c" target="_blank" rel="noopener noreferrer">IIITCCC</a> servers.</p>
<p>With regards,<br>IIITV Open Source Organization</p>
</main>
<hr class='divider' />
<footer>
<h4>Find us on</h4>
<a target='_blank' class='social-link' href='https://www.facebook.com/iiitvcc/'>
<img src='https://user-images.githubusercontent.com/27884543/56142338-1efe8d80-5fbc-11e9-88de-0c9f31f050e0.png' class='image'>
</a>
<img src="https://img.icons8.com/ios/50/000000/thick-vertical-line-filled.png" class='divide'>
<a target='_blank' class='social-link' href='https://twitter.com/iiitvcc'>
<img src='https://user-images.githubusercontent.com/27884543/56142442-4e14ff00-5fbc-11e9-963b-34dc1560d9ab.png' class='image'>
</a>
<img src="https://img.icons8.com/ios/50/000000/thick-vertical-line-filled.png" class='divide'>
<a target='_blank' class='social-link' href='https://www.linkedin.com/company/iiitvcc/'>
<img src='https://user-images.githubusercontent.com/27884543/56142509-6b49cd80-5fbc-11e9-95dd-5427fece767a.png' class='image'>
</a>
<br><br>
<font size="0.5">If you have any questions, you can contact us at : <a href="mailto:[email protected]">[email protected]</a></font>
</footer>
</div>
</body>
</html> `
}
module.exports.createMail = createMail