-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.html
104 lines (102 loc) · 2.77 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
<!doctype html>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Tiny humans</title>
<!-- Facebook Open Graph tags -->
<meta property="og:url" content="https://tinyhumans.vercel.app" />
<meta property="og:title" content="Tiny Humans: a paper civilization" />
<meta property="og:description" content="Tiny Humans is a little interactive sandbox for tiny people, tiny thoughts, and their tiny stories" />
<meta property="og:image" content="https://tinyhumans.vercel.app/scenes/cover.png" />
<!-- Twitter Card (large image card) tags -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:creator" content="@thesephist">
<meta name="twitter:title" content="Tiny Humans: a paper civilization">
<meta name="twitter:description" content="Tiny Humans is a little interactive sandbox for tiny people, tiny thoughts, and their tiny stories" />
<meta name="twitter:image" content="https://tinyhumans.vercel.app/scenes/cover.png" />
<style>
body {
margin: 0;
height: 100vh;
width: 100vw;
overflow: hidden;
background-size: cover;
background-image: url('/paper.jpg');
background-position: center center;
}
canvas {
position: absolute;
top: 0;
left: 0;
}
#shadows {
filter: blur(2px);
}
#app {
font-family: system-ui, sans-serif;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
pointer-events: none;
line-height: 1.4em;
font-size: 14px;
}
#app p {
margin: 0;
width: 24ch;
margin-bottom: 8px;
}
#app a:hover {
background: #000;
color: #fff;
}
#app a,
#app button {
color: inherit;
pointer-events: all;
}
#app .button {
font-family: system-ui, sans-serif;
color: rgba(0, 0, 0, .5);
display: block;
text-decoration: underline;
cursor: pointer;
background: transparent;
border: 0;
margin: auto;
padding: 0;
font-size: inherit;
line-height: inherit;
}
#app .button:hover {
color: inherit;
}
#app .button:hover::before {
content: '→ ';
}
#app .button:hover::after {
content: ' ←';
}
</style>
<canvas id="shadows" style="width:0;height:0"></canvas>
<canvas id="silhouettes" style="width:0;height:0"></canvas>
<div id="app">
<p>
<strong><a href="https://github.com/thesephist/tinyhumans">Tiny humans.</a></strong>
a tiny project by
<a href="https://thesephist.com" target="_blank">Linus</a>,
built with
<a href="https://oaklang.org/" target="_blank">Oak</a>.
</p>
<div class="buttons">
<button class="button clickMapButton">click map for tiny humans</button>
<button class="button randomizeButton">even more humans!</button>
<button class="button clearButton">extinction!</button>
<button class="button hideButton">hide this</button>
</div>
</div>
<script src="/bundle.js"></script>