-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
200 lines (193 loc) · 11.7 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="./main.css" rel="stylesheet" type="text/css">
<script src="https://unpkg.com/@tailwindcss/browser@4"></script>
<link rel="image_src" href="https://kawenzy.github.io/afazta/assets/image.png"/>
<meta property="title" content="Afazta" />
<meta property="description" content="食べたい🥞">
<meta property="og:title" content="Afazta" />
<meta property="og:image" content="https://kawenzy.github.io/afazta/assets/image.png" />
<meta property="og:image:width" content="1920">
<meta property="og:image:height" content="1080">
<meta property="og:description" content="食べたい🥞">
<meta property="og:site_name" content="@Afazta">
<meta property="og:type" content="website" />
<title>Afazta</title>
</head>
<body>
<div class="bg-[url(./assets/3840x2160-296702.jpg)]">
<div class="bg-conic-120 from-blue-600 via-blue-200 to-blue-600 backdrop-blur">
<div class="m-auto grid justify-center items-center min-h-screen">
<div
class="rounded-[10px] backdrop-blur-[70px] shadow-xl shadow-blue-900/10 bg-white/20 appearance-none p-4 min-h-[70px] flex grow justify-center lg:hidden">
<div class="m-auto justify-center items-center min-h-full flex grow">
<p class="funnel-sans appearance-none text-blue-50 font-semibold text-xl">Only Laptop Version
</p>
</div>
</div>
<div
class="w-[600px] h-[400px] p-8 rounded-[10px] backdrop-blur-[70px] shadow-xl shadow-blue-900/10 bg-white/20 appearance-none hidden lg:block">
<div class="flex gap-4 items-start ml-auto ">
<div class="w-[160px] h-[160px] appearance-none ">
<img src="./assets/pf.jfif" alt="pf" class="rounded-[5px]" />
</div>
<div class="flex items-center">
<div class="block items-center ml-auto appearance-none">
<h1 class="funnel-sans appearance-none text-4xl text-blue-50 font-bold">Afazta</h1>
<p class="roboto appearance-none text-lg text-blue-100 items-center font-medium">◧
Indonesian
<span class="font-thin text-md">
⊰ Progammer ⊱
</span>
</p>
<div class="h-[12px]"></div>
<div class="flex items-center gap-3">
<div class="w-[80px] h-[80px] rounded-sm p-2 bg-blue-100/60 backdrop-blur-xl"></div>
<div class="w-[80px] h-[80px] rounded-sm p-2 bg-blue-600/70 backdrop-blur-xl"></div>
<div class="w-[80px] h-[80px] rounded-sm p-2 bg-blue-600/50 backdrop-blur-xl"></div>
</div>
</div>
</div>
</div>
<div class="h-[8px]"></div>
<div class="flex gap-4 items-start">
<div class="w-[160px] block items-center">
<div class="flex-col gap-2 items-center">
<div class="bg-blue-200/50 p-2 rounded-[5px] backdrop-blur-md flex items-center">
<h1 class="text-blue-50 font-semibold funnel-sans text-xl">Language
</h1>
<i data-lucide="code" class="ml-auto size-7 text-blue-50"></i>
</div>
<div class="h-2"></div>
<div class="flex items-center gap-4 group">
<div class="size-3 rounded-full bg-blue-400/50 backdrop-blur-md"></div>
<p class="roboto text-blue-100 group-hover:text-blue-50 text-md">Typescript</p>
</div>
<div class="h-1"></div>
<div class="flex items-center gap-4 group">
<div class="size-3 rounded-full bg-blue-400/50 backdrop-blur-md"></div>
<p class="roboto text-blue-100 group-hover:text-blue-50 text-md">Python</p>
</div>
<div class="h-1"></div>
<div class="flex items-center gap-4 group">
<div class="size-3 rounded-full bg-blue-400/50 backdrop-blur-md"></div>
<p class="roboto text-blue-100 group-hover:text-blue-50 text-md">Dart</p>
</div>
</div>
</div>
<div class="items-center grow gap-4">
<div
class=" max-w-[265px] bg-blue-600/40 backdrop-blur-md p-3 flex-col items-center rounded-[5px]">
<div class="flex items-start gap-4">
<i data-lucide="music" class="size-16 text-blue-100 "></i>
<div class="flex-col gap-3 items-center">
<h1 class="funnel-sans font-semibold text-2xl text-blue-100">King</h1>
<a href="https://www.youtube.com/watch?v=BaBGtsw_si4">
<p class="roboto text-blue-200 text-md hover:text-blue-100 cursor-pointer">
Lauren Aquilina</p>
</a>
</div>
</div>
<div class="h-3"></div>
<input id="progressBar" type="range" max="100" step="0.1" value="0" min="0"
class="w-full bg-blue-300/50 cursor-pointer backdrop-blur-lg appearance-none rounded-[2px] [&::-webkit-slider-thumb]:bg-blue-200/50 [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:h-[20px] [&::-webkit-slider-thumb]:w-[15px] [&::-webkit-slider-thumb]:rounded-[1px]" />
<div class="h-3"></div>
<div class="flex items-center justify-evenly gap-4">
<p class="text-blue-200 roboto " id="currentTime">00:00</p>
<div id="playPauseBtn"
class="p-2 rounded-full bg-blue-300/50 backdrop-blur-md group cursor-pointer appearance-none">
<i id="playIcon" data-lucide="play"
class="size-6 text-blue-200 group-hover:text-blue-100 "></i>
<i id="pauseIcon" data-lucide="pause"
class="size-6 text-blue-200 group-hover:text-blue-100 hidden"></i>
</div>
<p class="text-blue-200 roboto " id="totalTime">00:00</p>
</div>
<audio id="audio" class="hidden">
<source src="./assets/King.mp3" type="audio/mpeg" />
</audio>
</div>
</div>
</div>
<div class="absolute z-20 right-6 top-10">
<div class="flex-col justify-center items-center">
<a href="https://www.youtube.com/@Kawenzy_">
<div
class=" rounded-full bg-blue-600/50 backdrop-blur-md p-4 cursor-pointer group appearance-none">
<i data-lucide="youtube" class="size-8 text-blue-200 group-hover:text-blue-50"></i>
</div>
</a>
<div class="h-5"></div>
<a href="https://github.com/kawenzy">
<div
class=" rounded-full bg-blue-600/50 backdrop-blur-md p-4 cursor-pointer group appearance-none">
<i data-lucide="github" class="size-8 text-blue-200 group-hover:text-blue-50"></i>
</div>
</a>
<div class="h-5"></div>
<a href="https://www.instagram.com/kawenzy_/">
<div
class=" rounded-full bg-blue-600/50 backdrop-blur-md p-4 cursor-pointer group appearance-none">
<i data-lucide="instagram"
class="size-8 text-blue-200 group-hover:text-blue-50"></i>
</div>
</a>
<div class="h-5"></div>
<div class=" rounded-full bg-blue-600/50 backdrop-blur-md p-4 cursor-pointer group appearance-none"
id="share">
<i data-lucide="share-2" class="size-8 text-blue-200 group-hover:text-blue-50"></i>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="https://unpkg.com/lucide@latest"></script>
<script>
lucide.createIcons();
</script>
<script>
const playPauseBtn = document.getElementById("playPauseBtn");
const pauseIcon = document.getElementById("pauseIcon");
const playIcon = document.getElementById("playIcon");
const progress = document.getElementById("progressBar");
const currTime = document.getElementById("currentTime");
const totalTime = document.getElementById("totalTime");
const audio = document.getElementById("audio");
const shares = document.getElementById("share");
const formatTm = (time) => {
const minute = Math.floor(time / 60);
const seconds = Math.floor(time % 60);
return `${minute.toString().padStart(2, "0")}:${seconds.toString().padStart(2, "0")}`
};
playPauseBtn.addEventListener("click", () => {
if (audio.paused) {
audio.play();
playIcon.classList.add("hidden");
pauseIcon.classList.remove("hidden");
} else {
audio.pause();
playIcon.classList.remove("hidden");
pauseIcon.classList.add("hidden");
}
});
audio.addEventListener("timeupdate", () => {
const prgs = (audio.currentTime / audio.duration) * 100;
progress.value = prgs;
currTime.textContent = formatTm(audio.currentTime);
totalTime.textContent = `${formatTm(audio.duration)}`;
});
progress.addEventListener("input", () => {
const seekTm = (progress.value / 100) * audio.duration;
audio.currentTime = seekTm;
});
shares.addEventListener("click", () => {
navigator.clipboard.writeText(window.location.href);
});
</script>
</body>
</html>