-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.html
81 lines (72 loc) · 1.78 KB
/
template.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
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Mystery+Quest&family=Sour+Gummy:ital,wght@0,100..900;1,100..900&display=swap"
rel="stylesheet"
/>
<title>{{ title }}</title>
</head>
<body>
<style>
html {
background-color: white;
}
body {
display: flex;
justify-content: center;
align-items: center;
gap: 20px;
width: 100vw;
height: 100vh;
max-width: 1000px;
margin: 0 auto;
padding: 20px;
}
img {
width: 323px;
height: 558px;
border: 4px solid black;
}
.text-container {
display: flex;
flex-direction: column;
padding: 0 20px;
}
h1 {
font-family: "Mystery Quest", system-ui;
font-size: 50px;
}
p {
height: 350px;
overflow-y: scroll;
font-family: "Sour Gummy", sans-serif;
font-size: 16px;
padding: 0 20px;
}
.image-and-audio-container {
display: flex;
flex-direction: column;
gap: 20px;
}
audio {
width: 100%;
}
</style>
<div class="image-and-audio-container">
<img src="cover.png" />
<audio controls>
<source src="story.mp3" type="audio/mpeg" />
Votre navigateur ne supporte pas l'élément audio.
</audio>
</div>
<div class="text-container">
<h1>{{ title }}</h1>
<p>{{ text }}</p>
</div>
</body>
</html>