-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
135 lines (123 loc) · 3.25 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link rel="stylesheet" href="dist/godfather.css" />
<link
href="https://fonts.googleapis.com/css?family=Poppins:400,700"
rel="stylesheet"
/>
<link
href="https://fonts.googleapis.com/css?family=Monoton"
rel="stylesheet"
/>
<title>Godfather</title>
<style>
*,
*:before,
*:after {
box-sizing: border-box;
}
html {
font: normal normal 400 19px/1.42 "Poppins";
}
body {
margin: 0;
min-height: 100vh;
padding: 3rem 1rem;
}
h1 {
font-family: Monoton;
font-weight: normal;
font-size: 3rem;
text-align: center;
margin: 0;
}
.content img {
width: 200px;
}
.content > div {
transition: background 0.2s ease-in;
}
.content > div:hover {
background: rgba(0, 0, 0, 0.02);
}
</style>
</head>
<body style="display: flex; flex-direction: column">
<div
style="
margin: 0 auto 2rem auto;
display: flex;
align-items: center;
justify-content: center;
"
>
<img
src="assets/icon.svg"
alt="Godfather"
style="width: 100px; margin-right: 1rem; opacity: 0.8"
/>
<div class="main">
<h1>Godfather</h1>
</div>
</div>
<div style="display: flex; flex-grow: 1" class="content">
<div
style="
display: flex;
justify-content: center;
align-items: center;
flex-grow: 1;
"
>
<div class="step-1">
<img src="assets/step-1.svg" alt="" />
</div>
</div>
<div
style="
display: flex;
justify-content: center;
align-items: center;
flex-grow: 1;
"
>
<div class="step-2" style="background: white; border-radius: 5px">
<img src="assets/step-2.svg" alt="" />
</div>
</div>
</div>
<script src="dist/godfather.js"></script>
<script>
let hints = {};
hints.main = Godfather.register("main", ".main", {
image: "assets/icon_negative.svg",
title: "Godfather",
content:
"A man who doesn't spend time with his customers can never be a real man.",
hint: true,
next: function () {
Godfather.show("step-1");
},
});
hints.step1 = Godfather.register("step-1", ".step-1", {
image: "assets/step-1_negative.svg",
content:
"“I'll make him an offer he can't refuse.”<br><span style=\"font-size: .75em\">Mario Puzo, The Godfather</span>",
next: "step-2",
hint: true,
});
hints.step2 = Godfather.register("step-2", ".step-2", {
image: "assets/step-2_negative.svg",
content:
'“Great men are not born great, they grow great . . .”<br><span style="font-size: .75em">Mario Puzo, The Godfather</span>',
hint: true,
overlay: true,
placement: "bottom",
});
</script>
</body>
</html>