-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
410 lines (396 loc) · 13.6 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
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
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
<!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" />
<title>KaQ</title>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css"
integrity="sha512-z3gLpd7yknf1YoNbCzqRKc4qyor8gaKU1qmn+CShxbuBusANI9QpRohGBreCFkKxLhei6S9CQXFEbbKuqLg0DA=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
<link rel="stylesheet" href="styles.css" />
</head>
<!-- created by replyr, follow and say 👋🏻 on Github/replyre -->
<body>
<div class="center">
<div class="wave"></div>
<div class="wave"></div>
<div class="wave"></div>
<div class="wave"></div>
<div class="wave"></div>
<div class="wave"></div>
<div class="wave"></div>
<div class="wave"></div>
<div class="wave"></div>
<div class="wave"></div>
</div>
<div class="book hide">
<input type="checkbox" id="c1" />
<input type="checkbox" id="c2" />
<input type="checkbox" id="c3" />
<input type="checkbox" id="c4" />
<input type="checkbox" id="c5" />
<input type="checkbox" id="c6" />
<input type="checkbox" id="c7" />
<input type="checkbox" id="c8" />
<input type="checkbox" id="c9" />
<input type="checkbox" id="cend" />
<div id="cover"></div>
<div class="flip-book">
<div class="flip" id="p1">
<div class="back cover">
<p>
" In three words I can sum up everything I've learned about life:
it goes on."
</p>
<span>-Robert Frost</span>
<label for="c1" class="back-btn moveLeft">Before</label>
</div>
<div class="front cover">
<label for="c1" class="next-btn moveRight">NEXT</label>
</div>
</div>
<div class="flip" id="p2">
<div class="back img1">
<img src="images/her_sight.png" alt="HerSight" />
<label for="c2" class="back-btn">Before</label>
</div>
<div class="front content">
<h2>Contents</h2>
<ul>
<li>Her Sight<span>2</span></li>
<li>Presence<span>3</span></li>
<li>Maria<span>4</span></li>
<li>Moonglade<span>5</span></li>
<li>Try-Catch<span>6</span></li>
<li>Oxytocin<span>7</span></li>
<li>New Life<sXpan>8</sXpan></li>
</ul>
<footer>1</footer>
<label for="c2" class="next-btn">NEXT</label>
</div>
</div>
<div class="flip" id="p3">
<div class="back img2">
<img src="images/door.png" alt="" />
<label for="c3" class="back-btn">Before</label>
</div>
<div class="front">
<h2 style="margin-left: 12px">Her Sight</h2>
<pre>
It was a dark denim night,
Gloomed by the scarcity of light,
I saw a beautiful shade,
Too dim to recognize,
Aloaf of the world,
In her deep prayers,
She might have sought the peace,
I was perceiving by her sight.
</pre>
<footer>2</footer>
<label for="c3" class="next-btn">NEXT</label>
</div>
</div>
<div class="flip" id="p4">
<div class="back img3">
<img src="images/maria.jpg" alt="" />
<label for="c4" class="back-btn">Before</label>
</div>
<div class="front">
<h2 style="margin-left: 10px">Presence</h2>
<pre style="font-style: italic">
Tum shyd khwaabon mai ate ho
Per hum sote puri raat nahi
Mai padna chahu tujhe
Per tum khuli koi kitaab nahi,
Mai chahu rahana pass tere,
Per tum rahate door us minar kahi,
Band darwazo mai rahate ho,
Per band aakho se dikte ho,
Ye bhi batao bhala koi baat hui?
</pre>
<footer>3</footer>
<label for="c4" class="next-btn">NEXT</label>
</div>
</div>
<div class="flip" id="p5">
<div class="back img4">
<img src="images/moonglide.jpg" alt="" />
<label for="c5" class="back-btn" style="z-index: 1; color: white"
>Before</label
>
</div>
<div class="front">
<h2 style="margin-bottom: 1em; margin-left: 12px">María</h2>
<pre>
Eyes blue, marine
when winks, rushes my dopamine
sparkles when she swings
fairy, miracle, without wings
beauty, queen, Esra in Diriliş
maybe
a tear drop off Nebula Helix
or Ahalya's forgotten twin
or Hennessy, high, a royal dream
firmament, my mind, a blank screen
and she is the film.
</pre>
<footer>4</footer>
<label for="c5" class="next-btn">NEXT</label>
</div>
</div>
<div class="flip" id="p6">
<div class="back img1">
<img src="images/quill.png" alt="" />
<label for="c6" class="back-btn">Before</label>
</div>
<div class="front">
<h2 style="margin-left: 0">Moonglade</h2>
<pre>
You are so beautiful,
<span>Tum me koi bhi kami nahi,</span>
I got everything else
<span>Hume bas tumhari hi kami thi,</span>
You love daisies and daffodils
Let them bloom, <span>hume koi jaldi nahi</span>
The moon's reflection in water is you
Kyōka Suigetsu;<span> kya ye doori hi karibi.</span>
</pre>
<footer>5</footer>
<label for="c6" class="next-btn">NEXT</label>
</div>
</div>
<div class="flip" id="p7">
<div class="back img1">
<img src="images/rose.png" alt="" />
<label for="c7" class="back-btn">Before</label>
</div>
<div class="front">
<h2 style="margin-bottom: 1em; margin-left: 8px">Try-Catch</h2>
<pre style="font-size: 14px; line-height: 20px">
Every time I try to press sleep
the memoirs don't let the eyelids
fasten,
Every time I wake up in reality
the creases on my bed-sheet are
scars brazen.
Every time I try to walk straight
I follow tens of different directions,
Every time I think to call a friend
I end up talking to my own reflection.
Every time I try to forget you
the moonlight drenches me in your
beauty,
Every time I decide not to write
my pen derides, "what reminds you of
me?"
</pre>
<footer>6</footer>
<label for="c7" class="next-btn">NEXT</label>
</div>
</div>
<div class="flip" id="p8">
<div class="back img1">
<img src="images/lamp.png" alt="" />
<label for="c8" class="back-btn">Before</label>
</div>
<div class="front">
<h2 style="margin-bottom: 1em; margin-left: 0px">Oxytocin</h2>
<pre style="font-size: 14px; line-height: 20px">
Love at first sight
is like a blooming rose
if you're eyes caught one
there is no escaping the voodoo.
With time as more petals grow
more of her beauty in you glows
blows mind, rings like telephone
uncontrollable, you just want more.
But being ephemeral, it's gonna die
love is just a feeling, you will
realise
passing months it will decay and perish
and as life goes on, a new bud will
arise.
</pre>
<footer>7</footer>
<label for="c8" class="next-btn">NEXT</label>
</div>
</div>
<div class="flip" id="p9">
<div class="back last">
<div></div>
<label for="c9" class="back-btn">Before</label>
</div>
<div class="front">
<h2 style="margin-bottom: 1em; margin-left: 0px">New Life</h2>
<pre style="font-size: 14px; line-height: 20px">
It didn't last forever that doesn't
mean it wasn't worth the while,
Run the dials and tell your friends
they are the best gift of your life.
We swim in the pool of achievements
overlooking the luck that tiles
reflect,
But it's the egocentric bias that
helps us grow
so I got no problem with that.
Would love to sit and smoke more time
watching that stagnant clock with
cracks,
But it's time my hand should reach
the button deep in my head and
the clockwork to reset.
</pre>
<footer>8</footer>
<label for="c9" class="next-btn">NEXT</label>
</div>
</div>
<div class="flip" id="pend">
<div class="back end">
<label for="cend" class="back-btn" style="color: white"
>Before</label
>
</div>
<div class="front">
<h2>Author's Page</h2>
<div class="work">
<h3>Read my other works:</h3>
<p>
<img src="images/all_poetry.jpg" />
<a href="https://allpoetry.com/Esoteric_Artist"
>@Esoteric Artist</a
>
</p>
</div>
<div class="connect">
<h3>Connect with me:</h3>
<div class="social">
<p>
<i class="fa-brands fa-square-instagram"></i>
<a href="https://www.instagram.com/wayward_rahul/">
@wayward_rahul</a
>
</p>
<p>
<i class="fa-brands fa-linkedin"></i>
<a href="https://www.linkedin.com/in/replyr/"> Rahul Gupta</a>
</p>
<p>
<i class="fa-brands fa-github"></i>
<a href="https://github.com/replyre"> @replyre</a>
</p>
<p style="z-index: 1">
<img src="images/coffee.svg" />
<a
href="https://www.buymeacoffee.com/replyr"
title="Buy me a cofee"
>
@replyre</a
>
</p>
</div>
</div>
<label for="cend" class="next-btn lastRight">NEXT</label>
</div>
</div>
</div>
</div>
<div class="attr">
created by
<a href="https://github.com/replyre" title="Github account"> @replyre</a>
</div>
<script>
(function (i, s, o, g, r, a, m) {
i["GoogleAnalyticsObject"] = r;
(i[r] =
i[r] ||
function () {
(i[r].q = i[r].q || []).push(arguments);
}),
(i[r].l = 1 * new Date());
(a = s.createElement(o)), (m = s.getElementsByTagName(o)[0]);
a.async = 1;
a.src = g;
m.parentNode.insertBefore(a, m);
})(
window,
document,
"script",
"//www.google-analytics.com/analytics.js",
"ga"
);
ga("create", "UA-46156385-1", "cssscript.com");
ga("send", "pageview");
var sound = new Audio("page_turn.mp3");
var buttons = document.querySelectorAll('input[type="checkbox"]');
buttons.forEach((btn) => {
btn.addEventListener("click", () => {
sound.play();
});
});
if (window.innerWidth > 800) {
document.querySelector(".moveRight").addEventListener("click", () => {
let book = document.querySelector(".book");
book.style.cssText =
"transform:translateX(170px); transition: all 0.4s ease-in";
});
document.querySelector(".moveLeft").addEventListener("click", () => {
let book = document.querySelector(".book");
book.style.cssText =
"transform:translateX(-100px); transition: all 0.4s ease-in";
});
}
if (window.innerWidth <= 600) {
document.querySelectorAll(".front").forEach((page, index) => {
const newDiv = document.createElement("div");
const TextNode = document.createTextNode("Left");
newDiv.appendChild(TextNode);
newDiv.classList.add("left-btn");
page.appendChild(newDiv);
});
document.querySelectorAll(".back").forEach((page, index) => {
const newDiv = document.createElement("div");
const TextNode = document.createTextNode("Right");
newDiv.appendChild(TextNode);
newDiv.classList.add("right-btn");
page.appendChild(newDiv);
});
document.querySelectorAll(".left-btn").forEach((btn) => {
btn.addEventListener("click", () => {
let book = document.querySelector(".book");
book.style.cssText =
"transform: translateX(320px); transition: all 0.4s ease-in";
});
});
document.querySelectorAll(".right-btn").forEach((btn) => {
btn.addEventListener("click", () => {
let book = document.querySelector(".book");
book.style.cssText =
"transform: translateX(-42px); transition: all 0.4s ease-in";
});
});
document.querySelector(".front.cover .left-btn").classList.add("hide");
document.querySelector(".lastRight").addEventListener("click", () => {
let book = document.querySelector(".book");
book.style.cssText =
"transform:translateX(320px); transition: all 0.4s ease-in";
});
document.querySelector(".moveLeft").addEventListener("click", () => {
let book = document.querySelector(".book");
book.style.cssText =
"transform:translateX(-20px); transition: all 0.4s ease-in";
});
}
setTimeout(() => {
document.querySelector(".center").classList.add("hide");
}, 5000);
setTimeout(() => {
document.querySelector(".book").classList.remove("hide");
}, 5000);
</script>
</body>
</html>