-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
index.html
executable file
·113 lines (111 loc) · 2.89 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
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>dgel</title>
<link
href="https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap"
rel="stylesheet"
/>
<style>
body {
margin: 0;
overscroll-behavior: none;
background-color: #000000;
font-family: "Space Mono", monospace;
color: #ffffff;
}
ul,
h1,
h2 {
margin: 0;
padding: 0;
}
h1 {
font-size: 30px;
margin-bottom: 20px;
}
h1 a {
color: #ffffff;
}
h2 {
font-size: 20px;
margin-bottom: 5px;
color: #ffffffdd;
}
a {
color: #ff8080;
color: #80ff80;
color: #7f80ff;
}
aside {
position: fixed;
top: 0;
right: 0;
min-height: 100vh;
padding: 10px 40px 10px 20px;
background-color: #1b1b1b;
transform: translate3d(90%, 0, 0);
transition: all 0.2s ease-in;
}
aside.active,
aside:hover {
transform: translate3d(0, 0, 0);
transition: all 0.2s ease-out;
}
ul {
display: flex;
flex-direction: column;
font-size: 14px;
list-style: none;
margin-bottom: 15px;
}
ul li {
display: flex;
position: relative;
}
ul li:before {
content: "∞";
padding-right: 10px;
}
.tp-dfwv {
left: 8px;
}
</style>
</head>
<body>
<aside>
<h1><a href="/">dgel</a></h1>
<h2>Examples</h2>
<ul>
<li><a href="?id=full-screen-triangle">Full Screen Triangle</a></li>
<li><a href="?id=cube">Cube</a></li>
<li><a href="?id=cube-auto">Cube Auto Layout</a></li>
<li><a href="?id=instancing">Instancing</a></li>
<li><a href="?id=material-phong">Material Phong</a></li>
<li><a href="?id=render-to-texture">Render To Texture</a></li>
</ul>
<h2>Sources</h2>
<ul>
<li>
<a href="https://github.com/dmnsgn/dgel" target="_blank">GitHub</a>
</li>
<li><a href="https://dmnsgn.medium.com/" target="_blank">Medium</a></li>
</ul>
</aside>
<script async src="web_modules/es-module-shims.js" type="module"></script>
<script src="web_modules/import-map.json" type="importmap-shim"></script>
<script type="module-shim">
(async () => {
const params = new URLSearchParams(window.location.search);
const id = params.get("id");
if (id) {
await importShim(`./examples/${id}.js`);
} else {
document.querySelector("aside").classList.add("active");
}
})();
</script>
</body>
</html>