-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
267 lines (231 loc) · 11 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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Nébulius</title>
<link rel="icon" type="image/png" href="images/favicon.png" sizes="120x120" />
<link rel="stylesheet" href="css-compiled/nebulius.min.css">
<script defer src="https://use.fontawesome.com/releases/v5.0.0/js/all.js"></script>
</head>
<body class="homepage static-shooting-star">
<div class="body-background-container">
<header>
<h1><span>NEB</span>ULIUS</h1>
<p>Atteindre les étoiles… sans tuto.</p>
</header>
<nav>
<ul>
<li class="is-active">
<a href="/notes" data-target="#notes">Notes</a>
</li>
<li>
<a href="/sablet" data-target="#sablet">Sablet</a>
</li>
<li>
<a href="/babyrocket" data-target="#baby-rocket">Baby-Rocket</a>
</li>
</ul>
</nav>
<section id="notes">
<h2>Notes</h2>
<div class="columns is-clearfix">
<div class="column">
<h3>
<a href="#">Dernier article</a>
</h3>
<article>
<h4>
<a href="#">Notre galaxie est-elle en danger ?</a>
</h4>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat.
</p>
<aside>
<a class="button is-white"><span class="fas fa-moon"></span>Lire la suite…</a>
</aside>
</article>
</div>
<div class="column">
<h3>
<a href="#">
Tous les articles
<span class="fas fa-angle-double-right fa-xs"></span>
</a>
</h3>
<article>
<ul>
<li>
<a href="#" title="Comment avancer en s'appuyant sur rien ? Avec un texte trop long">
Comment avancer en s'appuyant sur rien ? Avec un texte trop long.
<div class="button is-white">
<span class="fas fa-moon"></span>
</div>
</a>
</li>
<li>
<a href="#" title="Qu'est-ce que… « quelque chose » ?">
Qu'est-ce que… « quelque chose » ?
<div class="button is-white">
<span class="fas fa-moon"></span>
</div>
</a>
</li>
<li>
<a href="#" title="Un peu de réalisme">
Un peu de réalisme
<div class="button is-white">
<span class="fas fa-moon"></span>
</div>
</a>
</li>
</ul>
</article>
</div>
</div>
</section>
<!--
Version avec transparence : https://i.zcraft.fr/9415511519153879.png
Version sans transparence : https://i.zcraft.fr/5868041519153676.png
-->
<section id="sablet">
<h2>Sablet</h2>
<article>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</p>
<aside>
<a class="button is-white">
<span class="fas fa-fighter-jet"></span>
En voir plus sur Sablet
</a>
</aside>
</article>
</section>
<!--
https://i.zcraft.fr/7841531519126192.jpeg
-->
<section id="baby-rocket">
<h2>Baby-Rocket</h2>
<article>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus a dolor dignissim,
vestibulum mi eget, gravida risus. Duis et volutpat justo. Mauris faucibus ipsum sed
mauris porta, dictum mollis nisl facilisis. Vestibulum ex risus, lobortis eu interdum
in, porta in turpis. Maecenas et odio volutpat, venenatis ipsum sit amet, euismod purus.
Mauris iaculis bibendum ultrices. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
In eget aliquam nunc. Morbi suscipit eleifend velit ac malesuada. Nunc vitae orci velit.
</p>
<aside>
<a class="button is-white">
<span class="fas fa-fighter-jet"></span>
En voir plus sur la Baby-Rocket
</a>
</aside>
</article>
</section>
<footer>
<div class="columns">
<div class="column is-6">
<ul>
<li>
<a href="#">Qui sommes-nous ?</a>
</li>
<li>
<a href="#">Nous contacter</a>
</li>
</ul>
</div>
<div class="column is-6">
<ul>
<li>
<a href="#">Twitter</a>
</li>
<li>
<a href="#">YouTube</a>
</li>
</ul>
</div>
</div>
<div class="is-clearfix"></div>
</footer>
</div>
<script type="text/javascript">
'use strict';
document.body.classList.remove('static-shooting-star');
window.addEventListener('load', function()
{
document.body.classList.remove('static-shooting-star');
function animate_shooting_star()
{
document.body.classList.add('animated-shooting-star');
setTimeout(function()
{
document.body.classList.remove('animated-shooting-star');
}, 1500);
setTimeout(animate_shooting_star, (Math.floor(Math.random() * (60 - 20)) + 20) * 1000);
}
setTimeout(animate_shooting_star, (Math.floor(Math.random() * (10 - 2)) + 2) * 1000);
});
function reset_focus()
{
var scrollTop = document.body.scrollTop;
var body = document.body;
var tmp = document.createElement('input');
tmp.style.opacity = 0;
body.appendChild(tmp);
tmp.focus();
body.removeChild(tmp);
body.scrollTop = scrollTop;
}
function hide_hidden_sections()
{
if (window.screen.width < 769) return;
var initially_hidden_sections = document.querySelectorAll('body > div > section:not(:first-of-type)');
for (var i = initially_hidden_sections.length - 1; i >= 0; i--)
{
initially_hidden_sections[i].style.display = 'none';
}
}
// If the DOM is already loaded, this is removed right here so the screen does not blinks.
// (Else there is no effect and the elements are removed when the load event is fired anyway.)
hide_hidden_sections();
window.addEventListener('load', function()
{
if (window.screen.width < 769) return;
document.body.classList.add('has-js');
hide_hidden_sections();
var navigation_list_items = document.querySelectorAll('body > div > nav > ul > li');
var navigation_links = document.querySelectorAll('body > div > nav > ul > li > a');
var sections = document.querySelectorAll('body > div > section');
for (var i = navigation_links.length - 1; i >= 0; i--)
{
navigation_links[i].addEventListener('click', function(e)
{
e.preventDefault();
var target = document.querySelector(e.target.dataset.target);
for (var i = sections.length - 1; i >= 0; i--)
{
sections[i].style.display = 'none';
}
for (var i = navigation_list_items.length - 1; i >= 0; i--)
{
navigation_list_items[i].classList.remove('is-active');
}
target.style.display = 'block';
e.target.parentNode.classList.add('is-active');
reset_focus();
});
}
});
</script>
</body>
</html>