-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
540 lines (442 loc) · 15.9 KB
/
Copy pathindex.html
File metadata and controls
540 lines (442 loc) · 15.9 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
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title> gefercan . design</title>
<style>
* { margin:0; padding:0; box-sizing:border-box; }
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
background: #f6f6f6;
color: #111;
scroll-behavior: smooth;
}
/* NAV */
.nav {
position: fixed;
top:0;
width:100%;
display:flex;
justify-content:center;
z-index:1000;
}
.nav-inner {
margin-top:14px;
display:flex;
padding:10px 40px;
background: rgba(255,255,255,0.7);
backdrop-filter: blur(20px);
border-radius:999px;
border:1px solid rgba(0,0,0,0.06);
}
.nav-links {
display:flex;
gap:150px;
list-style:none;
}
.nav-links a {
text-decoration:none;
color:#1d1d1f;
font-size:1.2rem;
}
/* MENU ICON (PLUS -> X) */
.menu-toggle {
width:28px;
height:28px;
position:relative;
cursor:pointer;
display:none; /* hidden on desktop */
}
.menu-toggle span {
position:absolute;
top:50%;
left:50%;
width:18px;
height:2px;
background:#111;
transform-origin:center;
transition: all 0.35s ease;
}
/* horizontal line */
.menu-toggle span:first-child {
transform: translate(-50%, -50%) rotate(0deg);
}
/* vertical line */
.menu-toggle span:last-child {
transform: translate(-50%, -50%) rotate(90deg);
}
/* active -> X */
.menu-toggle.active span:first-child {
transform: translate(-50%, -50%) rotate(45deg);
}
.menu-toggle.active span:last-child {
transform: translate(-50%, -50%) rotate(-45deg);
}
#overlay{
display:none;
}
/* SIDE MENU (TOP-DOWN APPLE STYLE) */
.side-menu {
position:fixed;
top:-100%;
left:0;
width:100%;
height:70vh;
background:rgba(255,255,255,0.95);
backdrop-filter: blur(20px);
padding:120px 30px 40px;
transition: top 0.5s ease;
z-index:999;
display:flex;
justify-content:center;
}
#sideMenu{
display:none;
}
.side-menu.active { top:0; }
.side-menu ul {
list-style: none;
text-align: left;
padding-left: 3%;
}
.side-menu li {
margin-bottom:30px;
}
.side-menu a {
text-decoration:none;
font-size:28px;
font-weight:500;
color:#111;
text-align: left;
}
/* HERO */
.hero { height:100vh; display:flex; align-items:center; justify-content:left; position:relative; }
.hero img { position:absolute; width:50%; height:auto; left:40%; object-fit:cover; padding:5%; height:auto; }
.hero-content { position:relative; text-align:left; color:black; padding-left:25%;}
.hero-title { padding-left:30%; }
.hero-sub { opacity:0.8; margin-top:10px; text-align: left; padding-left:20%;}
#hero-title{ font-size:5em; text-align: left; line-height:1; }
/* SECTIONS */
.section { padding:140px 40px 120px 40px; }
.section-header {
max-width:760px;
margin:0 auto 0px auto;
text-align:center;
}
.section-title { font-size:2rem; margin-bottom:12px; text-align: left; }
.section-text { opacity:0.65; line-height:1.6; text-align: left; }
#intro_text{
width:20%;
}
/* BENTO */
.bento { display:grid; gap:20px; max-width:1000px; margin:auto; }
.bento-box {
border:1px solid #e6e6e6;
border-radius:24px;
overflow:hidden;
background:#fafafa;
margin:0% 5% 0% 5%;
height:60vh;
}
.bento.one { grid-template-columns: 1fr; }
.bento.two { grid-template-columns: repeat(2, 1fr); }
.bento.three { grid-template-columns: repeat(3, 1fr); }
/* CAROUSEL */
.carousel { width:100%; height:100%; overflow:hidden; position:relative; border:none; }
.carousel-track { display:flex; height:100%; transition: transform 0.6s ease; border:none;}
.carousel-track img { width:100%; height:100%; object-fit:cover; flex-shrink:0; border:none;}
.prev, .next {
position:absolute; top:50%; transform:translateY(-50%);
background:rgba(255,255,255,0.85);
border:none; padding:6px 10px; cursor:pointer; border-radius:8px;
}
.prev { left:10px; }
.next { right:10px; }
.counter { position:absolute; bottom:10px; right:10px; font-size:12px; }
/* SCROLL */
.fade { opacity:0; transform:translateY(40px); transition: all 0.8s ease; }
.fade.visible { opacity:1; transform:translateY(0); }
/* RESPONSIVE */
@media (max-width: 768px) {
.nav-links { display:none; }
.menu-toggle { display:flex; }
.bento.two { grid-template-columns: 1fr; }
.bento.three { grid-template-columns: 1fr; }
#overlay{
display:block;
}
.nav {
position: fixed;
top:0;
width:85%;
display:flex;
justify-content:center;
z-index:1000;
}
.nav-inner {
margin-top:14px;
display:flex;
align-items:left;
justify-content:space-between;
padding:10px 10px;
width:80%;
max-width:800px;
background: rgba(255,255,255,0.7);
backdrop-filter: blur(20px);
border-radius:999px;
border:1px solid rgba(0,0,0,0.06);
}
.nav-links a {
text-decoration:none;
color:#1d1d1f;
font-size:14px;
}
.bento-box {
border:1px solid #e6e6e6;
border-radius:24px;
overflow:hidden;
background:#fafafa;
margin:0%;
height:40vh;
}
.hero-title { font-size:3rem; text-align: left; padding-left:10%;}
#hero-title{ font-size:3.5em; text-align:left; line-height:1;padding-top:40%; }
.hero img { position:absolute; width:100%; height:auto; top:5%; left:1%; object-fit:cover; padding:2% 0%; }
.hero-sub { opacity:0.8; font-size:2rem; margin-top:10px; text-align: left; padding-left:10%;}
.hero-content { position:relative; text-align:left; color:black; padding-top:40%; padding-left:10%;}
.section-title { font-size:2rem; margin-bottom:12px; text-align: left;}
.section-text { opacity:0.65; line-height:1.6; text-align: left; }
#intro_text{
width:70%;
}
#sideMenu{
display:block;
}
.side-menu ul{
list-style: none;
text-align: left;
padding-left: 3%;
}
</style>
</head>
<body>
<nav class="nav">
<div class="nav-inner">
<div class="menu-toggle" onclick="toggleMenu()">
<span></span>
<span></span>
</div>
<ul class="nav-links">
<li><a href="#section-a" onclick="toggleMenu()"> infographics </a></li>
<li><a href="#section-b" onclick="toggleMenu()"> editorial </a></li>
<li><a href="#section-c" onclick="toggleMenu()"> illustration </a></li>
<li><a href="#section-d" onclick="toggleMenu()"> ux/ui </a></li>
<li><a href="#section-e" onclick="toggleMenu()"> about </a></li>
</ul>
</div>
</nav>
<!-- OVERLAY (click outside to close) -->
<div id="overlay" style="position:fixed; inset:0; background:rgba(0,0,0,0.15); opacity:0; pointer-events:none; transition:opacity 0.3s ease; z-index:998;"></div>
<!-- SIDE MENU -->
<div class="side-menu" id="sideMenu">
<ul>
<li style="font-size:2em; font-weight:bold;">german.fernandez</li>
<li><a href="#section-a" onclick="toggleMenu()"> infographics </a></li>
<li><a href="#section-b" onclick="toggleMenu()"> editorial </a></li>
<li><a href="#section-c" onclick="toggleMenu()"> illustration </a></li>
<li><a href="#section-d" onclick="toggleMenu()"> ux/ui </a></li>
<li><a href="#section-e" onclick="toggleMenu()"> about </a></li>
</ul>
</div>
<section class="hero">
<img id="hero-img" src="./images/design_gefercan_dataviz_01_portfolio_page2.webp" />
<div class="hero-content fade">
<h1 id="hero-title"> infographics.<br>illustration.<br>design.</h1>
<p id="hero-sub" style="font-size:1.5em; text-align:left;"> <br> german fernandez portfolio </p>
<p id="intro_text"> <br> Welcome. I am German Fernandez Cantos, a Peruvian designer who works mainly
in the field of information design (infographics, ux/ui) and illustration (digital and analogue) and editorial design (books, reports). This is my portfolio website./ </p>
</div>
</section>
<!------- section A ---------->
<section id="section-a" class="section fade">
<div class="section-header">
<h2 class="section-title"> Infographics </h2>
<p class="section-text"> We transform complex data into visually engaging infographics.
From captivating visual stories to precise statistical charts, I tailor solutions that
clarify and communicate your message with precision, ensuring information is both understandable and memorable. Usually these projects include data research, data cleaning, and last but not least, visual encoding.
You can find examples of this <strong> <a href="https://gefercan2.github.io/demo/Renaissance_dashboard.html"target="_blank"> here</a> </strong> ,
<a href="https://gefercan2.github.io/demo/global_dashboard_02.html"target="_blank"> here </a>
and <strong> <a href="https://gefercan2.github.io/demo/FIFA_World_Cup.html"target="_blank" >here</a> </strong> <br> <br> <br> </p>
</div>
<div class="bento one">
<div class="bento-box">
<div class="carousel">
<div class="carousel-track" id="track-1">
<img src="./images/design_gefercan_dataviz_01_portfolio_page2.webp">
<img src="./images/design_gefercan_dataviz_02_portfolio_page2.webp">
<img src="./images/design_gefercan_dataviz_03_portfolio_page2.webp">
<img src="./images/design_gefercan_infographics_sport.webp">
</div>
<button class="prev" onclick="move(1,-1)">←</button>
<button class="next" onclick="move(1,1)">→</button>
<div class="counter" id="count-1">1 / 3</div>
</div>
</div>
</div>
</div>
</section>
<!------- section B ---------->
<section id="section-b" class="section fade">
<div class="section-header">
<h2 class="section-title"> Editorial </h2>
<p class="section-text"> We specialize in print-focused design, including books and reports.
From content structuring to refined page layouts, I ensure that every publication delivers impactful
visuals and functionality, bringing ideas to life in printed form. </p>
</div>
<div class="bento one" style="margin-top:40px;">
<div class="bento-box">
<div class="carousel">
<div class="carousel-track" id="track-2">
<img src="./images/design_gefercan_editorial_book_cover1.webp">
<img src="./images/design_editorial_genderbalance1.webp">
<img src="./images/design_editorial_genderbalance2.webp">
<img src="./images/design_gefercan_editorial_book_cover2.webp">
</div>
<button class="prev" onclick="move(2,-1)">←</button>
<button class="next" onclick="move(2,1)">→</button>
<div class="counter" id="count-2">1 / 3</div>
</div>
</div>
</div>
</section>
<!------- section C ---------->
<section id="section-c" class="section fade">
<div class="section-header">
<h2 class="section-title"> Illustration </h2>
<p class="section-text">We craft custom illustrations, combining artistry with your vision.
From digital to hand-drawn techniques, I co-create visuals that tell stories and inspire audiences,
transforming abstract ideas into compelling images for diverse projects. </p>
</div>
<div class="bento one" style="margin-top:40px;">
<div class="bento-box">
<div class="carousel">
<div class="carousel-track" id="track-3">
<img src="./images/design_gefercan_illustration_ads.webp">
<img src="./images/design_gefercan_illustration_tintin.webp">
<img src="./images/design_gefercan_illustration_poster.webp">
<img src="./images/design_gefercan_illustration_powerboat.webp">
</div>
<button class="prev" onclick="move(3,-1)">←</button>
<button class="next" onclick="move(3,1)">→</button>
<div class="counter" id="count-3">1 / 3</div>
</div>
</div>
</div>
</section>
<!------- section D ---------->
<section id="section-d" class="section fade">
<div class="section-header">
<h2 class="section-title"> UX/UI </h2>
<p class="section-text"> We design sleek and user-focused interfaces for websites, apps,
and digital platforms. UI layouts balance form and function, enhancing visual appeal and
usability to elevate content for web and social media audiences. <strong> <a href="https://gefercandesign.github.io/demo/dashboard_Circular.html"target="_blank"> Here</a> </strong> an example </p>
</div>
<div class="bento one" style="margin-top:40px;">
<div class="bento-box">
<div class="carousel">
<div class="carousel-track" id="track-4">
<img src="./images/design_gefercan_UXUI_videosessions.webp">
<img src="./images/design_UXUI_03_portfolio.webp">
<img src="./images/design_gefercan_UXUI_portfolio_page2.webp">
<img src="./images/design_UXUI_diagram2.webp">
<img src="./images/design_eUXUI_diagram3.webp">
</div>
<button class="prev" onclick="move(4,-1)">←</button>
<button class="next" onclick="move(4,1)">→</button>
<div class="counter" id="count-4">1 / 3</div>
</div>
</div>
</div>
</section>
<!------- section E ---------->
<section id="section-e" class="section fade">
<div class="section-header">
<h2 class="section-title"> About </h2>
<p class="section-text"> Hi. My name is German Fernandez. I am a designer with a background in
Information Graphics and editorial design for print. I am also an illustrator who works
digitaly and analogically. This is the site for commercial design-related works.
You can also see <a href="https://www.behance.net/german_fernandez"> my
work on behance</a> For personal projects, visit <a href="https://gefercan.github.io">gefercan.github.io including paintings</a> and coding works.
For contact and communication, cv references, etc, please do not hesitate to send a message and write
to design.gefercan@outlook.com. All rights reserved. <br>
The purpose of this site is to promote our design services. The security of your Personal Information is
important to us, but remember that no method of transmission over the Internet, or method of electronic storage,
is 100% secure. While we strive to use commercially acceptable means to protect your personal information, we
cannot guarantee its absolute security. This site is made on github.</p>
</div>
</section>
<script>
/* HERO IMAGE ROTATION */
const heroImages = [
"./images/design_gefercan_illustration_tintin.webp",
"./images/design_gefercan_UXUI_videosessions2.webp",
"./images/design_gefercan_editorial_book_cover1.webp",
"./images/design_gefercan_dataviz_02_portfolio_page2.webp",
"./images/design_gefercan_editorial_book_cover2.webp"
];
//initial state
let heroIndex = 0;
function changeHero(){
heroIndex = (heroIndex + 1) % heroImages.length;
const img = document.getElementById('hero-img');
img.style.opacity = 0;
setTimeout(()=>{
img.src = heroImages[heroIndex];
img.style.opacity = 1;
},300);
}
setInterval(changeHero, 3000);
//initial image
const state = {1:0, 2:0, 3:0, 4:0};
//number of slides
const totals = {1:3, 2:4, 3:4, 4:5};
function move(id, step){
let i = state[id] + step;
if(i < 0) i = totals[id]-1;
if(i >= totals[id]) i = 0;
state[id] = i;
document.getElementById(`track-${id}`).style.transform =
`translateX(-${i*100}%)`;
document.getElementById(`count-${id}`).innerText =
`${i+1} / ${totals[id]}`;
}
function toggleMenu(){
const menu = document.getElementById('sideMenu');
const toggle = document.querySelector('.menu-toggle');
const overlay = document.getElementById('overlay');
menu.classList.toggle('active');
toggle.classList.toggle('active');
const isOpen = menu.classList.contains('active');
overlay.style.opacity = isOpen ? '1' : '0';
overlay.style.pointerEvents = isOpen ? 'auto' : 'none';
}
// close when clicking outside
const overlay = document.getElementById('overlay');
overlay.addEventListener('click', () => {
const menu = document.getElementById('sideMenu');
const toggle = document.querySelector('.menu-toggle');
menu.classList.remove('active');
toggle.classList.remove('active');
overlay.style.opacity = '0';
overlay.style.pointerEvents = 'none';
});
const obs = new IntersectionObserver(entries => {
entries.forEach(e => {
if(e.isIntersecting) e.target.classList.add('visible');
});
},{ threshold:0.2 });
document.querySelectorAll('.fade').forEach(el => obs.observe(el));
</script>
</body>
</html>