-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
419 lines (372 loc) · 16.4 KB
/
index.html
File metadata and controls
419 lines (372 loc) · 16.4 KB
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
407
408
409
410
411
412
413
414
415
416
417
418
419
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Martin Potozki Portfolio</title>
<meta name="description" content="Martin Potozki's personal website showcasing software development projects including .NET, React with TypeScript, AR/VR applications, and AI models.">
<meta name="keywords" content="Martin Potozki, software developer, frontend, backend, .NET, React, TypeScript, AR, VR, AI, Python, microcontrollers, threejs">
<meta name="author" content="Martin Potozki">
<meta property="og:title" content="Martin Potozki - Software Developer Portfolio">
<meta property="og:description" content="Explore the software development projects of Martin Potozki.">
<meta property="og:type" content="website">
<meta property="og:url" content="https://maeinomatic.github.io">
<link href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-SBC3Z390PW"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-SBC3Z390PW');
</script>
<style>
body {
background-color: #1a1a2e;
color: #fff;
margin: 0;
overflow-x: hidden;
}
header,
footer {
position: relative;
}
#showcase {
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
}
.btn-custom {
background-color: rgba(30, 30, 30, 0.6);
backdrop-filter: blur(4px);
}
.btn-custom:hover {
background-color: rgba(40, 40, 40, 0.9);
backdrop-filter: blur(4px);
}
.card {
background-color: rgba(22, 33, 62, 0.6);
backdrop-filter: blur(4px);
}
.card-title,
.card-action a {
color: #e94560;
}
canvas {
position: fixed;
top: 0;
left: 0;
z-index: -1;
}
.nav-wrapper {
height: 60px;
width: 100%;
display: flex;
align-items: center;
position: relative;
background-color: rgba(0, 0, 0, 0.1);
// backdrop-filter: blur(10px);
z-index: 0;
}
.page-footer {
height: 100px;
width: 100%;
display: flex;
align-items: center;
position: relative;
background-color: rgba(0, 0, 0, 0.1);
// backdrop-filter: blur(10px);
z-index: 0;
}
.container>* {
position: relative;
z-index: 1;
}
#aurora-nav,
#aurora-footer {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
}
</style>
</head>
<body>
<header>
<nav class="nav-wrapper">
<canvas id="aurora-nav" class="aurora-canvas"></canvas>
<div class="container">
<a href="#" class="brand-logo">Martin Potozki</a>
<ul id="nav-mobile" class="right hide-on-med-and-down">
<li><a href="#projects">Projects</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</div>
</nav>
</header>
<section id="showcase" class="valign-wrapper">
<div class="container">
<h1>Welcome to my Webpage</h1>
<p>I'm a Fullstack Software Developer specializing in .NET and React with TypeScript. I have also been working on small AR and VR applications for the Oculus Quest, as well as experimenting with AI models, Python and microcontrollers.</p>
<a href="#projects" class="btn btn-large btn-custom">See My Work</a>
<a id="warpButton" href="#" class="btn btn-large btn-custom">Warp</a>
</div>
</section>
<section id="projects" class="section">
<div class="container">
<h2 class="center-align">Projects</h2>
<div class="row">
<div class="col s12 m6">
<div class="card">
<div class="card-content">
<span class="card-title">ESP8266 Sensor Webserver</span>
<p>Server on an ESP8266 microcontroller to display recent temperature and humidity values</p>
</div>
<div class="card-action">
<a href="https://github.com/maeinomatic/MicroPython_ESP8266_Webserver">GitHub Repository</a>
</div>
</div>
</div>
<div class="col s12 m6">
<div class="card">
<div class="card-content">
<span class="card-title">Sim Racing Shifter</span>
<p>Code for Arduino Pro Micro to act as a USB shifter for sim racing games
</p>
<br>
</div>
<div class="card-action">
<a href="https://github.com/maeinomatic/Sim-Racing-Arduino-Shifter">GitHub Repository</a>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col s12 m6">
<div class="card">
<div class="card-content">
<span class="card-title">openAI Speech-To-Text</span>
<p>A console based speech-to-text application using OpenAI (when gpt4 just came out)</p>
</div>
<div class="card-action">
<a href="https://github.com/maeinomatic/openAiSpeechToText">GitHub Repository</a>
</div>
</div>
</div>
<div class="col s12 m6">
<div class="card">
<div class="card-content">
<span class="card-title">Next </span>
<p>more coming soon....</p>
</div>
<div class="card-action">
<br>
</div>
</div>
</div>
</div>
</div>
</section>
<footer id="contact" class="page-footer">
<canvas id="aurora-footer" class="aurora-canvas"></canvas>
<div class="container">
<div class="row">
<div class="col s12">
<p class="center-align">
Connect with me on
<i class="fab fa-github"></i>
<a href="https://github.com/maeinomatic" target="_blank">GitHub</a>
and
<i class="fab fa-linkedin"></i>
<a href="https://www.linkedin.com/in/martin-potozki-400319125/" target="_blank">LinkedIn</a>
</p>
</div>
</div>
</div>
</footer>
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
<script>
let scene, camera, renderer, stars, starGeo;
let warpActive = false;
let warpSpeed = 0;
const initialZ = 1; // Initial Z position
const warpDistance = 500; // Distance to move during warp
const starFieldSize = 600;
function init() {
scene = new THREE.Scene();
camera = new THREE.PerspectiveCamera(60, window.innerWidth / window.innerHeight, 1, 1000);
camera.position.z = initialZ;
renderer = new THREE.WebGLRenderer();
renderer.setSize(window.innerWidth, window.innerHeight);
document.body.appendChild(renderer.domElement);
starGeo = new THREE.BufferGeometry();
let vertices = [];
let sizes = [];
for (let i = 0; i < 6000; i++) {
let x = Math.random() * starFieldSize - starFieldSize / 2;
let y = Math.random() * starFieldSize - starFieldSize / 2;
let z = Math.random() * starFieldSize - starFieldSize / 2;
vertices.push(x, y, z);
sizes.push(Math.random() * 2 + 5.9); // Adjusted sizes to solve flickering
}
starGeo.setAttribute('position', new THREE.Float32BufferAttribute(vertices, 3));
starGeo.setAttribute('size', new THREE.Float32BufferAttribute(sizes, 1));
const starMaterial = new THREE.ShaderMaterial({
uniforms: {
color: { value: new THREE.Color(0xffffff) }
},
vertexShader: `
attribute float size;
varying float vOpacity;
void main() {
vOpacity = size / 3.0;
vec4 mvPosition = modelViewMatrix * vec4(position, 1.0);
gl_PointSize = size * (50.0 / -mvPosition.z); // Original size scaling
gl_Position = projectionMatrix * mvPosition;
}
`,
fragmentShader: `
uniform vec3 color;
varying float vOpacity;
void main() {
vec2 uv = gl_PointCoord.xy - 0.5;
float alpha = smoothstep(0.15, 0.45, 0.5 - length(uv)) * 0.8;
gl_FragColor = vec4( color, alpha * vOpacity);
}
`,
transparent: true
});
stars = new THREE.Points(starGeo, starMaterial);
scene.add(stars);
window.addEventListener('resize', onWindowResize, false);
document.addEventListener('scroll', onScroll, false);
const warpButton = document.getElementById('warpButton');
warpButton.addEventListener('click', startWarp);
animate();
}
function onWindowResize() {
camera.aspect = window.innerWidth / window.innerHeight;
camera.updateProjectionMatrix();
renderer.setSize(window.innerWidth, window.innerHeight);
}
function onScroll() {
if (!warpActive) {
let scrollY = window.scrollY;
camera.position.y = -scrollY * 0.01; // Adjust the speed by changing the multiplier
}
}
function animate() {
// Update camera position during warp
if (warpActive) {
camera.position.z -= warpSpeed;
warpSpeed *= 1.05; // Increase speed for acceleration effect
if (warpSpeed > 100) warpSpeed = 100; // Limit the speed to avoid too fast movement
// Deactivate warp when target position is reached
if (camera.position.z <= initialZ - warpDistance) {
warpActive = false;
camera.position.z = initialZ; // Reset camera position for next warp
}
}
// Continuously reposition stars
const positions = starGeo.attributes.position.array;
for (let i = 0; i < positions.length; i += 3) {
if (positions[i + 2] > camera.position.z + starFieldSize / 2) {
// Reposition stars that are far behind the camera
positions[i + 2] -= starFieldSize;
positions[i] = Math.random() * starFieldSize - starFieldSize / 2;
positions[i + 1] = Math.random() * starFieldSize - starFieldSize / 2;
} else if (positions[i + 2] < camera.position.z - starFieldSize / 2) {
// Reposition stars that are far in front of the camera
positions[i + 2] += starFieldSize;
positions[i] = Math.random() * starFieldSize - starFieldSize / 2;
positions[i + 1] = Math.random() * starFieldSize - starFieldSize / 2;
}
}
starGeo.attributes.position.needsUpdate = true;
renderer.render(scene, camera);
requestAnimationFrame(animate);
}
function startWarp() {
if (warpActive) return; // Prevent multiple activations
warpActive = true;
warpSpeed = 0.5; // Initial speed for warp
// Defocus the warp button
document.getElementById('warpButton').blur();
}
init();
// Aurora effect functions
function createAurora(canvasId, height) {
let auroraScene, auroraCamera, auroraRenderer, auroraMaterial, auroraMesh;
function auroraInit() {
const canvas = document.getElementById(canvasId);
auroraScene = new THREE.Scene();
auroraCamera = new THREE.OrthographicCamera(-window.innerWidth / 2, window.innerWidth / 2, height / 2, -height / 2, 0.1, 1000);
auroraCamera.position.z = 1;
auroraRenderer = new THREE.WebGLRenderer({
canvas: canvas,
alpha: true
});
auroraRenderer.setSize(window.innerWidth, height);
const auroraGeometry = new THREE.PlaneGeometry(window.innerWidth, height);
auroraMaterial = new THREE.ShaderMaterial({
uniforms: {
time: { value: 1.0 },
resolution: { value: new THREE.Vector2(window.innerWidth, height) }
},
vertexShader: `varying vec2 vUv;
void main() {
vUv = uv;
gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
}`,
fragmentShader: `
uniform float time;
uniform vec2 resolution;
varying vec2 vUv;
float random(in vec2 st) {
return fract(sin(dot(st.xy, vec2(12.9898, 78.233))) * 43758.5453123);
}
float noise(in vec2 st) {
vec2 i = floor(st);
vec2 f = fract(st);
float a = random(i);
float b = random(i + vec2(1.0, 0.0));
float c = random(i + vec2(0.0, 1.0));
float d = random(i + vec2(1.0, 1.0));
vec2 u = f * f * (3.0 - 2.0 * f);
return mix(a, b, u.x) +
(c - a) * u.y * (1.0 - u.x) +
(d - b) * u.x * u.y;
}
void main() {
vec2 st = vUv * vec2(6.0, 1.0);
float offset = noise(st + vec2(time * 0.1, 0.0));
vec3 color = vec3(
0.0 + (0.6 * sin(3.0 * st.y + time + offset * 2.0)),
0.3 + (0.7 * sin(3.0 * st.y + time + offset * 4.0)),
0.0 + (0.6 * sin(3.0 * st.y + time + offset * 6.0)));
float alpha = 0.4 * smoothstep(0.1, 0.3, st.y) * smoothstep(0.9, 0.7, st.y);
gl_FragColor = vec4(color, alpha);
}`,
transparent: true
});
auroraMesh = new THREE.Mesh(auroraGeometry, auroraMaterial);
auroraScene.add(auroraMesh);
animateAurora();
}
function animateAurora() {
auroraMaterial.uniforms.time.value += 0.01;
auroraRenderer.render(auroraScene, auroraCamera);
requestAnimationFrame(animateAurora);
}
auroraInit();
}
createAurora('aurora-nav', 60);
createAurora('aurora-footer', 100);
</script>
</body>
</html>