forked from fdnd-task/progressive-enhancement
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcarrousel.html
114 lines (96 loc) · 2.96 KB
/
carrousel.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
<!doctype html>
<html lang="nl">
<head>
<meta charset="utf-8">
<title>Carrousel / Progressive Enhancement / FDND</title>
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap" rel="stylesheet">
<link href="assets/styles.css" rel="stylesheet">
<style>
section {
position: relative;
}
section .carrousel {
display: flex;
overflow: auto;
scroll-snap-type: x mandatory;
scrollbar-width: none;
}
article {
background-color: var(--yellow);
padding: 3em;
scroll-snap-align: center;
width: 80vw;
flex-basis: 80vw 0 0;
flex-shrink: 0;
}
blockquote {
font-size: 3em;
font-style: italic;
font-weight: bold;
}
article:nth-child(2n) {
background-color: var(--purple);
}
article:nth-child(3n + 1) {
background-color: var(--green);
}
.fdnd-nav {
position: absolute;
left: 1rem;
right: 1rem;
bottom: 1rem;
width: calc(100% - 2rem);
display: flex;
justify-content: space-between;
}
/* Hint: welk layout model is handig om content naast elkaar te zetten? */
</style>
<script type="module">
/* Schrijf hier eventueel je client-side JavaScript */
</script>
</head>
<body>
<h1>Carrousel</h1>
<section>
<div class="carrousel">
<article>
<blockquote>“Websites leren bouwen, én praktijkervaring opdoen?”</blockquote>
</article>
<article>
<blockquote>“FDND is de enige HBO-opleiding voor Frontend Development in Nederland, in twee jaar stomen wij jou klaar voor het werkveld”</blockquote>
</article>
<article>
<blockquote>“Websites leren bouwen, én praktijkervaring opdoen?”</blockquote>
</article>
<article>
<blockquote>“FDND is de enige HBO-opleiding voor Frontend Development in Nederland, in twee jaar stomen wij jou klaar voor het werkveld”</blockquote>
</article>
<article>
<blockquote>“Je werkt bij ons aan échte projecten voor échte opdrachtgevers”</blockquote>
</article>
<article>
<blockquote>“In het studiomodel werken studenten onder begeleiding van coaches en experts uit het vakgebied aan praktijkgerichte opdrachten”</blockquote>
</article>
<article>
<blockquote>“Bij FDND leer je websites bouwen en andere belangrijke skills die jij in de praktijk toe kan passen”</blockquote>
</article>
<article>
<blockquote>“Een Associate degree-opleiding is een tweejarige hbo-opleiding op niveau 5”</blockquote>
</article>
</div>
<div class="fdnd-nav">
<button class="fdnd-button" id="prev">Vorige</button>
<button class="fdnd-button" id="next">Volgende</button>
</div>
</section>
<!-- buttons -->
<details>
<!--
-->
<summary>Demo video</summary>
<video src="assets/carrousel.mp4" width="1298" height="469" controls muted loop>
<a href="assets/carrousel.mp4">assets/carrousel.mp4</a>
</video>
</details>
</body>
</html>