-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
222 lines (186 loc) · 4.49 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
<!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>Zen</title>
<style>
:root {
--bg-color: #2b2a33;
--f-color: #969696;
}
*,
*::before,
*::after {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
display: flex;
padding: 1em;
font-family: Arial, Helvetica, sans-serif;
background-color: var(--bg-color);
justify-content: center;
}
.container {
color: var(--f-color);
margin-top: 3rem;
}
h1 {
margin-top: 3rem;
color: #fbfbfe;
text-align: center;
}
h3 {
margin-bottom: 10px;
color: #9e9e9e;
text-align: center;
}
.url-list {
display: flex;
margin-top: 12rem;
justify-content: center;
}
.list {
margin: 0 15px;
padding: 2.6rem;
border-radius: 9px;
box-shadow: 8px 10px 38px -7px rgba(26, 24, 26, 1);
}
a {
text-decoration: none;
color: #969696;
}
a:hover {
color: #fff;
}
li {
margin-top: 5px;
list-style-type: none;
}
@media screen and (max-width: 480px) {
body {
flex-direction: column;
align-items: center;
padding: 0;
}
.container {
margin-top: 2rem;
}
.url-list {
margin-top: 2rem;
flex-direction: column;
align-items: center;
}
.list {
margin: 1rem 0;
padding: 1.2rem;
width: 80%;
}
h1 {
margin-top: 2rem;
font-size: 1.8rem;
text-align: center;
}
h3 {
margin-bottom: 10px;
font-size: 1.2rem;
text-align: center;
}
li {
margin-top: 1rem;
font-size: 1.2rem;
}
}
.card {
margin: 10px;
font-size: 1.2rem;
text-align: center;
}
blockquote {
quotes: "\201C""\201D""\2018""\2019";
}
blockquote p:before {
content: open-quote;
}
blockquote p:after {
content: close-quote;
}
blockquote footer {
font-style: italic;
text-align: center;
}
</style>
</head>
<body>
<nav>
<div class="setting-logo">
<img src="./settings-outline.svg" alt="" srcset="">
</div>
</nav>
<div class="container">
<h1>Welcome back, {username}</h1>
<div class="card">
<blockquote class="blockquote mb-0">
<p>...</p>
<footer class="blockquote-footer">
<cite title="Source Title"></cite>
</footer>
</blockquote>
</div>
<div class="url-list">
<div class="list">
<ul>
<li><a href="https://mail.google.com/mail/u/0/" target="_blank">Mail</a></li>
<li><a href="https://calendar.google.com/calendar/u/0/r" target="_blank">Calendar</a></li>
<li><a href="https://youtube.com" target="_blank">Youtube</a></li>
</ul>
</div>
<div class="list">
<ul>
<li><a href="https://github.com/" target="_blank">Github</a></li>
<li><a href="https://stackoverflow.com/" target="_blank">Stack Overflow</a></li>
<li><a href="https://chat.openai.com/chat" target="_blank">ChatGPT</a></li>
</ul>
</div>
<div class="list">
<ul>
<li><a href="https://www.reddit.com/" target="_blank">Reddit</a></li>
<li><a href="https://discord.com/channels/@me" target="_blank">Discord</a></li>
<li><a href="https://www.linkedin.com/feed/" target="_blank">LinkedIn</a></li>
</ul>
</div>
</div>
</div>
<script>
// Powered by Quotable
// https://github.com/lukePeavey/quotable
document.addEventListener("DOMContentLoaded", () => {
// DOM elements
const quote = document.querySelector("blockquote");
const cite = document.querySelector("blockquote cite");
async function updateQuote() {
// Fetch a random quote from the Quotable API
const response = await fetch("https://api.quotable.io/random");
const data = await response.json();
if (response.ok) {
// Update DOM elements
quote.textContent = data.content;
cite.textContent = data.author;
} else {
quote.textContent = "An error occured";
console.log(data);
}
}
// Ambil elemen h1 dari dokumen
const h1Element = document.querySelector('h1');
// Ganti teks dalam elemen h1 dengan nama pengguna
h1Element.innerText = h1Element.innerText.replace('{username}', 'wizumon');
// call updateQuote once when page loads
updateQuote();
});
</script>
</body>
</html>