-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
72 lines (67 loc) · 2.65 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>The Legend of Bauru ❤️</title>
<link rel="manifest" href="manifest.json" crossorigin="use-credentials" />
<link rel="icon" href="imgs/triforce.png">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Sniglet">
<link rel="stylesheet" href="css/app.css">
<script src="scripts/app.js" defer></script>
<script src="scripts/alpine.js" defer></script>
<!-- preload images -->
<link rel="preload" as="image" href="imgs/pattern.webp">
<link rel="preload" as="image" href="imgs/scene-1.png">
<link rel="preload" as="image" href="imgs/scene-2.png">
<link rel="preload" as="image" href="imgs/scene-3.png">
</head>
<body>
<main class="app" x-data="app" x-cloak>
<div class="screen">
<div class="scenes">
<template x-for="(scene, index) in scenes">
<div
class="scene"
:style="{ backgroundImage: `url(${scene})` }"
x-show="sceneIndex === index"
x-transition.opacity.duration.2000ms
></div>
</template>
</div>
<ul class="captions">
<template x-for="(caption, index) in captions">
<li
class="caption"
x-text="caption"
x-show="captionIndex === index"
x-transition.opacity.duration.2000ms
></li>
</template>
</ul>
</div>
<div class="modal" x-show="confirmModal.open" x-transition.opacity.duration.1000ms>
<div class="modal__content">
<p x-text="confirmModal.message"></p>
</div>
<div class="modal__footer">
<button
type="button"
class="modal__action"
x-show="confirmModal.okLabel"
x-text="confirmModal.okLabel"
@click="confirmModal.callback(true)"
></button>
<button
type="button"
class="modal__action"
x-show="confirmModal.cancelLabel"
x-text="confirmModal.cancelLabel"
@click="confirmModal.callback(false)"
></button>
</div>
</div>
</main>
</body>
</html>