-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathexample-template.html
178 lines (157 loc) · 4.81 KB
/
example-template.html
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
169
170
171
172
173
174
175
176
177
178
<!DOCTYPE html>
<html>
<head>
<title>
Newsletter
</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
header {
/* Displays background to put logo over. */
background-color: #c0c0c0;
background-repeat: no-repeat;
background-size: cover;
background-position: center;
color: white;
}
header img {
/* Adds a bit of padding to the header logo. */
padding-top: 20px;
padding-bottom: 20px;
}
footer {
/* Gives solid background for footer info. */
background-color: #333333;
}
.copyright {
/* Different style for copyright text in footer. */
color: white;
font-size: small;
text-align: center;
font-style: italic;
}
.centred {
/* Centres contents within itself. */
display: block;
text-align: center;
}
.centred a {
/* Allows icons to stay inline. */
display: inline-block;
}
.social {
/* Spaces out and sizes social links in the footer. */
margin: 40px 10px 10px;
width: 32px;
color: white;
}
h1, h2, h3, h4, p, ul, ol {
/* Rules that apply to all text */
font-family: sans-serif;
display: block;
max-width: 600px;
margin-left: auto;
margin-right: auto;
line-height: 150%;
}
/* 0 is the CSS. */
h1 {
/* The big centred title at the top of the newsletter. */
text-align: center;
font-size: xx-large;
font-family: 'Cabin', sans-serif;
font-weight: bold;
}
h4 {
/* Subtitle at top of newsletter. Basically just bold <p>. */
text-align: center;
font-size: medium;
font-family: 'Helvetica', sans-serif;
font-weight: bold;
color: #949494;
}
h2 {
/* Major section title. Same as title but left aligned.*/
text-align: left;
font-size: xx-large;
font-family: 'Cabin', sans-serif;
font-weight: normal;
}
h3 {
/* Individual item title. Smaller, grey and italic. */
text-align: left;
color: #949494;
font-style: italic;
}
p, li {
/* General email text. Slightly grey with a nice sans-serif font. */
font-family: 'Helvetica', sans-serif;
color: #757575;
}
img {
/* Images width matches the rest of the email */
display: block;
max-width: 600px;
margin-left: auto;
margin-right: auto;
}
a {
/* Inline hyperlinks in other text. Green and underlined. */
color: #0645ad;
text-decoration: none;
}
a:hover {
/* Hover for hyperlinks. */
text-decoration: underline;
}
.button {
/* Grey button for more prominent hyperlinks */
color: white;
text-decoration: none;
font-size: large;
font-weight: bold;
font-family: 'Cabin', sans-serif;
background-color: #c0c0c0;
border-color: #c0c0c0;
padding: 16px 32px;
border-radius: 5px;
cursor: pointer;
margin: 0 auto;
display: inline-block;
box-shadow: 3px 3px 3px #949494;
}
.button:hover {
/* Darken button on hover. */
background-color: #808080;
text-decoration: none;
}
.button:active {
/* Gives pressed down effect when button clicked. */
box-shadow: none;
position: relative;
top: 1px;
}
</style>
</head>
<body>
<header>
<!-- Header with logo over a blurred photo. -->
<img src="https://i.imgur.com/jFemebI.png" alt="Example Logo" height="200">
</header>
<!-- Body content is inserted here. -->
<!--REPLACED_WITH_CONTENT-->
<br><br>
<footer>
<!-- Footer with links to socials and copyright. -->
<div class="centred">
<a href="https://github.com/HackSocNotts/markdown-newsletter"><img class="social" src="https://cdn-images.mailchimp.com/icons/social-block-v2/outline-light-github-48.png" alt="GitHub"></img></a>
</div>
<p class="copyright">
Copyright © 20XX Example Ltd., All rights reserved.
</p>
<br>
<br>
</footer>
</body>
</html>