Skip to content

Commit 4135608

Browse files
committed
added the video to be on the side of the timeline
1 parent 792b815 commit 4135608

File tree

2 files changed

+106
-30
lines changed

2 files changed

+106
-30
lines changed

components/timeline.html

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,31 @@
33
<h2>Professional Timeline</h2>
44
<div class="timeline-content">
55
<div class="timeline-item">
6-
<h3>AI Software Developer - Captury GmbH</h3>
7-
<p class="date">January 2022 - Present</p>
8-
<p>Contributing to dataset preparations, handpose tracking, and developing prototypes using Unreal Engine, Unity, and Oculus Quest.</p>
6+
<div class="timeline-text">
7+
<h3>AI Software Developer - Captury GmbH</h3>
8+
<p class="date">January 2022 - Present</p>
9+
<p>Contributing to dataset preparations, handpose tracking, and developing prototypes using Unreal Engine, Unity, and Oculus Quest.</p>
10+
</div>
911
</div>
12+
<a href="https://youtu.be/p_7iE6UsSLM?si=i9vZnVBG1XIG_IQ0" target="_blank" class="video-thumbnail">
13+
<img src="https://img.youtube.com/vi/p_7iE6UsSLM/maxresdefault.jpg" alt="Project Video">
14+
<div class="play-overlay">
15+
<i class="fas fa-play"></i>
16+
</div>
17+
</a>
1018
<div class="timeline-item">
11-
<h3>Freelance Developer - Captury GmbH</h3>
12-
<p class="date">July - December 2021</p>
13-
<p>Developed handpose tracking support and various computer vision solutions.</p>
19+
<div class="timeline-text">
20+
<h3>Freelance Developer - Captury GmbH</h3>
21+
<p class="date">July - December 2021</p>
22+
<p>Developed handpose tracking support and various computer vision solutions.</p>
23+
</div>
1424
</div>
1525
<div class="timeline-item">
16-
<h3>Deep Learning Intern - Captury GmbH</h3>
17-
<p class="date">October - December 2020</p>
18-
<p>Worked on Fast Background subtraction using neural networks.</p>
26+
<div class="timeline-text">
27+
<h3>Deep Learning Intern - Captury GmbH</h3>
28+
<p class="date">October - December 2020</p>
29+
<p>Worked on Fast Background subtraction using neural networks.</p>
30+
</div>
1931
</div>
2032
</div>
2133
</div>

styles.css

Lines changed: 85 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -418,27 +418,24 @@ body {
418418
}
419419

420420
.timeline-content {
421+
position: relative;
421422
max-width: 800px;
422423
margin: 0 auto;
423-
position: relative;
424424
}
425425

426426
.timeline-content::before {
427427
content: '';
428428
position: absolute;
429-
left: 50%;
430-
transform: translateX(-50%);
431429
width: 2px;
432-
height: 100%;
433430
background-color: var(--border-color);
431+
top: 0;
432+
bottom: 0;
433+
left: 50%;
434+
transform: translateX(-50%);
434435
}
435436

436437
.timeline-item {
437-
background-color: var(--card-bg);
438-
padding: 2rem;
439438
margin-bottom: 2rem;
440-
border-radius: 10px;
441-
box-shadow: 0 2px 10px var(--shadow-color);
442439
position: relative;
443440
width: calc(50% - 30px);
444441
margin-left: auto;
@@ -449,23 +446,30 @@ body {
449446
margin-right: auto;
450447
}
451448

449+
.timeline-text {
450+
background-color: var(--card-bg);
451+
padding: 1.5rem;
452+
border-radius: 8px;
453+
box-shadow: 0 2px 10px var(--shadow-color);
454+
}
455+
452456
.timeline-item::before {
453457
content: '';
454458
position: absolute;
455-
width: 20px;
456-
height: 20px;
459+
width: 16px;
460+
height: 16px;
457461
background-color: var(--link-color);
458462
border-radius: 50%;
459-
top: 50%;
463+
top: 20px;
460464
transform: translateY(-50%);
461465
}
462466

463467
.timeline-item:nth-child(odd)::before {
464-
left: -40px;
468+
left: -38px;
465469
}
466470

467471
.timeline-item:nth-child(even)::before {
468-
right: -40px;
472+
right: -38px;
469473
}
470474

471475
.timeline-item h3 {
@@ -477,13 +481,71 @@ body {
477481
.timeline-item .date {
478482
color: var(--link-color);
479483
font-size: 0.9rem;
480-
margin-bottom: 1rem;
484+
margin-bottom: 0.5rem;
481485
font-weight: 500;
482486
}
483487

484488
.timeline-item p {
485489
color: var(--text-color);
486490
line-height: 1.6;
491+
font-size: 0.95rem;
492+
}
493+
494+
.video-thumbnail {
495+
display: block;
496+
position: absolute;
497+
border-radius: 8px;
498+
overflow: hidden;
499+
box-shadow: 0 2px 10px var(--shadow-color);
500+
transition: transform 0.3s ease, box-shadow 0.3s ease;
501+
width: calc(50% - 30px);
502+
left: 0;
503+
top: 0;
504+
}
505+
506+
.video-thumbnail img {
507+
width: 100%;
508+
height: auto;
509+
display: block;
510+
transition: transform 0.3s ease;
511+
}
512+
513+
.play-overlay {
514+
position: absolute;
515+
top: 0;
516+
left: 0;
517+
width: 100%;
518+
height: 100%;
519+
background-color: rgba(0, 0, 0, 0.4);
520+
display: flex;
521+
align-items: center;
522+
justify-content: center;
523+
opacity: 0;
524+
transition: opacity 0.3s ease;
525+
}
526+
527+
.play-overlay i {
528+
color: white;
529+
font-size: 2rem;
530+
transform: scale(0.8);
531+
transition: transform 0.3s ease;
532+
}
533+
534+
.video-thumbnail:hover {
535+
transform: translateY(-3px);
536+
box-shadow: 0 4px 12px var(--shadow-color);
537+
}
538+
539+
.video-thumbnail:hover img {
540+
transform: scale(1.03);
541+
}
542+
543+
.video-thumbnail:hover .play-overlay {
544+
opacity: 1;
545+
}
546+
547+
.video-thumbnail:hover .play-overlay i {
548+
transform: scale(1);
487549
}
488550

489551
/* Timeline Responsive */
@@ -494,18 +556,20 @@ body {
494556

495557
.timeline-item {
496558
width: calc(100% - 30px);
497-
margin-left: 30px;
498-
}
499-
500-
.timeline-item:nth-child(even) {
501-
margin-left: 30px;
502-
margin-right: 0;
559+
margin-left: 30px !important;
560+
margin-right: 0 !important;
503561
}
504562

505563
.timeline-item::before {
506-
left: -40px !important;
564+
left: -38px !important;
507565
right: auto !important;
508566
}
567+
568+
.video-thumbnail {
569+
position: relative;
570+
width: calc(100% - 30px);
571+
margin: 1rem 0 1rem 30px;
572+
}
509573
}
510574

511575
/* Contact Section */

0 commit comments

Comments
 (0)