-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
281 lines (237 loc) · 17.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
270
271
272
273
274
275
276
277
278
279
280
281
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="/img/favicon.svg">
<meta name="theme-color" content="#161e19">
<meta charset="utf-8">
<title>Istok</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=Noto+Serif+Display:ital,wght@0,100..900;1,100..900&family=Yeseva+One&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Jura:[email protected]&family=Noto+Serif+Display:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="/main.css">
<meta name="description" content="Програмер из Ликодре."/>
</head>
<body>
<header class='container flex mt-3 mb-1'>
<a href='/' class="flex align-center"><img src='/img/favicon.svg' style="width: 72px; background: none; margin-right: 1rem;"/>
<span class="ml-3 font-bukyVede" style="font-size: 26px; letter-spacing: 1.5px;">Istok</span></a>
</header>
<section class="flex justify-center align-center p-2 text-right" style="width:100%;">
<canvas id="perlin-noise-bg" style="height: 100lvh; width:100%"></canvas>
<div class="container p-2">
<div class="flex flex-wrap-reverse gap-3 align-center">
<section class="grow sm-text-center">
<h1 class="big-text">Welcome, I'm Predrag Nikolic</h1>
<p>React and NodeJS web developer</p>
<p>👋 from Serbia</p>
</section>
<img class="profile_image" src="./img/asd.jpg"></div>
</div>
</div>
</section>
<section class="container p-2">
<h1 class="big-text">Projects</h1>
<div class="video-grid mt-3">
<div style="position: relative; overflow: hidden; grid-column: 1/3;">
<div class="full-width full-height" style="position: absolute; top: 0; background: #e3fff2; z-index: -1;"></div>
<video style="height: 100%; width: 100%; object-fit: cover; filter: hue-rotate(20deg) blur(20px); opacity: 0.5; position: absolute; top: 0; z-index: -1;" src="https://pub-4da9a4732e674df0bf06664b118ecd28.r2.dev/1.mp4" autoplay muted loop></video>
<video style="height: 100%; width: 100%; object-fit: contain; z-index: 2;" src="https://pub-4da9a4732e674df0bf06664b118ecd28.r2.dev/1.mp4" class="sm-object-cover" autoplay muted loop></video>
</div>
<div style="position: relative; overflow: hidden;">
<div class="full-width full-height" style="position: absolute; top: 0; background: #eee; z-index: -1;"></div>
<video style="height: 100%; width: 100%; object-fit: cover; object-position: 0% 0%; z-index: 2;" src="https://pub-4da9a4732e674df0bf06664b118ecd28.r2.dev/8.mp4" autoplay muted loop></video>
</div>
<div style="position: relative; overflow: hidden">
<div class="full-width full-height" style="position: absolute; top: 0; background: #eee; z-index: -1;"></div>
<video style="height: 100%; width: 100%; object-fit: cover;" src="https://pub-4da9a4732e674df0bf06664b118ecd28.r2.dev/6.mp4" autoplay muted loop></video>
</div>
<div style=" position: relative; overflow: hidden; grid-column: 2/3; grid-row: 2/4; position: relative; overflow: hidden">
<div class="full-width full-height" style="position: absolute; top: 0; background: #ffeee3; z-index: -1;"></div>
<video style="height: 100%; width: 100%; object-fit: cover; filter: hue-rotate(20deg) blur(20px); opacity: 0.5; position: absolute; top: 0; z-index: -1;"
autoplay muted loop>
<source src="https://pub-4da9a4732e674df0bf06664b118ecd28.r2.dev/4.mp4" media="only screen and (min-device-width: 1080px)"></source>
<source src="https://pub-4da9a4732e674df0bf06664b118ecd28.r2.dev/4-mobile.mp4" media="only screen and (max-device-width: 1080px)"></source>
</video>
<video style="height: 100%; width: 100%; object-fit: contain; z-index: 2;" autoplay muted loop>
<source src="https://pub-4da9a4732e674df0bf06664b118ecd28.r2.dev/4.mp4" media="only screen and (min-device-width: 1080px)"></source>
<source src="https://pub-4da9a4732e674df0bf06664b118ecd28.r2.dev/4-mobile.mp4" media="only screen and (max-device-width: 1080px)"></source>
</video>
</div>
<div style="position: relative; overflow: hidden">
<div class="full-width full-height" style="position: absolute; top: 0; background: #e4e3ff; z-index: -1;"></div>
<video style="height: 100%; width: 100%; object-fit: cover; filter: hue-rotate(20deg) blur(20px); opacity: 0.5; position: absolute; top: 0; z-index: -1;" src="https://pub-4da9a4732e674df0bf06664b118ecd28.r2.dev/7.mp4" autoplay muted loop></video>
<video style="height: 100%; width: 100%; object-fit: contain;" src="https://pub-4da9a4732e674df0bf06664b118ecd28.r2.dev/7.mp4" autoplay muted loop></video>
</div>
<div style="position: relative; overflow: hidden; grid-row: 3/5;">
<div class="full-width full-height" style="position: absolute; top: 0; background: #e3fff2; z-index: -1;"></div>
<video style="height: 100%; width: 100%; object-fit: cover; filter: hue-rotate(20deg) blur(20px); opacity: 0.5; position: absolute; top: 0; z-index: -1;" src="https://pub-4da9a4732e674df0bf06664b118ecd28.r2.dev/2.mp4" autoplay muted loop></video>
<video style="height: 100%; width: 100%; object-fit: cover;object-position: 40% 50%; z-index: 2;" src="https://pub-4da9a4732e674df0bf06664b118ecd28.r2.dev/2.mp4" autoplay muted loop></video>
</div>
<div style="position: relative; overflow: hidden">
<div class="full-width full-height" style="position: absolute; top: 0; background: #e3fff2; z-index: -1;"></div>
<video style="height: 100%; width: 100%; object-fit: cover; filter: hue-rotate(20deg) blur(20px); opacity: 0.5; position: absolute; top: 0; z-index: -1;" src="https://pub-4da9a4732e674df0bf06664b118ecd28.r2.dev/5.mp4" autoplay muted loop></video>
<video style="height: 100%; width: 100%; object-fit: contain;" src="https://pub-4da9a4732e674df0bf06664b118ecd28.r2.dev/5.mp4" autoplay muted loop></video>
</div>
<div style="position: relative; overflow: hidden; grid-column: 2/4;">
<div class="full-width full-height" style="position: absolute; top: 0; background: #ffe3e3; z-index: -1;"></div>
<video style="height: 100%; width: 100%; object-fit: cover; filter: hue-rotate(20deg) blur(20px); opacity: 0.5; position: absolute; top: 0; z-index: -1;" src="https://pub-4da9a4732e674df0bf06664b118ecd28.r2.dev/3.mp4" autoplay muted loop></video>
<video style="height: 100%; width: 100%; object-fit: contain; z-index: 2;" src="https://pub-4da9a4732e674df0bf06664b118ecd28.r2.dev/3.mp4" autoplay muted loop></video>
</div>
</div>
</section>
<section style="background: #e5f1f0;" class="py-6 mt-4">
<section class="container flex flex-wrap align-center justify-between gap-3">
<div class="text-center" style="margin: 0 auto;">
<h1 class="big-text">Let's work together</h1>
<a class="cta mt-3" style="display: inline-flex;" href="https://forms.gle/Joh9wy2jPGjaG2A67" target="_blank">
<span style="white-space: nowrap; margin-bottom:2px;">Contact me</span>
<span>
<svg width="66px" height="43px" viewBox="0 0 66 43" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="arrow" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<path class="one" d="M40.1543933,3.89485454 L43.9763149,0.139296592 C44.1708311,-0.0518420739 44.4826329,-0.0518571125 44.6771675,0.139262789 L65.6916134,20.7848311 C66.0855801,21.1718824 66.0911863,21.8050225 65.704135,22.1989893 C65.7000188,22.2031791 65.6958657,22.2073326 65.6916762,22.2114492 L44.677098,42.8607841 C44.4825957,43.0519059 44.1708242,43.0519358 43.9762853,42.8608513 L40.1545186,39.1069479 C39.9575152,38.9134427 39.9546793,38.5968729 40.1481845,38.3998695 C40.1502893,38.3977268 40.1524132,38.395603 40.1545562,38.3934985 L56.9937789,21.8567812 C57.1908028,21.6632968 57.193672,21.3467273 57.0001876,21.1497035 C56.9980647,21.1475418 56.9959223,21.1453995 56.9937605,21.1432767 L40.1545208,4.60825197 C39.9574869,4.41477773 39.9546013,4.09820839 40.1480756,3.90117456 C40.1501626,3.89904911 40.1522686,3.89694235 40.1543933,3.89485454 Z" fill="#FFFFFF"></path>
<path class="two" d="M20.1543933,3.89485454 L23.9763149,0.139296592 C24.1708311,-0.0518420739 24.4826329,-0.0518571125 24.6771675,0.139262789 L45.6916134,20.7848311 C46.0855801,21.1718824 46.0911863,21.8050225 45.704135,22.1989893 C45.7000188,22.2031791 45.6958657,22.2073326 45.6916762,22.2114492 L24.677098,42.8607841 C24.4825957,43.0519059 24.1708242,43.0519358 23.9762853,42.8608513 L20.1545186,39.1069479 C19.9575152,38.9134427 19.9546793,38.5968729 20.1481845,38.3998695 C20.1502893,38.3977268 20.1524132,38.395603 20.1545562,38.3934985 L36.9937789,21.8567812 C37.1908028,21.6632968 37.193672,21.3467273 37.0001876,21.1497035 C36.9980647,21.1475418 36.9959223,21.1453995 36.9937605,21.1432767 L20.1545208,4.60825197 C19.9574869,4.41477773 19.9546013,4.09820839 20.1480756,3.90117456 C20.1501626,3.89904911 20.1522686,3.89694235 20.1543933,3.89485454 Z" fill="#FFFFFF"></path>
<path class="three" d="M0.154393339,3.89485454 L3.97631488,0.139296592 C4.17083111,-0.0518420739 4.48263286,-0.0518571125 4.67716753,0.139262789 L25.6916134,20.7848311 C26.0855801,21.1718824 26.0911863,21.8050225 25.704135,22.1989893 C25.7000188,22.2031791 25.6958657,22.2073326 25.6916762,22.2114492 L4.67709797,42.8607841 C4.48259567,43.0519059 4.17082418,43.0519358 3.97628526,42.8608513 L0.154518591,39.1069479 C-0.0424848215,38.9134427 -0.0453206733,38.5968729 0.148184538,38.3998695 C0.150289256,38.3977268 0.152413239,38.395603 0.154556228,38.3934985 L16.9937789,21.8567812 C17.1908028,21.6632968 17.193672,21.3467273 17.0001876,21.1497035 C16.9980647,21.1475418 16.9959223,21.1453995 16.9937605,21.1432767 L0.15452076,4.60825197 C-0.0425130651,4.41477773 -0.0453986756,4.09820839 0.148075568,3.90117456 C0.150162624,3.89904911 0.152268631,3.89694235 0.154393339,3.89485454 Z" fill="#FFFFFF"></path>
</g>
</svg>
</span>
</a>
</div>
<div class="text-right sm-text-center grow" style="text-wrap: balance; flex-basis: 30%;">
<p>Hi, I'm a <b>React</b> and <b>NodeJS</b> web developer</p>
<p><b id="experience-js"></b> years of experience</p>
<script>
const experience = document.querySelector('#experience-js')
experience.innerHTML = `${new Date().getFullYear() - 2019}+`
</script>
<p><b>15+</b> completed projects</p>
</div>
</section>
</section>
<section class="min-100dvh full-width flex column">
<div class="container grow relative">
<h1 class="mb-4 big-text mt-4">Blog</h1>
<ul class="timeline">
<li class="timeline_item">
<time class="block mb-1">2024 September 27</time>
<article>
<a class='font-bukyVede md-text' href="/blog/pravoslavna-knjizara-is-live.html">"Православна Књижара" is now live</a>
</article>
</li>
<li class="timeline_item">
<time class="block mb-1">2024 May 5</time>
<article>
<a class='font-bukyVede md-text' href="/blog/visualize-your-database.html">Visualize your database</a>
</article>
</li>
<li class="timeline_item">
<time class="block mb-1">2024 Jan 6</time>
<article>
<a class='font-bukyVede md-text' href="/blog/pesme-moga-pradede.html">Песме мога прадеде</a>
</article>
</li>
<li class="timeline_item">
<time class="block mb-1">2023 Jun 9</time>
<article>
<a class='font-bukyVede md-text' href="/blog/git-diff-view-0-6-0-release.html">GitDiffView 0.6.0 is released</a>
</article>
</li>
<li class="timeline_item">
<time>1995</time> - Born
</li>
</ul>
<div class="home_dots flex">
<x-graph numbers="20" style="--size:350px;"></x-graph>
</div>
</div>
<p class="container grow text-center big-text pb-2 font-bukyVede" style="text-wrap: balance;" id="js-advice">
<!-- js will populate this -->
</p>
<footer class="container text-center bt-2 p-2 flex align-center justify-end gap-1 opacity-08">
<a target="_blank" href="https://github.com/predragnikolic">
<img src="/img/github.svg" class="github_logo">
</a>
<a target="_blank" href="/rss.xml">
<img src="/img/rss.svg" class="github_logo">
</a>
</footer>
</section>
<script>
const advices = [
'Живот је кратак, поједи батак – Даниела Метикош',
'Ретко кад је нешто проблем – Игорь Евсюков',
'Један коњ увек вуче више – моја мама',
'Треба знати када стати',
'Некад треба направити 5 корака назад да би могао 10 напред – Сава Габоров',
'И највеће измене се некад не виде',
'За моје лично достигнуће и перформанс одавно не марим. Срећан сам ако помогнем – Василије Мицић',
]
const advice = advices[Math.floor(Math.random() * advices.length)];
const [text, author='unknown']= advice.replace(/\n/g, '<br/>').split('–')
const el = document.getElementById('js-advice')
el.innerHTML = `<p>
<span>"</span>
${text}
<span class="last-quote">"</span>
</p>
<p class="font-l">- ${author}</p>`
</script>
<script src="/components/x-graph.js"></script>
<script type="module">
import {createNoise2D} from "https://unpkg.com/[email protected]/dist/esm/simplex-noise.js"
const noise2D = createNoise2D();
const canvas = document.querySelector('canvas')
const ctx = canvas.getContext('2d')
let frame = 1
const draw = () => {
ctx.fillStyle = "#fafafa"
const gridWidth = canvas.width
const gridHeight = canvas.height
ctx.fillRect(0, 0, gridWidth, gridHeight)
const rows = gridWidth > 2000 ? 50 : gridWidth > 800 ? 33 : gridWidth > 500 ? 18 : 18
const cols = gridWidth > 2000 ? 50 : gridWidth > 1000 ? 33 : gridWidth > 500 ? 18 : 9
const cells = rows * cols,
cellWidth = gridWidth / cols,
cellHeight = gridHeight / rows;
for (let row = 0; row < rows; row++) {
for (let col = 0; col < cols; col++) {
const x = col * cellWidth,
y = row * cellHeight;
const w = cellWidth * 0.4
const h = cellWidth * 0.4
const n = noise2D(x * 0.001 + frame, y * 0.001)
const m = noise2D(x * 0.003 + frame, y * 0.003)
frame += 0.000003
const angle = n * Math.PI * 0.2
ctx.save()
ctx.translate(x, y)
ctx.translate(cellWidth * 0.5, cellHeight * 0.5)
ctx.rotate(angle)
ctx.beginPath()
ctx.moveTo(w * -0.5, 0)
ctx.strokeStyle = "rgba(0, 0, 0," + 0.2 * m * Math.PI * 0.2 + ")"
ctx.lineWidth = 1.2
ctx.quadraticCurveTo(0, h * 0.3 * (n / 2), w * 0.3, 0); // Quadratic curve to create wave effect
ctx.stroke()
ctx.restore()
}
}
// requestAnimationFrame(draw)
}
const setCanvasSize = () => {
canvas.width = window.innerWidth
canvas.height = window.innerHeight
}
setCanvasSize()
draw()
const isMobile = /iPhone|iPad|iPod|Android/i.test(navigator.userAgent);
if (!isMobile) {
window.addEventListener('resize', (e) => {
setCanvasSize()
draw()
})
}
</script>
</body>
</html>