-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
60 lines (54 loc) · 1.94 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
<!doctype html>
<html lang=fr>
<meta charset="utf-8">
<meta name="referrer" content="same-origin">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Photo de famille</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="p2f.css">
<script crossorigin="anonymous" src="./javascript/bouture.js"></script>
<script crossorigin="anonymous" src="./javascript/js-yaml.min.js"></script>
<script>
'use strict';
document.addEventListener('DOMContentLoaded', e => {
fetch('./config.yml')
.then(response => response.text())
.then(blob => {
const repos = jsyaml.safeLoad(blob).repos
const ul = Bouture.ul({ 'data-template': 'crews' })
const lis = repos.map(({ title, description, href }) => {
return Bouture.li.a({ title: title, href: href }, [Bouture.h3(title), Bouture.p(description)])
})
document.querySelector('#gh-crew-list').append(ul(lis).getElement())
})
}, { once: true })
</script>
<header class="container">
<h1>
<a href="">#
<span>Daktary</span>
</a>
</h1>
<div class="search-engine" style="display: none;">
<fieldset>
<input id="gh-search" placeholder="Recherche" type="text">
<input id="button-gh-search" value="Rechercher" type="submit">
</fieldset>
</div>
</header>
<div id="container">
<main>
<section class="home-intro">
<div class="home-intro-content container">
<h2>Carnet de notes des personnes inspirantes
<span>Rédiger et partager vos expèriences singulières</span>
</h2>
<div>
<a href="#">Découvrir</a>
</div>
</div>
</section>
<section id="gh-crew-list" class="container"></section>
</main>
</div>
</html>