-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
115 lines (112 loc) · 2.94 KB
/
index.html
File metadata and controls
115 lines (112 loc) · 2.94 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
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://esm.sh/ol@10.3.1/ol.css">
<style>
@import url('https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');
</style>
<style>
html, body {
height: 100%;
font-family: "Space Mono", Consolas, monospace;
background: rgb(107 185 200);
--black: #335;
--white: #ddf;
color: var(--black);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
display: flex;
flex-direction: column;
gap: 10px;
padding: 15px 3vw;
align-items: center;
}
#map {
width: 100%;
max-width: 1000px;
aspect-ratio: 2;
border: 3px solid var(--white);
border-radius: 10px;
overflow: hidden;
}
#map.full {
border: none;
border-radius: 0;
}
v {
display: flex;
flex-direction: column;
}
h {
display: flex;
flex-direction: row;
}
[fill] {
width: 100%;
height: 100%;
}
[gap-10] {
gap: 10px;
}
[gap-20] {
gap: 20px;
}
h1 {
width: 100%;
margin-bottom: -5px;
line-height: 1;
}
.ol-control button {
background: var(--white);
color: var(--black);
}
tweak {
flex-grow: 1;
display: flex;
flex-direction: column;
gap: 10px;
width: 100%;
max-width: 1000px;
}
input[type="number"] {
width: 7ch;
appearance: none;
background: none;
border: none;
font: inherit;
color: inherit;
}
input[type="number"]:focus {
outline: none;
}
</style>
<link rel="stylesheet" href="static/range.css">
</head>
<body>
<h gap-20 style="
width: 100%;
align-items: baseline;
">
<h1><i>Planet Generator W</i></h1>
<a href="https://github.com/gnlow/planet-generator-w" target="_blank" rel="noopener noreferrer">
<img src="static/github.svg" height="24px">
</a>
</h>
<div id="map"></div>
<tweak></tweak>
<footer>
Ported by Gnlow<br/>
Based on
<a href="http://hjemmesider.diku.dk/~torbenm/Planet/" target="_blank" rel="noopener noreferrer" style="color: var(--black);"><b><i>Planet Generator</i></b></a>
by Torben Mogensen
</footer>
<script type="module" src="./index.ts"></script>
</body>
</html>