forked from dhairyagothi/100_days_100_web_project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
102 lines (100 loc) · 3.29 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Quotely Laughs</title>
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>😉</text></svg>">
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/tailwind.min.css"
rel="stylesheet"
/>
<style>
.loader {
border-top-color: #3498db;
animation: spinner 1.5s linear infinite;
}
@keyframes spinner {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
</style>
<script defer src="script.js"></script>
</head>
<body
class="bg-gray-100 text-gray-900 flex flex-col justify-between h-screen relative"
>
<header
class="bg-gradient-to-r from-blue-500 to-green-500 p-4 shadow-md text-center"
>
<h1 class="text-3xl font-bold text-white">Quotely Laughs</h1>
</header>
<main class="flex-grow flex flex-col items-center justify-center">
<button
id="generate"
class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded mb-6"
>
Generate Quote and Joke
</button>
<div
id="content"
class="bg-gray-200 p-6 rounded shadow-md text-center max-w-md w-full"
>
<div class="mb-6">
<p id="quote" class="text-lg font-medium mb-4"></p>
<div class="flex items-center justify-center">
<p class="text-base">Share quote on:</p>
<div>
<a id="share-quote-x" href="#" target="_blank">
<svg
xmlns="http://www.w3.org/2000/svg"
width="20px"
height="20px"
viewBox="0 0 512 512"
>
<path
fill="black"
d="M389.2 48h70.6L305.6 224.2L487 464H345L233.7 318.6L106.5 464H35.8l164.9-188.5L26.8 48h145.6l100.5 132.9zm-24.8 373.8h39.1L151.1 88h-42z"
/>
</svg>
</a>
</div>
</div>
</div>
<div>
<p id="joke" class="text-lg font-medium mb-4"></p>
<div class="flex items-center justify-center">
<p class="text-base">Share joke on:</p>
<div>
<a id="share-joke-x" href="#" target="_blank">
<svg
xmlns="http://www.w3.org/2000/svg"
width="20px"
height="20px"
viewBox="0 0 512 512"
>
<path
fill="black"
d="M389.2 48h70.6L305.6 224.2L487 464H345L233.7 318.6L106.5 464H35.8l164.9-188.5L26.8 48h145.6l100.5 132.9zm-24.8 373.8h39.1L151.1 88h-42z"
/>
</svg>
</a>
</div>
</div>
</div>
</div>
</main>
<div
id="loading"
class="hidden absolute inset-0 bg-gray-800 bg-opacity-50 flex items-center justify-center"
>
<div
class="loader ease-linear rounded-full border-8 border-t-8 border-gray-200 h-16 w-16"
></div>
</div>
</body>
</html>