-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
273 lines (237 loc) · 6.38 KB
/
index.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
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Author : We Sort | Ben Edmonds | wesort.co.uk
https://github.com/wesort/simple-website -->
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="robots" content="INDEX, FOLLOW">
<!-- Icons
supplied or created using something like favicon.io -->
<link rel="icon" type="image/png" href="/favicon.png" />
<!-- Insert new icon tags here -->
<!--<link rel="stylesheet" href="/assets/styles.css" />
Move the below files into external sheets if that's your preference -->
<!-- CSS Reset -->
<style type="text/css">
/* by Andy Bell - https://dev.to/hankchizljaw/a-modern-css-reset-6p3 */
/* Box sizing rules */
*,
*::before,
*::after {
box-sizing: border-box;
}
/* Remove default padding */
ul[class],
ol[class] {
padding: 0;
}
/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
ul[class],
ol[class],
li,
figure,
figcaption,
blockquote,
dl,
dd {
margin: 0;
}
/* Set core body defaults */
body {
min-height: 100vh;
scroll-behavior: smooth;
text-rendering: optimizeSpeed;
line-height: 1.5;
}
/* Remove list styles on ul, ol elements with a class attribute */
ul[class],
ol[class] {
list-style: none;
}
/* A elements that don't have a class get default styles */
a:not([class]) {
text-decoration-skip-ink: auto;
}
/* Make images easier to work with */
img {
max-width: 100%;
display: block;
}
/* Natural flow and rhythm in articles by default */
article > * + * {
/*margin-top: 1em;*/
}
/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
font: inherit;
}
/* Remove all animations and transitions for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
* {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}
/* Further defaults by We Sort. */
u {
text-decoration: none;
border-bottom: 2px solid;
}
.ie-only {
font-size: 1rem;
color: red;
background: white;
}
</style>
<!-- Brand Styles -->
<style type="text/css">
/* Font */
@import url('https://fonts.googleapis.com/css?family=Work+Sans&display=swap');
body {
font-family: 'Work Sans', Verdana, sans-serif; /* Font */
background-color: #c6d3dc; /* Site background */
color: #283f52; /* Text colour */
font-size: 1.35rem; /* Text size */
padding: 1rem;
max-width: 52rem;
margin-left: auto;
margin-right: auto;
}
body * + * {
margin-top: 2rem; /* Adds consistent verical space between elements */
/* https://alistapart.com/article/axiomatic-css-and-lobotomized-owls/ */
}
.no-margin-top-within * {
margin-top: 0;
}
.mb-double {
margin-bottom: 2rem;
}
h1, h2, h3, h4, h5, p {
font-size: inherit; /* Uniform font size */
font-weight: inherit; /* Uniform font weight */
}
a {
color: #11578e; /* hyperlink colour */
text-decoration: none;
border-bottom: 2px solid; /* could set different line weight */
}
a:hover {
color: #a72a03; /* Different text colour on hover */
}
.type-small {
font-size: 0.8em;
}
.social-icons .icon {
display: inline-block;
width: 1em;
height: 1em;
margin-right: 1rem;
}
.social-icons .icon:last-child {
margin-right: 0;
}
/* fill colour set in each .svg file
OR, the svgs could be inlined and :hover styles can be added
.social-icon svg {
fill: #11578e;
}
*/
/* Responsive grid system with floats */
.grid-wrap {
margin-left: -2rem; /* -- Sets the baseline gutter -- */
overflow: hidden;
clear: both;
}
.grid-col {
padding-left: 2rem; /* -- Sets the baseline gutter -- */
float: left;
width: 100%;
}
/* BP2:Breakpoint 2 */
@media all and (min-width: 35em) {
body {
font-size: 2rem;
padding: 2rem;
}
.type-small {
font-size: 0.6em;
}
.bp2-col-1-2 {
width: 50%;
}
}
</style>
<!-- Search & social optimisation
create using something like megatags.co -->
<title>A Simple Site</title>
<meta name="description" content="The basic modern website. No build process. Minimal config. Host on Netlify, GitHub Pages or (probably) any server.">
<!-- Insert new tags here -->
</head>
<body>
<!--[if lte IE 8]><div class="ie-only">As you may be aware, your browser is out of date so your experience may be limited. <a href="https://browser-update.org/update.html" target="_blank">Here's how to update</a>. </div><![endif]-->
<div class="wrap">
<header>
<h1>A Simple site</h1>
</header>
<main>
<p>This site is an example of a <em>simple</em> website. It's open-sourced and available on <a href="https://github.com/wesort/simple-website/">github.com</a>.</p>
<p>This is another paragraph that fills in the page a bit more.</p>
<div class="grid-wrap no-margin-top-within"> <!-- grid system wrapper -->
<img class="grid-col bp2-col-1-2 mb-double" src="/assets/placeholder-01.svg" alt="placeholder icon"><!-- grid item with an image -->
<figure class="grid-col bp2-col-1-2"><!-- grid item with an image inside -->
<img alt="BBC test card F"
src="/assets/bbc-testcard-01_w1200.jpg"
srcset="
/assets/bbc-testcard-01_w380.jpg 380w,
/assets/bbc-testcard-01_w800.jpg 800w,
/assets/bbc-testcard-01_w1200.jpg 1200w"
sizes="
(min-width: 52em) 368px,
(min-width: 35em) 50vw,
100vw">
<figcaption class="type-small">Test Card F</figcaption>
</figure>
</div>
</main>
<footer>
<p><a href="mailto:[email protected]">[email protected]</a></p><!-- an email link -->
<p><a href="tel:+44">+44 1234 567 890</a></p><!-- a telephone link -->
<ul class="social-icons">
<li class="icon">
<a href="https://github.com/wesort">
<img src="/assets/icons/github.svg" alt="logo for GitHub">
</a>
</li>
<li class="icon">
<a href="https://twitter.com/we_sort">
<img src="/assets/icons/twitter.svg" alt="logo for Twitter">
</a>
</li>
</ul>
</footer>
</div>
<script>
// Make all external links open in new window
window.onload = function () {
for(var tagArray = document.getElementsByTagName("a"), index = 0;index < tagArray.length;index++) {
var b = tagArray[index];
b.getAttribute("href") && b.hostname !== location.hostname && (b.target = "_blank") && (b.rel = "noopener")
}
};
</script>
<!-- Google Analytics goes here -->
</body>
</html>