-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
231 lines (220 loc) · 10.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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!-- bootstrap icon -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css" />
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous" />
<link rel="stylesheet" href="style.css" />
<title>Portfolio Personal</title>
</head>
<body id="home">
<!-- start navbar -->
<nav class="navbar navbar-expand-lg navbar-light bg-warning shadow fixed-top">
<div class="container">
<a class="navbar-brand" href="#">FishCode's Me</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="#tentang">Tentang aku</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#project">Galeri</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#contact">Berteman yuk</a>
</li>
</ul>
</div>
</div>
</nav>
<!-- end navbar -->
<!-- start jumbotron -->
<section class="jumbotron text-center">
<img src="img/profile.jpg" alt="profile" width="190" class="rounded-circle img-thumbnail" />
<h1 class="display-4">FishCode</h1>
<p class="lead">Student | Dunkerque:3</p>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320">
<path
fill="#ffff"
fill-opacity="1"
d="M0,288L48,272C96,256,192,224,288,197.3C384,171,480,149,576,165.3C672,181,768,235,864,250.7C960,267,1056,245,1152,250.7C1248,256,1344,288,1392,304L1440,320L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"
></path>
</svg>
</section>
<!-- end jumbotrom -->
<!--start about -->
<section id="tentang">
<div class="container">
<div class="row text-center">
<div class="col">
<h2>Tentang aku</h2>
</div>
</div>
<div class="row justify-content-center text-center mb-3">
<div class="col-md-4 mb-3">
<p>Lorem i elit. Vitae cumque aliquam fugiat inventore quo modi officiis autem, repellat unde.</p>
</div>
<div class="col-md-4 mb-3">
<p>Lorem ipsum dolor sit amet consectetur lit. llendus officia voluptas molestiae. Nostrum, dignissimos libero? Quisquam voluptate ab harum.</p>
</div>
</div>
</div>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320">
<path
fill="#000b76"
fill-opacity="1"
d="M0,32L34.3,37.3C68.6,43,137,53,206,85.3C274.3,117,343,171,411,197.3C480,224,549,224,617,218.7C685.7,213,754,203,823,170.7C891.4,139,960,85,1029,85.3C1097.1,85,1166,139,1234,133.3C1302.9,128,1371,64,1406,32L1440,0L1440,320L1405.7,320C1371.4,320,1303,320,1234,320C1165.7,320,1097,320,1029,320C960,320,891,320,823,320C754.3,320,686,320,617,320C548.6,320,480,320,411,320C342.9,320,274,320,206,320C137.1,320,69,320,34,320L0,320Z"
></path>
</svg>
</section>
<!-- end about -->
<!-- start poject -->
<section id="project">
<div class="container">
<div class="row text-center mb-4">
<div class="col">
<h2>Galeriku</h2>
</div>
</div>
<div class="row justify-content-center">
<div class="col-md-4 mb-3">
<div class="card">
<img src="img/img-1.jpg" class="card-img-top" alt="pr-1" />
<div class="card-body">
<p class="card-text text-dark">Lorem ipsum dolor sit, amet consectetur adipisicing elit. Voluptas, natus.</p>
</div>
</div>
</div>
<div class="col-md-4 mb-3">
<div class="card">
<img src="img/img-2.jpg" class="card-img-top" alt="pr-1" />
<div class="card-body">
<p class="card-text text-dark">Lorem ipsum dolor Lorem ipsum dolor sit amet.</p>
</div>
</div>
</div>
<div class="col-md-4 mb-3">
<div class="card">
<img src="img/img-3.png" class="card-img-top" alt="pr-1" />
<div class="card-body">
<p class="card-text text-dark">Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolorum.</p>
</div>
</div>
</div>
<div class="col-md-4 mb-3">
<div class="card">
<img src="img/img-4.png" class="card-img-top" alt="pr-1" />
<div class="card-body">
<p class="card-text text-dark">Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolorum.</p>
</div>
</div>
</div>
<div class="col-md-4 mb-3">
<div class="card">
<img src="img/img-5.jpg" class="card-img-top" alt="pr-1" />
<div class="card-body">
<p class="card-text text-dark">Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolorum.</p>
</div>
</div>
</div>
</div>
</div>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320">
<path
fill="#fffff"
fill-opacity="1"
d="M0,224L34.3,229.3C68.6,235,137,245,206,218.7C274.3,192,343,128,411,90.7C480,53,549,43,617,69.3C685.7,96,754,160,823,197.3C891.4,235,960,245,1029,218.7C1097.1,192,1166,128,1234,128C1302.9,128,1371,192,1406,224L1440,256L1440,320L1405.7,320C1371.4,320,1303,320,1234,320C1165.7,320,1097,320,1029,320C960,320,891,320,823,320C754.3,320,686,320,617,320C548.6,320,480,320,411,320C342.9,320,274,320,206,320C137.1,320,69,320,34,320L0,320Z"
></path>
</svg>
</section>
<!-- end project -->
<!-- start contact -->
<section id="contact">
<div class="container">
<div class="row text-center text-light mb-4">
<div class="col">
<h4>Berteman Yuk!!</h4>
</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>Terima kasih!</strong> Pesannya!!
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
<form name="fish-pos-subscriber">
<div class="mb-3">
<label for="name" class="form-label text-light">Nama Kamu</label>
<input type="text" class="form-control" aria-describedby="name" name="nama" />
</div>
<div class="mb-3">
<label for="exampleInputEmail1" class="form-label text-light">Email kamu</label>
<input type="email" class="form-control" aria-describedby="email" name="email" />
<div id="emailHelp" class="form-text text-light">*Kosongi aja kalau ragu, Atau gunakan email: [[email protected]]:D</div>
</div>
<div class="mb-3">
<label for="pesan" class="form-label text-light">Pesan kamu</label>
<textarea class="form-control" id="pesan" rows="3" name="pesan"></textarea>
</div>
<button type="submit" class="btn btn-warning btn-kirim">Kirim!!</button>
<button class="btn btn-warning btn-loading d-none" type="button" disabled>
<span class="spinner-grow spinner-grow-sm" role="status" aria-hidden="true"></span>
Sedang mengirim pesan...
</button>
</form>
</div>
</div>
</div>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320">
<path
fill="#ffc107"
fill-opacity="1"
d="M0,224L34.3,229.3C68.6,235,137,245,206,218.7C274.3,192,343,128,411,90.7C480,53,549,43,617,69.3C685.7,96,754,160,823,197.3C891.4,235,960,245,1029,218.7C1097.1,192,1166,128,1234,128C1302.9,128,1371,192,1406,224L1440,256L1440,320L1405.7,320C1371.4,320,1303,320,1234,320C1165.7,320,1097,320,1029,320C960,320,891,320,823,320C754.3,320,686,320,617,320C548.6,320,480,320,411,320C342.9,320,274,320,206,320C137.1,320,69,320,34,320L0,320Z"
></path>
</svg>
</section>
<!-- end contact -->
<!-- footer -->
<footer class="bg-warning text-center p-5">
<p>Dibuat dengan <i class="bi bi-balloon-heart-fill text-danger"></i> oleh <a href="https://www.instagram.com/ar.tlieneta._/" class="text-dark fw-bold">Athallah:3</a></p>
</footer>
<!-- end footer -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
<script>
const scriptURL = "https://script.google.com/macros/s/AKfycbxWU8ctZxA3S9Coz-Ielj0IaH5tQx3BcOHYJ8sziqnqk0quaYN5rONGQV0_YePYQ_8c/exec";
const form = document.forms["fish-pos-subscriber"];
const btnKirim = document.querySelector(".btn-kirim");
const btnLoading = document.querySelector(".btn-loading");
const myAlert = document.querySelector(".my-alert");
form.addEventListener("submit", (e) => {
e.preventDefault();
//when submit button has clicked
//show loading button, remove send buttton
btnLoading.classList.toggle("d-none");
btnKirim.classList.toggle("d-none");
fetch(scriptURL, { method: "POST", body: new FormData(form) })
.then((response) => {
//show send button, remove loading buttton
btnLoading.classList.toggle("d-none");
btnKirim.classList.toggle("d-none");
//show alert
myAlert.classList.toggle("d-none");
//form reset
form.reset();
console.log("Success!", response);
})
.catch((error) => console.error("Error!", error.message));
});
</script>
</body>
</html>