-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
index.html
155 lines (148 loc) · 3.16 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
---
---
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Looking for Godot?</title>
<meta name="description" content="" />
<meta name="robots" content="index,follow" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" href="https://godotengine.org/assets/favicon.png" sizes="any">
<link rel="icon" href="https://godotengine.org/assets/favicon.svg" type="image/svg+xml">
<style>
html {
background-image: url(/images/background.svg);
background-size: cover;
background-repeat: no-repeat;
height: 100%;
}
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
}
main {
max-width: 690px;
margin: 0 auto;
padding: 1em;
text-align: center;
background: #414042;
color: white;
height: 100%;
box-shadow: 0 0 50px -7px black;
margin-top: 40px;
border-radius: 15px;
border: 1px solid #5b5b5b;
}
header {
max-width: 450px;
margin: 0 auto;
}
header img {
max-width: 100px;
}
header h1 {
text-align: center;
font-size: 28px;
margin: 14px 0 40px;
}
header p {
font-size: 20px;
}
summary {
font-size: 1.8em;
margin: 1em 0;
transition: all 0.2s ease-in-out;
cursor: pointer;
border: 2px solid #7d7d7d;
max-width: 340px;
margin: 0 auto 30px;
padding: 7px;
border-radius: 10px;
position: relative;
}
summary:hover {
/* blue */
border-color: #00a8ff;
transform: scale(1.05);
}
summary .caret {
position: absolute;
top: 15px;
background-image: url(/images/caret.svg);
width: 20px;
height: 20px;
background-size: contain;
right: 10px;
}
summary .caret.close {
background-image: url(/images/close.svg);
}
details ul {
list-style: none;
padding: 0;
margin-top: -10px;
margin-bottom: 20px;
}
details ul li {
font-size: 1.5em;
margin: 16px 0px;
margin: 0.5em 0;
}
details ul li a {
text-decoration: none;
color: inherit;
transition: all 0.2s ease-in-out;
padding: 0 10px;
}
details ul li a:hover {
/* blue */
color: #00a8ff;
}
details > summary {
list-style: none;
}
details > summary::-webkit-details-marker {
display: none;
}
@media (max-width: 800px) {
main {
margin: 10px;
}
}
</style>
</head>
<body>
<main>
<header>
<img src="/images/logo.svg" alt="">
<div>
<h1>Looking for Godot?</h1>
</div>
</header>
<div>
{% for section in site.data.links %}
<details>
<summary>{{ section[0] }} <div class="caret"></div></summary>
<ul>
{% for link in section[1] %}
<li>
<a href="{{ link.url }}">{{ link.name }}</a>
</li>
{% endfor %}
</ul>
</details>
{% endfor %}
</div>
</main>
<script>
document.querySelectorAll('summary').forEach((summary) => {
summary.addEventListener('click', (e) => {
summary.querySelector('.caret').classList.toggle('close');
});
});
</script>
</body>
</html>