-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
261 lines (247 loc) · 9.92 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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- 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/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC"
crossorigin="anonymous"
/>
<!-- Boorstrap Icons -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css" />
<!-- My CSS -->
<link rel="stylesheet" href="./css/style.css" />
<title>My Portofolio | Promecarus</title>
</head>
<body id="home">
<!-- Navbar -->
<nav class="navbar navbar-expand-lg navbar-dark bg-dark shadow-sm fixed-top">
<div class="container">
<a class="navbar-brand" href="#">Promecarus</a>
<button
class="navbar-toggler"
type="button"
data-bs-toggle="collapse"
data-bs-target="#navbarNavAltMarkup"
aria-controls="navbarNavAltMarkup"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNavAltMarkup">
<div class="navbar-nav ms-auto">
<a class="nav-link active" aria-current="page" href="#home">Home</a>
<a class="nav-link" href="#about">About</a>
<a class="nav-link" href="#projects">Projects</a>
<a class="nav-link" href="#contact">Contact</a>
</div>
</div>
</div>
</nav>
<!-- Jumbotron -->
<section class="jumbotron text-center">
<a href="https://youtu.be/dQw4w9WgXcQ" target="_blank"><img src="img/profile/profilePictureAKA2.png" alt="Foto Alias Promecarus" width="200" class="img-thumbnail" /></a>
<h1 class="display-4">Promecarus</h1>
<p class="lead">Licensed Dragon Rider | King Bug <i class="bi bi-bug-fill text-success"></i></p>
<img src="svg/waveWhite.svg" alt="waveWhite" />
</section>
<!-- About -->
<section id="about">
<div class="container">
<div class="row text-center mb-3">
<div class="col">
<h2>About Me</h2>
</div>
</div>
<div class="row justify-content-center fs-5 text-center">
<div class="col-md-4">
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Expedita excepturi eligendi neque, optio nemo in necessitatibus accusamus porro cupiditate itaque, consequuntur
delectus, quam consectetur. Nulla quo aperiam necessitatibus. Culpa, ullam?
</p>
</div>
<div class="col-md-4">
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Expedita excepturi eligendi neque, optio nemo in necessitatibus accusamus porro cupiditate itaque, consequuntur
delectus, quam consectetur. Nulla quo aperiam necessitatibus. Culpa, ullam?
</p>
</div>
</div>
</div>
<img src="svg/waveGray.svg" alt="waveGray" />
</section>
<!-- Project -->
<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">
<img src="img/projects/1.jpg" class="card-img-top" alt="Project 1" />
<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>
<p>
Photo by
<a target="_blank" href="https://unsplash.com/@sven_pieren?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText" class="fw-bold text-black-50"
>Sven Pieren</a
><br />on
<a
target="_blank"
href="https://unsplash.com/s/visual/459451e1-a54e-4760-adc6-e7fad8023303?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText"
class="fw-bold text-black-50"
>Unsplash</a
>
</p>
</div>
</div>
</div>
<div class="col-md-4 mb-3">
<div class="card">
<img src="img/projects/2.jpg" class="card-img-top" alt="Project 2" />
<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>
<p>
Photo by
<a target="_blank" href="https://unsplash.com/@ferdinand8a?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText" class="fw-bold text-black-50"
>Florian Schönbrunner</a
><br />on
<a
target="_blank"
href="https://unsplash.com/s/visual/778d481f-d3f5-43e5-adec-04e91620eae2?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText"
class="fw-bold text-black-50"
>Unsplash</a
>
</p>
</div>
</div>
</div>
<div class="col-md-4 mb-3">
<div class="card">
<img src="img/projects/3.jpg" class="card-img-top" alt="Project 3" />
<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>
<p>
Photo by
<a target="_blank" href="https://unsplash.com/@pinaljain1993?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText" class="fw-bold text-black-50"
>Pinal Jain</a
><br />on
<a
target="_blank"
href="https://unsplash.com/s/visual/1bc1c840-c880-40e1-8eb4-554d28ba1acc?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText"
class="fw-bold text-black-50"
>Unsplash</a
>
</p>
</div>
</div>
</div>
<!-- <div class="col-md-4 mb-3">
<div class="card">
<img src="img/projects/4.jpg" class="card-img-top" alt="Project 4" />
<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">
<img src="img/projects/5.jpg" class="card-img-top" alt="Project 5" />
<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>
<img src="svg/waveWhite.svg" alt="waveWhite" />
</section>
<!-- 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-dark alert-dismissible fade show d-none my-alert" role="alert">
<strong>Thank you!</strong> Your message has been received.
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
<form name="promecarus-contact-form">
<div class="mb-3">
<label for="name" class="form-label">Name</label>
<input type="text" class="form-control" id="name" aria-describedby="name" name="name" required />
</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="message" class="form-label">Message</label>
<textarea class="form-control" id="message" rows="3" name="message" required></textarea>
</div>
<button type="submit" class="btn btn-dark btn-send">Send</button>
<button class="btn btn-dark btn-loading d-none" type="button" disabled>
<span class="spinner-border spinner-border-sm" role="status" aria-hidden="true"></span>Loading...
</button>
<a href="https://docs.google.com/spreadsheets/d/1WQ_dB6KY7fa_v2wbnOAhC6EMQampU48uLJC-TGzmJiA/edit?usp=sharing" target="_blank">
<button type="button" class="btn btn-outline-secondary" id="viewInput">View Input</button>
</a>
</form>
</div>
</div>
</div>
<img src="svg/waveBlack.svg" alt="waveBlack" />
</section>
<!-- Footer -->
<footer class="bg-dark text-white text-center pb-5">
<p>Created With <i class="bi bi-heart-fill text-danger"></i> By <a href="#" class="text-white fw-bold" target="_blank">Promecarus</a></p>
</footer>
<!-- Script -->
<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/AKfycbwNT-BksOLpOI9TEFj9sDx0_CsnpKlYOxkNQDdJZ80ZfnMtAnuk3TQqlIXBgByXdPg/exec";
const form = document.forms["promecarus-contact-form"];
const btnSend = document.querySelector(".btn-send");
const btnLoading = document.querySelector(".btn-loading");
const myAlert = document.querySelector(".my-alert");
form.addEventListener("submit", (e) => {
e.preventDefault();
// pas tombol send diklik
//tampilin tombol loading, ilangin tombol kirim
btnLoading.classList.toggle("d-none");
btnSend.classList.toggle("d-none");
fetch(scriptURL, {
method: "POST",
body: new FormData(form),
})
.then((response) => {
//tampilin tombol send, ilangin tombol loading
btnLoading.classList.toggle("d-none");
btnSend.classList.toggle("d-none");
//tampilin alert
myAlert.classList.toggle("d-none");
//reset formnya
form.reset();
console.log("Success!", response);
})
.catch((error) => console.error("Error!", error.message));
});
</script>
</body>
</html>