-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
280 lines (246 loc) · 12.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
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
<!DOCTYPE html>
<html lang="nl-NL">
<head>
<title>Jasper Platenburg</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="Jasper Platenburg">
<meta name="description" content="Software developer in opleiding">
<meta name="keywords" content="jasper, platenburg, kw1c, software developer">
<meta charset="UTF-8">
<meta property="og:title" content="Jasper Platenburg">
<meta property="og:description" content="Software developer in opleiding">
<meta property="og:image" content="https://jasperplatenburg.nl/assets/images/headshot.png">
<meta property="og:type" content="website">
<meta property="og:locale" content="nl_NL">
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.min.css">
</head>
<body>
<div class="container-fluid vh-100">
<div class="row vh-100 mh-100">
<div id="sidebar" class="col-12 col-md-3 bg-dark text-white sticky-top h-100">
<div class="container pt-3">
<div class="text-center">
<img alt="Foto van gezicht" src="assets/images/headshot.png" class="headshot mt-4 mt-md-3">
<h1 class="fw-bold mt-4">Jasper Platenburg</h1>
<span class="fs-5">Student Software Developer</span>
</div>
<div class="px-2 mt-5 m-auto">
<ul class="list-unstyled fs-5">
<li>
<i class="bi bi-cake2"></i> april 2005 (<span id="age"></span>)
</li>
<li>
<i class="bi bi-house"></i> Nijmegen, Nederland
</li>
<li>
<i class="bi bi-envelope-at"></i>
<a href="mailto:[email protected]" class="link-light text-decoration-none">
</a>
</li>
<li>
<i class="bi bi-telephone"></i>
<a href="tel:+31623348023" class="link-light text-decoration-none">
+31 6 23 34 80 23
</a>
</li>
<li class="mt-4">
<i class="bi bi-github"></i>
<a href="https://github.com/jxpsert" class="link-light text-decoration-none"
target="_blank">
GitHub
</a>
</li>
<li>
<i class="bi bi-linkedin"></i>
<a href="https://linkedin.com/in/jasper-platenburg"
class="link-light text-decoration-none" target="_blank">
LinkedIn
</a>
</li>
<!--
<li>
<i class="bi bi-newspaper"></i>
<a href="https://blog.ptdk.nl" class="link-light text-decoration-none" target="_blank">
Blog
</a>
</li>
-->
</ul>
<div class="text-center d-md-none">
<small><a href="#content">meer</a></small><br>
<i class="bi bi-arrow-down"></i>
</div>
</div>
</div>
</div>
<div id="content" class="col-12 col-md-9 ms-auto bg-white">
<div class="container py-5">
<div class="row row-cols-1 row-cols-md-2 mb-2">
<div class="col">
<section id="work-experience">
<h2>Werkervaring</h2>
<ul id="jobsList" class="list-unstyled timeline">
</ul>
</section>
</div>
<div class="col">
<section id="education">
<h2>Opleiding</h2>
<ul id="educationList" class="list-unstyled timeline">
</ul>
</section>
</div>
</div>
<section id="projects">
<h2>Projecten</h2>
<div class="row row-cols-1 row-cols-md-3 g-3 ps-md-4" id="projectsContainer">
</div>
</section>
</div>
</div>
</div>
</div>
<script>
const projectsContainer = document.getElementById("projectsContainer");
fetch("projects.json")
.then(response => response.json())
.then(data => {
data.projects.sort(() => Math.random() - 0.5); // diversity
data.projects.forEach(project => {
const projectCard = document.createElement("div");
projectCard.classList.add("col");
let html = "";
html += `<div class="experience-card">`;
html += `<span class="fs-4 fw-bold">${project.title}</span>`;
if (project.subtitle)
html += ` <span class="text-muted fs-6">${project.subtitle}</span>`;
html += `<a href="./project.html?id=${project.id}">`;
html += `<img class="img-fluid project-image mb-2" src="${project.image}" />`;
html += `</a>`;
if (project.github)
html += `<a href="${project.github}" class="link-dark link-underline-opacity-0 link-underline-opacity-75-hover" target="_blank"><i class="bi bi-github"></i> GitHub</a>`;
if (project.url && project.github)
html += ` · `;
if (project.url)
html += `<a href="${project.url}" class="link-dark link-underline-opacity-0 link-underline-opacity-75-hover" target="_blank"><i class="bi bi-globe"></i> Website</a>`;
html += `</div>`;
projectCard.innerHTML = html;
projectsContainer.appendChild(projectCard);
});
});
</script>
<script>
const jobsList = document.getElementById("jobsList");
fetch('jobs.json')
.then(response => response.json())
.then(data => {
data.jobs.forEach(job => {
const jobCard = document.createElement("li");
jobCard.classList.add("timeline-point");
if (job.end == null)
jobCard.classList.add("current");
let html = "";
html += `<span>${job.start} - ${job.end ? job.end : "nu"}</span>`;
html += `<div class="experience-card">`;
html += `<div class="row">`;
html += `<div class="col-12 col-md-2 my-auto">`;
if (job.company_url)
html += `<a href="${job.company_url}" target="_blank" class="image-link" title="naar ${job.company}">`;
html += `<img alt="Bedrijfslogo" src="${job.company_logo}" class="experience-card-logo" />`;
if (job.company_url)
html += `</a>`;
html += `</div>`;
html += `<div class="col">`;
html += `<span class="fs-4 fw-bold">${job.title}</span><br />`;
html += `<span class="fs-6">${job.company} · ${job.city}, ${job.country}</span>`;
html += `<ul class="horizontal fst-italic skills-list">`;
job.skills.forEach(skill => {
html += `<li>${skill}</li>`;
});
html += `</ul>`;
html += `</div>`;
html += `</div>`;
if (job.description) {
html += `<div id="description-job-${job.id}" class="description ms-0 ps-0 ms-md-5 ps-md-5">`;
html += `<span onclick="toggleDescription('description-job-${job.id}')">Meer informatie <i class="bi bi-chevron-down"></i></span>`;
html += `<p>${job.description}</p>`;
html += `</div>`;
}
html += `</div>`;
jobCard.innerHTML = html;
jobsList.append(jobCard);
});
});
</script>
<script>
const educationList = document.getElementById("educationList");
fetch('education.json')
.then(response => response.json())
.then(data => {
data.education.forEach(education => {
const educationCard = document.createElement("li");
educationCard.classList.add("timeline-point");
if (education.end == null)
educationCard.classList.add("current");
let html = "";
html += `<span>${education.start} - ${education.end ? education.end : "nu"}</span>`;
html += `<div class="experience-card">`;
html += `<div class="row">`;
html += `<div class="col-12 col-md-2 my-auto">`;
if (education.school_url)
html += `<a href="${education.school_url}" target="_blank" class="image-link" title="naar ${education.school}">`;
html += `<img alt="Bedrijfslogo" src="${education.school_logo}" class="experience-card-logo" />`;
if (education.school_url)
html += `</a>`;
html += `</div>`;
html += `<div class="col">`;
html += `<span class="fs-4 fw-bold">${education.degree} ${education.title}</span><br />`;
html += `<span class="fs-6">${education.school} · ${education.city}, ${education.country}</span>`;
html += `<ul class="horizontal fst-italic skills-list">`;
education.skills.forEach(skill => {
html += `<li>${skill}</li>`;
});
html += `</ul>`;
html += `</div>`;
html += `</div>`;
if (education.description) {
html += `<div id="description-edu-${education.id}" class="description ms-0 ps-0 ms-md-5 ps-md-5">`;
html += `<span onclick="toggleDescription('description-edu-${education.id}')">Meer informatie <i class="bi bi-chevron-down"></i></span>`;
html += `<p>${education.description}</p>`;
html += `</div>`;
}
html += `</div>`;
educationCard.innerHTML = html;
educationList.append(educationCard);
});
});
</script>
<script>
const toggleDescription = (id) => {
const descriptions = document.querySelectorAll(".description");
descriptions.forEach(description => {
if (description.id !== id) {
description.classList.remove("expanded");
}
});
const description = document.getElementById(id);
description.classList.toggle("expanded");
};
</script>
<script>
const age = document.getElementById("age");
const birthdate = new Date(2005, 3, 18); // April 18, 2005 (month is 3 because months are 0-indexed)
const now = new Date();
let ageValue = now.getFullYear() - birthdate.getFullYear();
const monthDiff = now.getMonth() - birthdate.getMonth();
const dayDiff = now.getDate() - birthdate.getDate();
if (monthDiff < 0 || (monthDiff === 0 && dayDiff < 0)) {
ageValue--;
}
age.innerHTML = ageValue;
</script>
</body>
</html>