2025-11-18 08:22:30 +00:00
|
|
|
/**
|
2025-11-18 11:32:12 +00:00
|
|
|
* Component-Level Skeleton Loaders for Language Transitions
|
|
|
|
|
* ==========================================================
|
|
|
|
|
* Each CV component has dual-state structure:
|
|
|
|
|
* - .actual-content (real CV content)
|
|
|
|
|
* - .skeleton-content (gray pulsing placeholders)
|
|
|
|
|
*
|
|
|
|
|
* Loading state controlled via .loading class on component wrapper
|
2025-11-18 08:22:30 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/* ========================================================================
|
2025-11-18 11:32:12 +00:00
|
|
|
BASE SKELETON STYLES
|
2025-11-18 08:22:30 +00:00
|
|
|
======================================================================== */
|
|
|
|
|
|
2025-11-18 11:32:12 +00:00
|
|
|
.skeleton {
|
|
|
|
|
background: linear-gradient(
|
|
|
|
|
90deg,
|
|
|
|
|
#f0f0f0 0%,
|
|
|
|
|
#e8e8e8 20%,
|
|
|
|
|
#f0f0f0 40%,
|
|
|
|
|
#f0f0f0 100%
|
|
|
|
|
);
|
2025-11-18 08:22:30 +00:00
|
|
|
background-size: 200% 100%;
|
2025-11-18 11:32:12 +00:00
|
|
|
animation: skeleton-shimmer 1.8s ease-in-out infinite;
|
2025-11-18 08:22:30 +00:00
|
|
|
border-radius: 4px;
|
2025-11-18 11:32:12 +00:00
|
|
|
will-change: background-position;
|
2025-11-18 08:22:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@keyframes skeleton-shimmer {
|
|
|
|
|
0% {
|
|
|
|
|
background-position: 200% 0;
|
|
|
|
|
}
|
|
|
|
|
100% {
|
|
|
|
|
background-position: -200% 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2025-11-18 11:32:12 +00:00
|
|
|
/* ========================================================================
|
|
|
|
|
COMPONENT WRAPPER STATE TOGGLING
|
|
|
|
|
======================================================================== */
|
|
|
|
|
|
|
|
|
|
/* Default state: Show actual content, hide skeleton */
|
|
|
|
|
.component-wrapper {
|
|
|
|
|
position: relative;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.component-wrapper .actual-content {
|
2025-11-18 08:22:30 +00:00
|
|
|
opacity: 1;
|
2025-11-18 11:32:12 +00:00
|
|
|
transition: opacity 250ms ease-out;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.component-wrapper .skeleton-content {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
right: 0;
|
|
|
|
|
opacity: 0;
|
|
|
|
|
pointer-events: none;
|
|
|
|
|
transition: opacity 250ms ease-out;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Loading state: Hide actual content, show skeleton */
|
|
|
|
|
.component-wrapper.loading .actual-content {
|
|
|
|
|
opacity: 0;
|
|
|
|
|
pointer-events: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.component-wrapper.loading .skeleton-content {
|
|
|
|
|
opacity: 1;
|
|
|
|
|
pointer-events: all;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ========================================================================
|
|
|
|
|
SKELETON SHAPE DEFINITIONS
|
|
|
|
|
======================================================================== */
|
|
|
|
|
|
|
|
|
|
/* Header Section Skeleton */
|
|
|
|
|
.skeleton-header {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: 20px;
|
|
|
|
|
margin-bottom: 20px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.skeleton-header-text {
|
|
|
|
|
flex: 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.skeleton-name {
|
|
|
|
|
height: 32px;
|
|
|
|
|
width: 70%;
|
|
|
|
|
margin-bottom: 8px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.skeleton-experience-years {
|
|
|
|
|
height: 20px;
|
|
|
|
|
width: 50%;
|
|
|
|
|
margin-bottom: 16px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.skeleton-photo {
|
|
|
|
|
width: 120px;
|
|
|
|
|
height: 120px;
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.skeleton-intro {
|
|
|
|
|
height: 60px;
|
|
|
|
|
width: 100%;
|
|
|
|
|
margin-top: 12px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Section Title Skeleton */
|
|
|
|
|
.skeleton-section-title {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 8px;
|
|
|
|
|
margin-bottom: 16px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.skeleton-icon {
|
|
|
|
|
width: 24px;
|
|
|
|
|
height: 24px;
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.skeleton-title-text {
|
|
|
|
|
height: 24px;
|
|
|
|
|
width: 40%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Skill Item Skeleton (Sidebar) */
|
|
|
|
|
.skeleton-skill-category {
|
|
|
|
|
margin-bottom: 20px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.skeleton-skill-title {
|
|
|
|
|
height: 20px;
|
|
|
|
|
width: 60%;
|
|
|
|
|
margin-bottom: 12px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.skeleton-skill-items {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: 8px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.skeleton-skill-item {
|
|
|
|
|
height: 32px;
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.skeleton-skill-item:nth-child(2) {
|
|
|
|
|
width: 85%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.skeleton-skill-item:nth-child(3) {
|
|
|
|
|
width: 90%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.skeleton-skill-item:nth-child(4) {
|
|
|
|
|
width: 75%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Experience Entry Skeleton */
|
|
|
|
|
.skeleton-experience-item {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: 16px;
|
|
|
|
|
margin-bottom: 24px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.skeleton-company-logo {
|
|
|
|
|
width: 60px;
|
|
|
|
|
height: 60px;
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.skeleton-experience-content {
|
|
|
|
|
flex: 1;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: 8px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.skeleton-position {
|
|
|
|
|
height: 20px;
|
|
|
|
|
width: 80%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.skeleton-company-info {
|
|
|
|
|
height: 16px;
|
|
|
|
|
width: 60%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.skeleton-description {
|
|
|
|
|
height: 40px;
|
|
|
|
|
width: 100%;
|
|
|
|
|
margin-top: 4px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.skeleton-description.short {
|
|
|
|
|
width: 85%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Education Item Skeleton */
|
|
|
|
|
.skeleton-education-item {
|
|
|
|
|
margin-bottom: 16px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.skeleton-degree {
|
|
|
|
|
height: 18px;
|
|
|
|
|
width: 75%;
|
|
|
|
|
margin-bottom: 6px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.skeleton-institution {
|
|
|
|
|
height: 16px;
|
|
|
|
|
width: 50%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Text Block Skeletons (Generic) */
|
|
|
|
|
.skeleton-text {
|
|
|
|
|
height: 16px;
|
|
|
|
|
margin-bottom: 8px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.skeleton-text.short {
|
|
|
|
|
width: 60%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.skeleton-text.medium {
|
|
|
|
|
width: 80%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.skeleton-text.long {
|
|
|
|
|
width: 95%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ========================================================================
|
|
|
|
|
RESPONSIVE ADJUSTMENTS
|
|
|
|
|
======================================================================== */
|
|
|
|
|
|
|
|
|
|
@media (max-width: 768px) {
|
|
|
|
|
.skeleton-header {
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
align-items: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.skeleton-header-text {
|
|
|
|
|
text-align: center;
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.skeleton-name,
|
|
|
|
|
.skeleton-experience-years {
|
|
|
|
|
width: 80%;
|
|
|
|
|
margin-left: auto;
|
|
|
|
|
margin-right: auto;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.skeleton-photo {
|
|
|
|
|
width: 100px;
|
|
|
|
|
height: 100px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.skeleton-experience-item {
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: 12px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.skeleton-company-logo {
|
|
|
|
|
width: 50px;
|
|
|
|
|
height: 50px;
|
|
|
|
|
}
|
2025-11-18 08:22:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ========================================================================
|
2025-11-18 11:32:12 +00:00
|
|
|
ACCESSIBILITY - REDUCED MOTION
|
2025-11-18 08:22:30 +00:00
|
|
|
======================================================================== */
|
|
|
|
|
|
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
2025-11-18 11:32:12 +00:00
|
|
|
.skeleton {
|
2025-11-18 08:22:30 +00:00
|
|
|
animation: none;
|
|
|
|
|
background: #e8e8e8;
|
|
|
|
|
}
|
|
|
|
|
|
2025-11-18 11:32:12 +00:00
|
|
|
.component-wrapper .actual-content,
|
|
|
|
|
.component-wrapper .skeleton-content {
|
|
|
|
|
transition: none;
|
2025-11-18 08:22:30 +00:00
|
|
|
}
|
|
|
|
|
}
|
2025-11-18 11:32:12 +00:00
|
|
|
|
|
|
|
|
/* ========================================================================
|
|
|
|
|
PRINT STYLES
|
|
|
|
|
======================================================================== */
|
|
|
|
|
|
|
|
|
|
@media print {
|
|
|
|
|
.skeleton-content {
|
|
|
|
|
display: none !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.component-wrapper .actual-content {
|
|
|
|
|
opacity: 1 !important;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* ========================================================================
|
|
|
|
|
PERFORMANCE OPTIMIZATIONS
|
|
|
|
|
======================================================================== */
|
|
|
|
|
|
|
|
|
|
/* Force GPU acceleration for skeleton elements */
|
|
|
|
|
.skeleton {
|
|
|
|
|
transform: translateZ(0);
|
|
|
|
|
backface-visibility: hidden;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Contain layout/paint/style to prevent reflow */
|
|
|
|
|
.component-wrapper {
|
|
|
|
|
contain: layout style;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Optimize skeleton rendering */
|
|
|
|
|
.skeleton-content {
|
|
|
|
|
contain: layout paint;
|
|
|
|
|
}
|