mirror of
https://github.com/dong-nz/cv.git
synced 2026-11-22 16:10:40 +07:00
feat: resume download, router v7/v8 migrations, spec restructure
- Add resume download button in Hero CTA and Contact section - Migrate react-router v6→v7 and v7→v8 - Restructure specs: UI specs to specs/ui/, v2 specs to specs/v2/ - Add profile-photo assets (jpg + webp) - Update AGENTS.md, spec-v2.md index
This commit is contained in:
1 parent
02bad6036d
commit
d827bf9b23
37 files changed
+770
-443
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import { Link } from 'react-router-dom'
|
||||
import { Link } from 'react-router'
|
||||
import { profile } from '@/data/profile'
|
||||
|
||||
const footerLinks = [
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { useState, useEffect } from 'react'
|
||||
import { Link, NavLink, useLocation } from 'react-router-dom'
|
||||
import { Link, NavLink, useLocation } from 'react-router'
|
||||
import { useTheme } from '@/hooks/useTheme'
|
||||
|
||||
const navItems = [
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { resumeAvailable } from '@/data/resume'
|
||||
import { SectionHeading } from '@/components/ui/SectionHeading'
|
||||
import { profile } from '@/data/profile'
|
||||
|
||||
@@ -34,6 +35,19 @@ export function Contact() {
|
||||
<div style={{ fontSize: '14px', color: 'var(--text-muted)' }}>Your Name</div>
|
||||
</div>
|
||||
</a>
|
||||
{resumeAvailable && (
|
||||
<a href="/resume.pdf" download className="contact-link">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" width="24" height="24">
|
||||
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" />
|
||||
<polyline points="7 10 12 15 17 10" />
|
||||
<line x1="12" y1="15" x2="12" y2="3" />
|
||||
</svg>
|
||||
<div>
|
||||
<div style={{ fontWeight: 500, color: 'var(--text-primary)' }}>Download Resume</div>
|
||||
<div style={{ fontSize: '14px', color: 'var(--text-muted)' }}>PDF</div>
|
||||
</div>
|
||||
</a>
|
||||
)}
|
||||
</div>
|
||||
</section>
|
||||
)
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { resumeAvailable } from '@/data/resume'
|
||||
import { Button } from '@/components/ui/Button'
|
||||
import { SocialLinks } from '@/components/ui/SocialLinks'
|
||||
import { profile } from '@/data/profile'
|
||||
@@ -49,6 +50,11 @@ export function Hero() {
|
||||
<Button href="/projects" variant="primary">
|
||||
View Projects
|
||||
</Button>
|
||||
{resumeAvailable && (
|
||||
<Button href="/resume.pdf" variant="secondary" download>
|
||||
Download Resume
|
||||
</Button>
|
||||
)}
|
||||
<Button href="/contact" variant="secondary">
|
||||
Contact Me
|
||||
</Button>
|
||||
|
||||
@@ -8,6 +8,7 @@ interface ButtonProps extends ComponentPropsWithoutRef<'button'> {
|
||||
variant?: ButtonVariant
|
||||
size?: ButtonSize
|
||||
href?: string
|
||||
download?: boolean
|
||||
children: React.ReactNode
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user