-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
269 lines (269 loc) · 12.2 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
<!DOCTYPE html>
<html>
<head>
<title>Portfolio pamphlet</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Archivo+Black&family=Black+Ops+One&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="style/main.css" />
<link rel="stylesheet" href="style/pamphlet.css" />
<link rel="stylesheet" href="style/shadows.css" />
<link rel="stylesheet" href="style/scrollbar.css" />
<link rel="stylesheet" href="style/content.css" />
<link rel="stylesheet" href="style/textures.css" />
<link rel="stylesheet" href="style/mobile.css" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta charset="UTF-8" />
<meta name="description" content="Portfolio with 3d pamphlet layout" />
<meta name="keywords" content="portfolio, pamphlet, 3d, layout" />
<meta name="author" content="Jakub Niechaj" />
</head>
<body>
<div class="pamphlet-container" tabindex="0">
<div class="column c1 fold-left">
<div class="column c2 fold-right">
<div class="column c3 fold-left">
<div class="column-inner cover">
<div class="column-content" tabindex="1">
<h1 class="title" text="Jakub Niechaj">
Jakub Niechaj
</h1>
<h2 class="subtitle" text="Frontend Developer">
Frontend Developer
</h2>
</div>
</div>
</div>
<div class="column-inner">
<div
class="column-content green-marker"
tabindex="2"
onscroll="updateMarkerPosition(this, 'green')"
>
<div
class="mobile-navigation"
tabindex="8"
onclick="navigateTo(2)"
></div>
<div class="content-list">
<h3 class="content-list-title">Projects</h3>
<a
class="project-link"
href="https://derstilon.github.io/chicken-from-atari/"
target="_blank"
tabindex="3"
>
<img
src="img/chickenFromAtari.jpg"
alt="Chicken from Atari"
/>
</a>
<a
class="project-link"
href="https://yaptide.github.io/web_dev/"
target="_blank"
tabindex="4"
>
<img
src="img/yaptideEditor.jpg"
alt="Yaptide Editor"
/>
</a>
<a
class="project-link"
href="https://derstilon.github.io/Bob/"
target="_blank"
tabindex="5"
>
<img
src="img/bobBuilder.jpg"
alt="Bob Builder"
/>
</a>
<a
class="project-link"
href="https://derstilon.github.io/Dratewka/"
target="_blank"
tabindex="6"
>
<img
src="img/dratewkaTheShoemaker.png"
alt="Dratewka the ShoeMaker"
/>
</a>
<a
class="project-link"
href="https://derstilon.github.io/Zuzel/"
target="_blank"
tabindex="7"
>
<img
src="img/zuzel.jpg"
alt="Żużel (speedway)"
/>
</a>
</div>
</div>
</div>
</div>
<div class="column-inner">
<div class="column-content" tabindex="9">
<div
class="mobile-navigation"
tabindex="14"
onclick="navigateTo(3)"
></div>
<div class="content-list">
<h3 class="content-list-title">Languages</h3>
<a class="project-link" tabindex="10">
<img
src="img/javascript.jpg"
alt="JavaScript"
/>
</a>
<a class="project-link" tabindex="11">
<img
src="img/typescript.jpg"
alt="Typescript"
/>
</a>
<a class="project-link" tabindex="12">
<img
src="img/htmlcss2.jpg"
alt="HTML and CSS"
/>
</a>
<a class="project-link" tabindex="13">
<img src="img/python.png" alt="Python" />
</a>
</div>
</div>
</div>
</div>
<div class="column c4 fold-right">
<div class="column-inner">
<div
class="column-content red-marker"
tabindex="15"
onscroll="updateMarkerPosition(this, 'red')"
>
<div
class="mobile-navigation"
onclick="navigateTo(4)"
tabindex="22"
></div>
<div class="content-list">
<h3 class="content-list-title">Technologies</h3>
<a class="project-link" tabindex="16">
<img src="img/docker.jpg" alt="Docker" />
</a>
<a class="project-link" tabindex="17">
<img src="img/git.jpg" alt="Git" />
</a>
<a class="project-link" tabindex="18">
<img src="img/node.jpg" alt="NodeJS" />
</a>
<a class="project-link" tabindex="19">
<img src="img/react.jpg" alt="ReactJS" />
</a>
<a class="project-link" tabindex="20">
<img src="img/sass.jpg" alt="Sass" />
</a>
<a class="project-link" tabindex="21">
<img
src="img/slurm.jpg"
alt="Slurm job scheduling"
/>
</a>
</div>
</div>
</div>
<div class="column c5 fold-left">
<div class="column-inner">
<div class="column-content" tabindex="23">
<div
class="mobile-navigation"
tabindex="26"
onclick="returnNavigation(this)"
></div>
<div class="content-list">
<h3 class="content-list-title">
Currently learning
</h3>
<a class="project-link" tabindex="24">
<img src="img/wasm.jpg" alt="WebAssembly" />
</a>
<a class="project-link" tabindex="25">
<img
src="img/godot.png"
alt="GodotEngine"
/>
</a>
</div>
</div>
</div>
<div class="column c6 fold-right">
<div class="column-inner cover empty"></div>
</div>
</div>
</div>
</div>
<script>
function updateMarkerPosition(element, markerName = "red") {
var isFirefox = typeof InstallTrigger !== "undefined";
if (isFirefox)
return document.documentElement.style.setProperty(
`--marker-padding`,
`0`,
);
const scrollPosition = element.scrollTop;
const markerPosition =
(scrollPosition / element.scrollHeight) * 100;
document.documentElement.style.setProperty(
`--${markerName}-marker-position`,
`${markerPosition}`,
);
}
function disableShadows() {
var isFirefox = typeof InstallTrigger !== "undefined";
if (isFirefox) return;
document.documentElement.style.setProperty(
"--display-shadows",
"none",
);
}
function navigateTo(idx) {
document.documentElement.style.setProperty(
"--mobile-pamphlet-column-focus",
idx,
);
}
function returnNavigation(element) {
navigateTo(1);
element.blur();
}
updateMarkerPosition(
document.getElementsByClassName("red-marker")[0],
"red",
);
updateMarkerPosition(
document.getElementsByClassName("green-marker")[0],
"green",
);
disableShadows();
document.body.addEventListener("touchstart", function (e) {
e.preventDefault();
});
document.body.addEventListener("keydown", function (e) {
const keycode = e.keyCode ? e.keyCode : e.which;
if (keycode === 13) document.activeElement.click();
});
window.onbeforeunload = function () {
window.scrollTo(0, 0);
};
</script>
</body>
</html>