mirror of
https://github.com/dong-nz/cv.git
synced 2026-11-22 16:10:40 +07:00
feat(ui): v3 enhancements - hero photo, particles, mobile responsive
- Hero photo: circular shape, object-position center top, transparent background - Hero particles: bigger (6-16px), more visible (opacity 0.8) - Mobile: hide hero photo, transparent hero content, fix text/social link colors - Mobile social links: darker border in light mode - Update spec docs and all section components for v3 UI
This commit is contained in:
1 parent
a303d98e41
commit
dd22f3be3a
26 files changed
+810
-504
No files matched your search
+238
-24
@@ -30,6 +30,18 @@
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.logo-bracket {
|
||||
color: var(--accent);
|
||||
font-family: var(--mono);
|
||||
font-size: 1.2rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
.logo-text {
|
||||
color: var(--text-primary);
|
||||
font-weight: 700;
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
.nav-menu {
|
||||
display: flex;
|
||||
gap: 32px;
|
||||
@@ -194,29 +206,45 @@
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
background: var(--accent);
|
||||
background: linear-gradient(135deg, #1d4ed8, #2563eb, #60a5fa);
|
||||
color: #ffffff;
|
||||
box-shadow: 0 4px 20px rgba(96, 165, 250, 0.3);
|
||||
border-radius: 9999px;
|
||||
}
|
||||
|
||||
.btn-primary:hover {
|
||||
background: var(--accent-hover);
|
||||
color: #ffffff;
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 8px 30px rgba(96, 165, 250, 0.4);
|
||||
}
|
||||
|
||||
.btn-primary:active {
|
||||
background: var(--accent-active);
|
||||
transform: translateY(0);
|
||||
box-shadow: 0 2px 10px rgba(96, 165, 250, 0.3);
|
||||
}
|
||||
|
||||
.btn-secondary {
|
||||
background: transparent;
|
||||
color: var(--accent);
|
||||
border: 1px solid var(--border);
|
||||
border: 1.5px solid var(--border);
|
||||
border-radius: 9999px;
|
||||
}
|
||||
|
||||
.btn-secondary:hover {
|
||||
border-color: var(--accent);
|
||||
background: var(--accent);
|
||||
color: #ffffff;
|
||||
background: rgba(96, 165, 250, 0.1);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
.btn-secondary:active {
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.btn-icon {
|
||||
display: inline-flex;
|
||||
margin-left: 6px;
|
||||
transition: transform var(--transition-fast);
|
||||
}
|
||||
.btn-primary:hover .btn-icon,
|
||||
.btn-secondary:hover .btn-icon {
|
||||
transform: translateX(4px);
|
||||
}
|
||||
|
||||
.btn-ghost {
|
||||
@@ -326,6 +354,16 @@
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.section-tag {
|
||||
display: block;
|
||||
font-family: var(--mono);
|
||||
font-size: 0.85rem;
|
||||
color: var(--accent);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 2px;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
/* ===== Social Links ===== */
|
||||
.social-links {
|
||||
display: flex;
|
||||
@@ -335,27 +373,32 @@
|
||||
.social-link {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
font-size: 14px;
|
||||
color: var(--text-muted);
|
||||
text-decoration: none;
|
||||
transition: color var(--transition-fast);
|
||||
justify-content: center;
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
border: 1.5px solid rgba(255, 255, 255, 0.15);
|
||||
border-radius: 6px;
|
||||
color: var(--text-primary);
|
||||
transition: color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
|
||||
}
|
||||
|
||||
.social-link:hover {
|
||||
border-color: var(--accent);
|
||||
color: var(--accent);
|
||||
transform: translateY(-3px);
|
||||
}
|
||||
|
||||
.social-link:focus-visible {
|
||||
outline: 2px solid var(--accent);
|
||||
outline-offset: 2px;
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
.social-link svg {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
}
|
||||
.social-link span {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
/* ===== Section Background Gradient ===== */
|
||||
.section {
|
||||
position: relative;
|
||||
@@ -413,6 +456,35 @@
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.hero-greeting {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
margin-bottom: 16px;
|
||||
font-size: 1.1rem;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.greeting-dot {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
background: var(--success);
|
||||
border-radius: 50%;
|
||||
animation: pulse-dot 2s ease-in-out infinite;
|
||||
}
|
||||
|
||||
@keyframes pulse-dot {
|
||||
0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.4); }
|
||||
50% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
|
||||
}
|
||||
|
||||
.name-highlight {
|
||||
background: linear-gradient(135deg, #1d4ed8, #2563eb, #60a5fa);
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
background-clip: text;
|
||||
}
|
||||
|
||||
.hero-cta {
|
||||
display: flex;
|
||||
gap: 16px;
|
||||
@@ -424,21 +496,111 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
aspect-ratio: 1 / 1;
|
||||
}
|
||||
|
||||
.hero-bg-grid {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background-image:
|
||||
linear-gradient(var(--grid-color) 1px, transparent 1px),
|
||||
linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
|
||||
background-size: 60px 60px;
|
||||
mask-image: radial-gradient(ellipse at center, black 50%, transparent 70%);
|
||||
-webkit-mask-image: radial-gradient(ellipse at center, black 50%, transparent 70%);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.typewriter-cursor {
|
||||
display: inline-block;
|
||||
width: 2px;
|
||||
height: 1.1em;
|
||||
background: var(--accent);
|
||||
margin-left: 2px;
|
||||
vertical-align: text-bottom;
|
||||
animation: blink 1s step-end infinite;
|
||||
}
|
||||
|
||||
@keyframes blink {
|
||||
0%, 100% { opacity: 1; }
|
||||
50% { opacity: 0; }
|
||||
}
|
||||
|
||||
.hero-particles {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
overflow: hidden;
|
||||
pointer-events: none;
|
||||
}
|
||||
.hero-particle {
|
||||
position: absolute;
|
||||
width: 4px;
|
||||
height: 4px;
|
||||
background: var(--accent);
|
||||
border-radius: 50%;
|
||||
opacity: 0.8;
|
||||
animation: float-particle linear infinite;
|
||||
}
|
||||
@keyframes float-particle {
|
||||
0% { transform: translateY(100vh) scale(0); opacity: 0; }
|
||||
10% { opacity: 0.8; }
|
||||
90% { opacity: 0.8; }
|
||||
100% { transform: translateY(-100px) scale(1); opacity: 0; }
|
||||
}
|
||||
|
||||
.scroll-indicator {
|
||||
position: absolute;
|
||||
bottom: 40px;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
color: var(--text-muted);
|
||||
font-size: 0.8rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 2px;
|
||||
animation: float 3s ease-in-out infinite;
|
||||
text-decoration: none;
|
||||
pointer-events: none;
|
||||
}
|
||||
.scroll-mouse {
|
||||
width: 24px;
|
||||
height: 38px;
|
||||
border: 2px solid var(--border);
|
||||
border-radius: 12px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
padding-top: 8px;
|
||||
}
|
||||
.scroll-wheel {
|
||||
width: 3px;
|
||||
height: 8px;
|
||||
background: var(--accent);
|
||||
border-radius: 2px;
|
||||
animation: scroll-wheel 2s ease-in-out infinite;
|
||||
}
|
||||
@keyframes scroll-wheel {
|
||||
0%, 100% { transform: translateY(0); opacity: 1; }
|
||||
50% { transform: translateY(8px); opacity: 0.3; }
|
||||
}
|
||||
@keyframes float {
|
||||
0%, 100% { transform: translateX(-50%) translateY(0); }
|
||||
50% { transform: translateX(-50%) translateY(-10px); }
|
||||
}
|
||||
|
||||
.hero-photo {
|
||||
width: 80%;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
object-position: center top;
|
||||
border-radius: 16px;
|
||||
display: block;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.hero {
|
||||
position: relative;
|
||||
min-height: 100vh;
|
||||
min-height: 100dvh;
|
||||
overflow: hidden;
|
||||
padding: 0;
|
||||
}
|
||||
@@ -461,9 +623,7 @@
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
z-index: 1;
|
||||
background: rgba(0, 0, 0, 0.75);
|
||||
padding: 64px 24px 56px;
|
||||
backdrop-filter: blur(4px);
|
||||
width: 100%;
|
||||
}
|
||||
.hero-name {
|
||||
@@ -473,8 +633,50 @@
|
||||
.hero-tagline {
|
||||
color: #e0e0e0;
|
||||
}
|
||||
.hero-greeting {
|
||||
color: #e0e0e0;
|
||||
}
|
||||
.hero-photo {
|
||||
display: none;
|
||||
}
|
||||
.scroll-indicator {
|
||||
position: absolute;
|
||||
bottom: 20px;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
z-index: 10;
|
||||
color: #ffffff;
|
||||
}
|
||||
.scroll-mouse {
|
||||
border-color: rgba(255, 255, 255, 0.5);
|
||||
}
|
||||
.hero .scroll-indicator span {
|
||||
display: block !important;
|
||||
color: #ffffff !important;
|
||||
opacity: 1 !important;
|
||||
}
|
||||
.social-links {
|
||||
justify-content: center;
|
||||
}
|
||||
.social-link {
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
}
|
||||
@media (max-width: 768px) {
|
||||
:root[data-theme='light'] .hero-name {
|
||||
color: var(--text-primary) !important;
|
||||
}
|
||||
:root[data-theme='light'] .hero-title,
|
||||
:root[data-theme='light'] .hero-tagline,
|
||||
:root[data-theme='light'] .hero-greeting {
|
||||
color: var(--text-secondary) !important;
|
||||
}
|
||||
:root[data-theme='light'] .social-link {
|
||||
color: var(--text-secondary) !important;
|
||||
border-color: rgba(0, 0, 0, 0.3) !important;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 769px) and (max-width: 1200px) {
|
||||
.hero-content {
|
||||
@@ -482,6 +684,9 @@
|
||||
padding-right: 16px;
|
||||
}
|
||||
}
|
||||
:root[data-theme='light'] .social-link {
|
||||
border-color: rgba(0, 0, 0, 0.2) !important;
|
||||
}
|
||||
|
||||
/* ===== Download Resume Dropdown ===== */
|
||||
.download-resume-dropdown {
|
||||
@@ -523,7 +728,16 @@
|
||||
transition: transform 0.2s;
|
||||
}
|
||||
|
||||
.download-resume-dropdown[open] .download-resume-summary .chevron {
|
||||
|
||||
.download-resume-dropdown .download-resume-options {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.download-resume-dropdown .download-resume-options.open {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.download-resume-dropdown .download-resume-summary.open .chevron {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user