-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
345 lines (324 loc) · 16.5 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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- favicon -->
<link rel="shortcut icon" href="/images/html5icon.ico" type="image/x-icon">
<link rel="icon" href="/images/html5icon.ico" type="image/x-icon">
<!-- pinterest -->
<meta name="p:domain_verify" content="f3db3f128ac895d070fe08b0f9ff97c2"/>
<!-- Required meta tags -->
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BmbxuPwQa2lc/FVzBcNJ7UAyJxM6wuqIj61tLrc4wSX0szH/Ev+nYRRuWlolflfl" crossorigin="anonymous" />
<!-- Bootstrap Icons -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.4.0/font/bootstrap-icons.css" />
<!-- AOS -->
<link rel="stylesheet" href="https://unpkg.com/aos@next/dist/aos.css" />
<!-- My CSS -->
<link rel="stylesheet" href="style.css" />
<title>My Portofolio | Andi wira waHyudi</title>
</head>
<body id="home">
<!-- Navbar -->
<nav class="navbar navbar-expand-lg navbar-dark bg-primary shadow-sm fixed-top">
<div class="container">
<a class="navbar-brand" href="#">Andi wira waHyudi</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav ms-auto">
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="#home">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#about">About</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#projects">Projects</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#gallery">Gallery</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#contact">Contact</a>
</li>
<li>
<a class="nav-link" href="https://anwiwah.github.io/Calculator/">Calculator</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://anwiwah.github.io/README.md/">README</a>
</li>
</ul>
</div>
</div>
</nav>
<!-- Akhir Navbar -->
<!-- Jumbotron -->
<section class="jumbotron text-center">
<img src="img/ash.jpg" alt="ash" width="200" class="rounded-circle img-thumbnail" />
<h1 class="display-4">azh</h1>
<p class="lead"></p>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320">
<path
fill="#fff"
fill-opacity="1"
d="M0,128L26.7,138.7C53.3,149,107,171,160,165.3C213.3,160,267,128,320,106.7C373.3,85,427,75,480,101.3C533.3,128,587,192,640,218.7C693.3,245,747,235,800,229.3C853.3,224,907,224,960,213.3C1013.3,203,1067,181,1120,176C1173.3,171,1227,181,1280,192C1333.3,203,1387,213,1413,218.7L1440,224L1440,320L1413.3,320C1386.7,320,1333,320,1280,320C1226.7,320,1173,320,1120,320C1066.7,320,1013,320,960,320C906.7,320,853,320,800,320C746.7,320,693,320,640,320C586.7,320,533,320,480,320C426.7,320,373,320,320,320C266.7,320,213,320,160,320C106.7,320,53,320,27,320L0,320Z"
></path>
</svg>
</section>
<!-- Akhir Jumbotron -->
<!-- About -->
<section id="about">
<div class="container">
<div class="row text-center mb-3">
<div class="col">
<h2>About Me</h2>
</div>
<div class="row justify-content-center fs-5 text-center">
<div class="col-md-4" data-aos="fade-right" data-aos-duration="1000">Lorem ipsum dolor sit amet consectetur adipisicing elit. Magnam alias blanditiis nulla officiis nisi in veritatis expedita tenetur possimus adipisci?</div>
<div class="col-md-4" data-aos="fade-left" data-aos-duration="1000" data-aos-delay="200">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Vero, aspernatur nostrum et dolore nesciunt mollitia, optio nisi perspiciatis est deleniti pariatur nulla minima blanditiis tempora.
</div>
</div>
</div>
</div>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320">
<path
fill="#e2edff"
fill-opacity="1"
d="M0,128L26.7,133.3C53.3,139,107,149,160,154.7C213.3,160,267,160,320,181.3C373.3,203,427,245,480,234.7C533.3,224,587,160,640,138.7C693.3,117,747,139,800,154.7C853.3,171,907,181,960,170.7C1013.3,160,1067,128,1120,138.7C1173.3,149,1227,203,1280,197.3C1333.3,192,1387,128,1413,96L1440,64L1440,320L1413.3,320C1386.7,320,1333,320,1280,320C1226.7,320,1173,320,1120,320C1066.7,320,1013,320,960,320C906.7,320,853,320,800,320C746.7,320,693,320,640,320C586.7,320,533,320,480,320C426.7,320,373,320,320,320C266.7,320,213,320,160,320C106.7,320,53,320,27,320L0,320Z"
></path>
</svg>
</section>
<!-- Akhir About -->
<!-- Projects -->
<section id="projects">
<div class="container">
<div class="row text-center mb-3">
<div class="col">
<h2>My Projects</h2>
</div>
</div>
<div class="row justify-content-center">
<div class="col-md-4 mb-3">
<div class="card" data-aos="flip-left" data-aos-duration="500">
<img src="img/projects/Ash_Pikachu.png" class="card-img-top" alt="..." />
<div class="card-body">
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
</div>
</div>
</div>
<div class="col-md-4 mb-3">
<div class="card" data-aos="flip-left" data-aos-duration="500" data-aos-delay="10">
<img src="img/projects/Ash_Dragonite.png" class="card-img-top" alt="..." />
<div class="card-body">
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
</div>
</div>
</div>
<div class="col-md-4 mb-3">
<div class="card" data-aos="flip-left" data-aos-duration="500" data-aos-delay="200">
<img src="img/projects/Ash_Gengar.png" class="card-img-top" alt="..." />
<div class="card-body">
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
</div>
</div>
</div>
<div class="col-md-4 mb-3">
<div class="card" data-aos="flip-left" data-aos-duration="500" data-aos-delay="300">
<img src="img/projects/Ash_Lucario.png" class="card-img-top" alt="..." />
<div class="card-body">
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
</div>
</div>
</div>
<div class="col-md-4 mb-3">
<div class="card" data-aos="flip-left" data-aos-delay="400">
<img src="img/projects/Ash_Farfetch'd.png" class="card-img-top" alt="..." />
<div class="card-body">
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
</div>
</div>
</div>
<div class="col-md-4 mb-3">
<div class="card" data-aos="flip-left" data-aos-delay="500">
<img src="img/projects/Ash_Dracovish.png" class="card-img-top" alt="..." />
<div class="card-body">
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
</div>
</div>
</div>
</div>
</div>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320">
<path
fill="#fff"
fill-opacity="1"
d="M0,32L26.7,74.7C53.3,117,107,203,160,224C213.3,245,267,203,320,197.3C373.3,192,427,224,480,224C533.3,224,587,192,640,186.7C693.3,181,747,203,800,186.7C853.3,171,907,117,960,90.7C1013.3,64,1067,64,1120,90.7C1173.3,117,1227,171,1280,181.3C1333.3,192,1387,160,1413,144L1440,128L1440,320L1413.3,320C1386.7,320,1333,320,1280,320C1226.7,320,1173,320,1120,320C1066.7,320,1013,320,960,320C906.7,320,853,320,800,320C746.7,320,693,320,640,320C586.7,320,533,320,480,320C426.7,320,373,320,320,320C266.7,320,213,320,160,320C106.7,320,53,320,27,320L0,320Z"
></path>
</svg>
</section>
<!-- Akhir Projects -->
<!-- Gallery -->
<section id="gallery">
<div class="container">
<div class="row text-center mb-3">
<div class="col">
<h2>Gallery</h2>
</div>
</div>
<div class="row justify-content-center">
<div class="col-md-3">
<a href="#"></a>
<img src="img/gallery/thumbnail/1.jpg" alt="Gambar 1" class="img-fluid gallery-img" />
</div>
<div class="col-md-3">
<a href="#"></a>
<img src="img/gallery/thumbnail/2.jpg" alt="Gambar 2" class="img-fluid gallery-img" />
</div>
<div class="col-md-3">
<a href="#"></a>
<img src="img/gallery/thumbnail/3.jpg" alt="Gambar 3" class="img-fluid gallery-img" />
</div>
<div class="col-md-3">
<a href="#"></a>
<img src="img/gallery/thumbnail/4.jpg" alt="Gambar 4" class="img-fluid gallery-img" />
</div>
<div class="col-md-3">
<a href="#"></a>
<img src="img/gallery/thumbnail/5.jpg" alt="Gambar 5" class="img-fluid gallery-img" />
</div>
<div class="col-md-3">
<a href="#"></a>
<img src="img/gallery/thumbnail/6.jpg" alt="Gambar 6" class="img-fluid gallery-img" />
</div>
<div class="col-md-3">
<a href="#"></a>
<img src="img/gallery/thumbnail/7.jpg" alt="Gambar 7" class="img-fluid gallery-img" />
</div>
<div class="col-md-3">
<a href="#"></a>
<img src="img/gallery/thumbnail/8.jpg" alt="Gambar 8" class="img-fluid gallery-img" />
</div>
<div class="col-md-3">
<a href="#"></a>
<img src="img/gallery/thumbnail/9.jpg" alt="Gambar 9" class="img-fluid gallery-img" />
</div>
<div class="col-md-3">
<a href="#"></a>
<img src="img/gallery/thumbnail/10.jpg" alt="Gambar 10" class="img-fluid gallery-img" />
</div>
</div>
</div>
</section>
<!-- Akhir Gallery -->
<!-- Contact -->
<section id="contact">
<div class="container">
<div class="row text-center mb-3">
<div class="col">
<h2>Contact Me</h2>
</div>
</div>
<div class="row justify-content-center">
<div class="col-md-6">
<div class="alert alert-success alert-dismissible fade show d-none my-alert" role="alert">
<strong>Terimahkasih!!</strong> Pesan anda sudah kami terima.
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
<form name="submit-to-google-sheet">
<div class="mb-3">
<label for="name" class="form-label">Nama Lengkap</label>
<input type="text" class="form-control" id="exampleInputEmail1" aria-describedby="name" name="nama" />
</div>
<div class="mb-3">
<label for="email" class="form-label">Email</label>
<input type="email" class="form-control" id="email" aria-describedby="email" name="email" />
</div>
<div class="mb-3">
<label for="pesan" class="form-label">Pesan</label>
<textarea class="form-control" id="pesan" rows="3" name="pesan"></textarea>
</div>
<button type="submit" class="btn btn-primary btn-kirim">Kirim</button>
<button class="btn btn-primary btn-loading d-none" type="button" disabled>
<span class="spinner-border spinner-border-sm" role="status" aria-hidden="true"></span>
Loading...
</button>
</form>
</div>
</div>
</div>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320">
<path
fill="#0d6efd"
fill-opacity="1"
d="M0,64L26.7,74.7C53.3,85,107,107,160,144C213.3,181,267,235,320,224C373.3,213,427,139,480,128C533.3,117,587,171,640,197.3C693.3,224,747,224,800,208C853.3,192,907,160,960,165.3C1013.3,171,1067,213,1120,245.3C1173.3,277,1227,299,1280,266.7C1333.3,235,1387,149,1413,106.7L1440,64L1440,320L1413.3,320C1386.7,320,1333,320,1280,320C1226.7,320,1173,320,1120,320C1066.7,320,1013,320,960,320C906.7,320,853,320,800,320C746.7,320,693,320,640,320C586.7,320,533,320,480,320C426.7,320,373,320,320,320C266.7,320,213,320,160,320C106.7,320,53,320,27,320L0,320Z"
></path>
</svg>
</section>
<!-- Akhir Contact -->
<!-- Footer -->
<footer class="bg-primary text-white text-center pb-5">
<p>Created with <i class="bi bi-heart-fill text-danger"></i> by <a href="https://www.instagram.com/anwiwah/" class="text-white fw-bold">Andi wira waHyudi</a></p>
</footer>
<!-- Akhir Footer -->
<!-- Optional JavaScript; choose one of the two! -->
<!-- Option 1: Bootstrap Bundle with Popper -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/js/bootstrap.bundle.min.js" integrity="sha384-b5kHyXgcpbZJO/tY9Ul7kGkf1S0CWuKcCD38l8YkeH8z8QjE0GmW1gYU5S9FOnJ0" crossorigin="anonymous"></script>
<!-- Option 2: Separate Popper and Bootstrap JS -->
<!--
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.6.0/dist/umd/popper.min.js" integrity="sha384-KsvD1yqQ1/1+IA7gi3P0tyJcT3vR+NdBTt13hSJ2lnve8agRGXTTyNaBYmCR/Nwi" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/js/bootstrap.min.js" integrity="sha384-nsg8ua9HAw1y0W1btsyWgBklPnCUAFLuTMS2G72MMONqmOymq585AcH49TLBQObG" crossorigin="anonymous"></script>
-->
<script src="https://unpkg.com/aos@next/dist/aos.js"></script>
<script>
const galleryImage = document.querySelectorAll(".gallery-img");
galleryImage.forEach((img, i) => {
img.dataset.aos = "fade-down";
img.dataset.aosDelay = i * 100;
img.dataset.aosDuration = 1000;
});
AOS.init({
once: true,
duration: 2000,
});
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.6.1/gsap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.6.1/TextPlugin.min.js"></script>
<script>
gsap.registerPlugin(TextPlugin);
gsap.to(".lead", { duration: 2, delay: 1.5, text: "Computer Science | Content Creator" });
gsap.from(".jumbotron img", { duration: 1, rotateY: 360, opacity: 0 });
gsap.from(".navbar", { duration: 1.5, y: "-100%", opacity: 0, ease: "bounce" });
gsap.from(".display-4", { duration: 1, x: -50, opacity: 0, delay: 0.5, ease: "back" });
</script>
<script>
const scriptURL = "https://script.google.com/macros/s/AKfycbzdVa0brgdCCUqFQOKlUMNOQxp-fqTBk34VLDM_2J5Qe7xCNK-5aX0ieVfHk_lqGbqD/exec";
const form = document.forms["submit-to-google-sheet"];
const btnKirim = document.querySelector(".btn-kirim");
const btnLoading = document.querySelector(".btn-loading");
const myAlert = document.querySelector(".my-alert");
form.addEventListener("submit", (e) => {
e.preventDefault();
// ketika tombol submit diklik
// tampilkan tombol loading, hilangkan tombol kirim
btnLoading.classList.toggle("d-none");
btnKirim.classList.toggle("d-none");
fetch(scriptURL, { method: "POST", body: new FormData(form) })
.then((response) => {
// tampilkan tombol kirim, hilangkan tombol loading
btnLoading.classList.toggle("d-none");
btnKirim.classList.toggle("d-none");
// tambahkan alert
myAlert.classList.toggle("d-none");
// reset formnya
form.reset();
console.log("Success!", response);
})
.catch((error) => console.error("Error!", error.message));
});
</script>
</body>
</html>