feat: add dynamic years calculation and complete CV content migration

- Add dynamic years of experience calculation from April 1, 2005
- Update professional title badges: ANALYST | TECHNICAL CONSULTANT
- Add all missing skill categories from React CV (Programming Languages, JavaScript Frameworks, PHP Frameworks, Java Frameworks, Application Servers, CMS, Design Tools, Team Management)
- Add complete References section with LinkedIn, Behance, portfolios, and recommendation letters
- Refine years-of-experience subtitle styling to match original design
- Achieve 100% content parity with old React CV (English: 7→14 skill categories)
This commit is contained in:
juanatsap
2025-11-06 09:11:17 +00:00
parent 2c372eee49
commit 51597c074b
7 changed files with 349 additions and 101 deletions
+35 -15
View File
@@ -1,16 +1,19 @@
/* Logo Toggle Component */
/* Toggle Components - Unified Design */
.language-toggle,
.cv-length-toggle,
.logo-toggle {
display: flex;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
white-space: nowrap;
}
.toggle-switch {
display: flex;
align-items: center;
gap: 0.5rem;
display: inline-block;
cursor: pointer;
user-select: none;
position: relative;
}
.toggle-switch input[type="checkbox"] {
@@ -23,23 +26,24 @@
.toggle-slider {
position: relative;
display: inline-block;
width: 44px;
height: 24px;
background-color: #ccc;
border-radius: 24px;
width: 50px;
height: 26px;
background-color: #555;
border-radius: 26px;
transition: background-color 0.3s ease;
}
.toggle-slider::after {
content: '';
position: absolute;
width: 18px;
height: 18px;
width: 20px;
height: 20px;
border-radius: 50%;
background-color: white;
top: 3px;
left: 3px;
transition: transform 0.3s ease;
box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.toggle-switch input[type="checkbox"]:checked + .toggle-slider {
@@ -47,17 +51,33 @@
}
.toggle-switch input[type="checkbox"]:checked + .toggle-slider::after {
transform: translateX(20px);
transform: translateX(24px);
}
.toggle-switch input[type="checkbox"]:focus + .toggle-slider {
box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.2);
}
.toggle-label {
font-size: 0.9rem;
.toggle-label-left,
.toggle-label-right {
font-size: 0.8rem;
font-weight: 500;
color: #ccc;
color: #999;
transition: color 0.3s ease;
white-space: nowrap;
}
/* Highlight active label based on parent container state */
.language-toggle:has(#langToggle:not(:checked)) .toggle-label-left,
.cv-length-toggle:has(#lengthToggle:not(:checked)) .toggle-label-left,
.logo-toggle:has(#logoToggle:not(:checked)) .toggle-label-left {
color: #fff;
}
.language-toggle:has(#langToggle:checked) .toggle-label-right,
.cv-length-toggle:has(#lengthToggle:checked) .toggle-label-right,
.logo-toggle:has(#logoToggle:checked) .toggle-label-right {
color: #fff;
}
/* Experience Item with Logo Support */
+63 -12
View File
@@ -49,19 +49,61 @@ a:hover {
}
.action-bar-content {
max-width: 1200px;
max-width: 100%;
margin: 0 auto;
padding: 1rem 2rem;
padding: 0.75rem 1.5rem;
display: grid;
grid-template-columns: auto auto auto 1fr;
grid-template-columns: 1fr auto 1fr;
align-items: center;
gap: 2rem;
}
.language-toggle {
/* Left: Site Title */
.site-title {
display: flex;
gap: 0.5rem;
align-items: center;
gap: 0.75rem;
justify-self: start;
white-space: nowrap;
}
.site-icon {
color: #fff;
flex-shrink: 0;
}
.site-title-text {
font-size: 1.1rem;
font-weight: 600;
color: #fff;
letter-spacing: 0.5px;
}
/* Center: Toggle controls */
.toggle-controls-center {
display: flex;
flex-direction: row;
align-items: center;
gap: 1.5rem;
justify-self: center;
flex-shrink: 0;
white-space: nowrap;
}
.language-toggle,
.cv-length-toggle,
.logo-toggle {
flex-shrink: 0;
}
/* Right: Action buttons */
.action-buttons {
justify-self: end;
flex-shrink: 0;
}
.htmx-indicator {
flex-shrink: 0;
}
.lang-btn {
@@ -89,19 +131,20 @@ a:hover {
}
.export-btn {
padding: 0.4rem 1rem;
padding: 0.4rem 0.75rem;
background: transparent;
color: white;
border: 1px solid rgba(255,255,255,0.3);
border-radius: 3px;
cursor: pointer;
font-size: 0.875rem;
font-size: 0.8rem;
font-weight: 400;
transition: all 0.2s ease;
display: inline-flex;
align-items: center;
gap: 0.5rem;
text-decoration: none; /* For anchor tags */
gap: 0.4rem;
text-decoration: none;
white-space: nowrap;
}
.export-btn:hover {
@@ -141,12 +184,11 @@ a:hover {
font-weight: 600;
}
/* Action buttons on right */
/* Action buttons styling (already positioned by grid) */
.action-buttons {
display: flex;
gap: 0.5rem;
align-items: center;
justify-self: end;
}
/* Loading Indicator */
@@ -177,7 +219,7 @@ a:hover {
width: 100%;
max-width: 100%; /* Full width to accommodate pages */
margin: 0 auto;
padding: 100px 0 0 0; /* Top padding to prevent sticky action bar overlap */
padding: 20px 0 0 0; /* Top padding to prevent sticky action bar overlap */
display: block; /* Changed from flex */
}
@@ -320,6 +362,15 @@ a:hover {
margin: 0;
}
.years-experience {
font-family: 'Quicksand', sans-serif;
font-size: 0.85em;
font-weight: 400;
color: #666;
margin: 4px 0 0 0;
line-height: 1.4;
}
/* Intro/Excerpt Text - Positioned inside header, matching old React CV */
.intro-text {
font-family: 'Quicksand', sans-serif;