-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnewport.html
More file actions
84 lines (73 loc) · 1.86 KB
/
newport.html
File metadata and controls
84 lines (73 loc) · 1.86 KB
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
<!DOCTYPE html>
<html lang="en-CA">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
padding: 0;
margin: 0;
background-color: #004646;
height: 100vh;
min-height: 1200px;
overflow: hidden;
}
.container {
height: 100vh;
display: flex;
flex-direction: column;
background-color: #004646;
.box-top {
background-color: mintcream;
flex-grow: 1;
max-height: 222px;
min-height: 222px;
display: flex;
justify-content: center;
align-items: center;
h1 {
color: #283939;
font-size: 112px;
font-family: 'Helvetica Neue',sans-serif;
letter-spacing: -7px;
margin: 0;
padding: 5% 0 0 0;
transform: translateX(-7px);
}
}
.gold-bar {
min-height: 24px;
background-image: linear-gradient(90deg, #F4E167, #EDA82D);
}
#background {
background-color: cyan;
.line {
width: 100%;
background-color: #004646;
}
}
}
</style>
<title></title>
</head>
<body>
<div class="container">
<div class="box-top">
<h1>Rob Kerr</h1>
</div>
<div class="gold-bar"></div>
<div id="background"></div>
</div>
<script>
const background = document.getElementById('background');
const magic = 14;
for (let i = 1; i <= magic; i = i + 0.25) {
const line = document.createElement('div');
line.className = 'line';
line.style.height = `${i}px`;
line.style.marginTop = `${magic - i}px`;
background.appendChild(line);
}
</script>
</body>
</html>