-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdao.html
291 lines (259 loc) · 7.03 KB
/
dao.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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>I Ching</title>
<link rel="stylesheet" href="styles.css" />
<style>
.about-page {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
padding: 2rem;
gap: 2rem;
color: #333;
}
.about-section {
max-width: 600px;
border-bottom: 2px solid #ddd;
padding-bottom: 1.5rem;
margin-bottom: 1.5rem;
}
.about-section h1,
.about-section h2,
.about-section h3,
.about-section strong {
color: #2a4970;
font-weight: bold;
margin-bottom: 1rem;
}
.about-section p {
color: #555;
line-height: 1.6;
font-size: 1rem;
}
.about-section ul {
list-style-type: disc;
color: #555;
padding-left: 20px;
text-align: left;
}
.about-section ul li {
margin-bottom: 0.5rem;
}
#page-container a {
color: #2a4970;
}
/*---frame---*/
#divider-top,
#divider-bottom {
height: 10px;
flex-grow: 1;
display: flex;
justify-content: center;
}
#top-frame,
#bottom-frame {
display: flex;
flex-direction: row;
justify-content: space-between;
width: 100%;
}
#bottom-frame {
transform: translateY(-150px);
}
#dao-decoration {
height: 70px;
width: 70px;
transform: translateY(100px);
}
#frameTopLeft,
#frameTopRight,
#frameBottomLeft,
#frameBottomRight {
height: 100px;
width: 100px;
}
/*--dao text--*/
#dao-title-container {
display: flex;
flex-direction: column;
}
#dao-title-english {
font-weight: 600;
font-size: x-large;
}
#output {
width: 100%;
border-radius: 0;
padding: 0;
width: 100%;
height: 400px;
background: linear-gradient(
to bottom,
rgb(248, 248, 248),
rgba(255, 228, 196, 1)
);
overflow: auto;
padding: 10px;
word-break: break-word;
white-space: normal;
display: block;
border-top: 2px solid #ddd;
padding-bottom: 1.5rem;
margin-bottom: 1.5rem;
}
#output::-webkit-scrollbar {
display: none;
}
/*---copyright box---*/
@media screen and (max-width: 600px) {
#divider-top,
#divider-bottom {
height: 10px;
flex-grow: 0;
width: 100%;
}
#dao-title-container {
width: 70px;
transform: translateY(30px);
}
#dao-title,
#dao-title-english {
font-weight: 600;
font-size: larger;
}
#output {
width: 100%;
border-radius: 0;
padding: 0;
}
#bottom-frame {
transform: translateY(-50px);
}
#dao-decoration {
height: 50px;
width: 50px;
transform: translateY(70px);
}
#copyright {
width: 250px;
}
#cr-box {
width: 70%;
display: flex;
flex-direction: column;
}
}
</style>
</head>
<body>
<nav>
<ul>
<span id="link-container">
<a href="./index.html" class="nav-item">Home</a>
<a href="./about.html" class="nav-item">About</a>
<a href="./dao.html" class="nav-item">The Dao</a>
<a href="./support.html" class="nav-item">Support</a>
<a href="./contact.html" class="nav-item">Contact</a>
<a href="./privacy.html" class="nav-item">Privacy Policy</a>
<a href="./donor.html" class="nav-item">Donor Policy</a>
</span>
</ul>
</nav>
<div id="page-container">
<div class="about-page">
<div id="top-frame">
<img
id="frameTopLeft"
src="./img/frameBottomLeft.png"
style="transform: scale(1, -1)"
/>
<div id="divider-top">
<div id="dao-title-container">
<h1 id="dao-title">道德經</h1>
<div id="dao-title-english">The Dao</div>
</div>
</div>
<img
id="frameTopRight"
src="./img/frameBottomLeft.png"
style="transform: scale(-1, -1)"
/>
</div>
<section class="about-section">
<div class="container" id="output">
<p id="dao-canvas"></p>
</div>
</section>
<div id="bottom-frame">
<img id="frameBottomLeft" src="./img/frameBottomLeft.png" />
<div id="divider-bottom">
<img id="dao-decoration" src="./img/decoration.png" />
</div>
<img
id="frameBottomRight"
src="./img/frameBottomLeft.png"
style="transform: scale(-1, 1)"
/>
</div>
</div>
</div>
<div id="copyright">
<ul id="cr-box">
<li style="color: #555">
© 2024 I Ching Oracle Project by Lawrence Aubert III. All rights
reserved.
</li>
<a
href="https://www.flaticon.com/free-icons/border-design"
title="border design icons"
target="_blank"
style="color: #2a4970; text-decoration: none"
onmouseover="this.style.textDecoration='underline';"
onmouseout="this.style.textDecoration='none';"
>Border design icons created by kornkun - Flaticon</a
>
<a
href="https://www.flaticon.com/free-icons/decoration"
title="decoration icons"
target="_blank"
style="color: #2a4970; text-decoration: none"
onmouseover="this.style.textDecoration='underline';"
onmouseout="this.style.textDecoration='none';"
>Decoration icons created by kosonicon - Flaticon</a
>
</ul>
</div>
<script>
const daoTitle = document.getElementById('dao-title')
const englishTitle = document.getElementById('dao-title-english')
function alternateColors(elementId) {
const text = elementId.innerText
elementId.innerHTML = ''
Array.from(text).forEach((char, index) => {
const span = document.createElement('span')
span.innerText = char
span.style.animation = `colorChange 2s infinite ${
index * 0.1
}s linear`
elementId.appendChild(span)
})
}
const style = document.createElement('style')
style.innerHTML = `
@keyframes colorChange {
0% { color: red; }
50% { color: blue; }
100% { color: red; }
}
`
document.head.appendChild(style)
alternateColors(daoTitle)
alternateColors(englishTitle)
</script>
<script src="dao.js"></script>
</body>
</html>