-
Notifications
You must be signed in to change notification settings - Fork 1
/
become.html
82 lines (64 loc) · 1.12 KB
/
become.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Become</title>
<meta name="description" content="A poem">
<style>
:root {
--saffron: #ff7729;
}
body {
background-color: var(--saffron);
color: white;
font-family: system-ui, sans-serif;
line-height: 1.6;
margin: 0;
}
#poem-container {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
display: flex;
align-items: end;
background-image:
linear-gradient(to top right, var(--saffron) 20%, transparent);
div {
margin-inline: 2em;
margin-block: 2em;
}
}
canvas {
z-index: -1;
position: absolute;
left: 0;
bottom: 0;
width: 100%;
height: 100%;
}
</style>
<script type="module">
import { sketch } from "./js/sketch/become.ts";
sketch(document.getElementById("c"));
</script>
</head>
<body>
<canvas id="c"></canvas>
<div id="poem-container">
<div>
<p>
To all of you stuck<br>
In the words of dead poets<br>
Go find the living ones<br>
</p>
<p>
And if you can’t find them<br>
<b>Become</b>
</p>
</div>
</div>
</body>
</html>