forked from vicalejuri/iching
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
185 lines (158 loc) · 5.05 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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8" />
<link rel="shortcut icon" type="image/png" href="img/iching.png" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>I Ching - The book of Changes</title>
<meta name="description" content="I Ching - The book of changes" />
<meta name="author" content="bbfc" />
<meta name="copyright" content="Open Source - MIT" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="theme-color" content="#ebecc9" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="mobile-web-app-capable" content="yes" />
<link rel="manifest" href="manifest.webmanifest" />
<!-- Social graph -->
<meta property="og:title" content="I Ching" />
<meta property="og:description" content="The book of changes" />
<meta
property="og:image"
content="https://raw.githubusercontent.com/vicalejuri/iching/master/extra/masthead-filled.png"
/>
<meta property="og:url" content="https://iching.netlify.com" />
<meta name="twitter:card" content="summary" />
<meta name="twitter:title" content="I Ching" />
<meta name="twitter:description" content="The book of changes" />
<meta
name="twitter:image"
content="https://raw.githubusercontent.com/vicalejuri/iching/master/extra/masthead-filled.png"
/>
<style>
* {
box-sizing: border-box;
}
::selection {
background: rgba(0, 0, 0, 0.9);
color: #fff;
}
body {
font-family: Colfax, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto,
Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue,
sans-serif;
font-weight: 100;
background: linear-gradient(180deg, #ebecc9 30%, #e9d0a0 70%);
color: #000;
box-sizing: border-box;
font-size: 1em;
font-weight: normal;
margin: 0;
text-rendering: optimizeLegibility;
/* Kerning */
-webkit-font-feature-settings: "kern";
font-feature-settings: "kern";
font-kerning: normal;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
/* Ligatures */
-webkit-font-variant-ligatures: common-ligatures;
font-variant-ligatures: common-ligatures;
/* Discretionary ligatures */
-moz-font-feature-settings: "dlig";
-ms-font-feature-settings: "dlig";
-webkit-font-feature-settings: "dlig";
font-feature-settings: "dlig";
/* Zero with slash */
font-feature-settings: "zero";
font-variant: slashed-zero;
}
a {
color: #ff4081;
}
a:active,
a:focus,
button:active,
button:focus {
outline: 0;
border: none;
outline-style: none;
}
#copyleft {
position: absolute;
bottom: 0px;
right: 0px;
padding: 10px;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}
/**
* Container
**/
/* Wrapper */
.app-wrap {
height: 100svh;
display: flex;
flex-direction: column;
background: #fff;
position: relative;
overflow: auto;
}
@media (min-width: 768px) {
.app-wrap {
width: 428px;
max-width: 428px;
min-height: 578px;
height: 850px;
margin: 5svh auto 5svh auto;
box-sizing: content-box;
border: 10px solid rgba(0, 0, 0, 0.9);
border-radius: 10px;
box-shadow: 1px 2px 2px hsl(var(--shadow-color) / 0.2),
2px 4px 4px hsl(var(--shadow-color) / 0.2),
4px 8px 8px hsl(var(--shadow-color) / 0.2),
8px 16px 16px hsl(var(--shadow-color) / 0.2),
16px 32px 32px hsl(var(--shadow-color) / 0.2);
}
}
/*
* Overall Layout
*/
.app-wrap > * {
flex: 1 1 auto;
}
/*
* Content
*/
.content {
/* position: absolute; */
/* overflow-x: hidden; */
/* Trick: https://css-tricks.com/snippets/css/momentum-scrolling-on-ios-overflow-elements/ */
/* overflow-y: overlay; */
/* -webkit-overflow-scrolling: touch; */
/* width: 100%; */
/* height: 100%; */
padding: 0px 0px;
background: #fff;
}
</style>
<script type="module" src="/src/assets/json/book.js"></script>
</head>
<body>
<div id="app-mount">
<div class="app-wrap">
<noscript style="padding: 0.5em">
<h1>❌ Javascript required</h1>
<p>
Please enable javascript and reload the page.
</p>
</noscript>
</div>
</div>
<div id="copyleft">
<a href="https://github.com/vitocal" target="_blank" rel="noopener"
>@vitocal</a
>
</div>
<script type="module" src="/src/main.jsx"></script>
</body>
</html>