-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
406 lines (356 loc) · 14.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
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
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Chana Portfolio</title>
<link rel="icon" href="/assets/logo/logo.png">
<meta name="description" content="Hi, My name is Chanakarn and I like to build Front-end application. This site will showcase some of my latest work.">
<meta name="keywords" content="Portfolio, Front-end, Front end, Developer, Chanakarn, Chana, Niyornram, Web">
<link rel="manifest" href="/manifest.json">
<meta name="theme-color" content="#0f1627">
<style>
@font-face {
font-family: "Ubuntu";
src: url('../assets/font/Ubuntu/Ubuntu-Regular.ttf') format ('tff');
font-display: swap;
}
:root {
--color-one: #0f1627;
--color-two: #0064b7;
--color-three: #ffe164;
--color-text-light: #f9f9f7;
--color-text-dark: #0d111c;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html,
body {
height: 100%;
scroll-behavior: smooth;
}
body {
background-color: #0d111c;
background-color: var(--color-one);
color: white;
color: var(--color-text-light);
font-family: "Ubuntu", Arial, Helvetica, sans-serif;
}
:focus {
background-color: #ffe164;
background-color: var(--color-three);
color: #0d111c;
color: var(--color-text-dark);
}
a {
color: white;
color: var(--color-text-light);
transition: all 0.4s;
}
a:hover {
background-color: #ffe164;
background-color: var(--color-three);
color: #0d111c;
color: var(--color-text-dark);
}
/***********************************
Index page
***********************************/
/*navigation*/
.index nav {
position: fixed;
top: 0;
left: 0;
z-index: 100;
background-color: #0d111c;
background-color: var(--color-one);
padding: 0 1.4rem;
width: 100%;
}
.index nav ul {
display: flex;
list-style: none;
flex-wrap: wrap;
}
.index nav ul li.logo+li {
margin-left: auto;
}
.index nav ul li {
display: flex;
}
.index nav ul li a {
padding: 1rem;
text-decoration: none;
font-size: 1.2rem;
display: flex;
align-items: center;
}
.logo svg circle {
transform: translate(-50px);
transition: transform 0.2s ease-out;
}
.index nav ul .logo a {
display: flex;
}
.index nav ul .logo a:hover {
background-color: transparent;
}
.index nav ul .logo a:hover svg circle,
.index nav ul .logo a:focus svg circle {
transform: translateX(0);
}
.index nav ul .logo svg {
height: 2rem;
}
/*header*/
.index header {
padding: 1rem 1.4rem;
padding-top: 5rem;
height: 100%;
position: relative;
display: flex;
flex-direction: column;
perspective: 400px;
overflow: hidden;
}
@media screen and (min-width: 42em) {
.index header {
display: grid;
grid-template-areas: "hello empty"
"empty-two welcome-text";
grid-template-columns: 50vw;
grid-template-rows: auto 1fr;
padding: 2rem;
}
.index header .welcome-text-container {
grid-area: welcome-text;
}
}
.index header h1 {
font-size: 27vw;
}
@media screen and (min-width: 42em) {
.index header h1 {
font-size: 18vw;
grid-area: hello;
}
}
.index header p {
margin-top: 1rem;
font-size: 2rem;
}
@media screen and (min-width: 60em) {
.index header p {
font-size: 3vw;
}
}
.index header .name {
color: yellow;
color: var(--color-three);
}
.index header .explore-link {
font-size: 2rem;
padding: 1rem;
border: solid 0.2rem var(--color-three);
display: inline-flex;
text-decoration: none;
color: yellow;
color: var(--color-three);
margin-top: 2rem;
transition: background-color 0.2s ease-out;
}
.index header .explore-link:hover,
.index header .explore-link:focus {
background-color: var(--color-three);
color: var(--color-one);
}
.index .decoration {
z-index: -1;
width: 70vw;
height: 70vh;
background-color: var(--color-two);
position: absolute;
justify-self: center;
align-self: center;
border-radius: 0.2rem;
}
@media screen and (min-width: 42em) {
.index .decoration {
width: 60vh;
height: 75vh;
}
}
</style>
<link rel="preload" href="./stylesheet/style.css" as="style">
<link rel="stylesheet" href="./stylesheet/style.css">
</head>
<body class="index">
<nav class="navigation">
<ul>
<li class="logo"><a href="#">
<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 150 100">
<defs>
<style>
.cls-1 {
fill: #0064b7;
}
.cls-2 {
fill: #ffe164;
}
</style>
</defs>
<title>Home</title>
<rect class="cls-1" width="100" height="100" />
<circle class="cls-2" cx="100" cy="50" r="50" />
</svg>
</a></li>
<li><a href="views/about.html">About</a></li>
<li><a href="views/about.html#contact">Contact</a></li>
</ul>
</nav>
<header>
<h1>Hello,</h1>
<div class="welcome-text-container">
<p>my name is <span class="name">Chanakarn</span> and I like to build fun things for the web.</p>
<p>Explore the site to see some of my work.</p>
<a class="explore-link" href="#projects">Explore work</a>
</div>
<div class="decoration rellax" data-rellax-speed="-10"></div>
</header>
<main id="projects">
<article class="projects-container">
<h1>Projects</h1>
<section class="project-container project-one">
<div class="project-styling-container">
<div class="descriptor">
<h1 class="project-title">Zanadou</h1>
<p class="project-description">Zanadou enriches careers by matching the right people with the right institutions in the cultural sector.</p>
<section class="my-role-container">
<h2 class="my-role-title">Focus of the project</h2>
<ul class="tags">
<li class="tag">Vue.js</li>
<li class="tag">Nuxt.js</li>
<li class="tag">MailChimp API</li>
<li class="tag">Parrallax</li>
</ul>
</section>
</div>
<div class="assets-container">
<video autoplay loop muted playsinline title="A demo of Zanadou digital platform">
<source src="./assets/projects/zanadou/zanadou.webm" type="video/webm">
<source src="./assets/projects/zanadou/zanadou.mp4" type="video/mp4">
</video>
</div>
<ul class="project-links">
<li><a href="https://zanadou.com/" target="_blank" rel="noopener">View site</a></li>
</ul>
</div>
</section>
<section class="project-container project-one">
<div class="project-styling-container">
<div class="descriptor">
<h1 class="project-title">Regionaal Energieloket </h1>
<p class="project-description">The Regionaal Energieloket helps homeowners with all their questions about saving energy and sustainable living.</p>
<section class="my-role-container">
<h2 class="my-role-title">Focus of the project</h2>
<ul class="tags">
<li class="tag">Nuxt.js</li>
<li class="tag">Contentful CMS</li>
</ul>
</section>
</div>
<div class="assets-container">
<video autoplay loop muted playsinline title="A demo of Regionaal Energieloket platform">
<source src="./assets/projects/regionaalenergieloket/regionaalenergieloket.webm" type="video/webm">
<source src="./assets/projects/regionaalenergieloket/regionaalenergieloket.mp4" type="video/mp4">
</video>
</div>
<ul class="project-links">
<li><a href="https://regionaalenergieloket.nl/amsterdam" target="_blank" rel="noopener">View site</a></li>
</ul>
</div>
</section>
<section class="project-container project-one">
<div class="project-styling-container">
<div class="descriptor">
<h1 class="project-title">VughtParticipeert </h1>
<p class="project-description">The Association VughtParticipeert wants to enable all residents of the municipality of Vught and its surroundings to participate in the development of their living environment.</p>
<section class="my-role-container">
<h2 class="my-role-title">Focus of the project</h2>
<ul class="tags">
<li class="tag">Vue.js</li>
<li class="tag">Gridsome</li>
<li class="tag">GraphQL</li>
<li class="tag">Netlify CMS</li>
<li class="tag">JAMstack</li>
</ul>
</section>
</div>
<div class="assets-container">
<video autoplay loop muted playsinline title="A demo of VughtParticipeert website">
<source src="./assets/projects/vught/vught.webm" type="video/webm">
<source src="./assets/projects/vught/vught.mp4" type="video/mp4">
</video>
</div>
<ul class="project-links">
<li><a href="https://www.vughtparticipeert.nl/" target="_blank" rel="noopener">View site</a></li>
<li><a href="https://github.com/VughtParticipeert/vught" target="_blank" rel="noopener">See code</a></li>
</ul>
</div>
</section>
<section class="project-container project-one">
<div class="project-styling-container">
<div class="descriptor">
<h1 class="project-title">Sporator </h1>
<p class="project-description">Sporater helps the user to generate playlist containing their most listened track. </p>
<section class="my-role-container">
<h2 class="my-role-title">Focus of the project</h2>
<ul class="tags">
<li class="tag">Vue.js</li>
<li class="tag">Vuex</li>
<li class="tag">Spotify API</li>
</ul>
</section>
</div>
<div class="assets-container">
<video autoplay loop muted playsinline title="A demo of VughtParticipeert website">
<source src="./assets/projects/sporator/sporator.webm" type="video/webm">
<source src="./assets/projects/sporator/sporator.mp4" type="video/mp4">
</video>
</div>
<ul class="project-links">
<li><a href="https://sporator.netlify.app/" target="_blank" rel="noopener">View site</a></li>
<li><a href="https://github.com/niyorn/Spotify-Playlist-Generator" target="_blank" rel="noopener">See code</a></li>
</ul>
</div>
</section>
</article>
</main>
<footer>
<p>Learn more <a href="/views/about.html">about me</a> or contact me at <a href="mailto:[email protected]">[email protected]</a></p>
</footer>
<!-- <script>
if('serviceWorker' in navigator){
window.addEventListener('load', function () {
navigator.serviceWorker.register('sw.js')
.then(function (registration) {
console.log(`[service worker] succesfully registered`, registration)
})
.catch(function (err) {
console.log(`[service worker] failed installing`, err)
})
})
}
</script> -->
<script src="./node_modules/rellax/rellax.js"></script>
<script>
// Accepts any class name
var rellax = new Rellax('.rellax');
console.log(rellax)
</script>
</body>
</html>