Skip to content

Commit e660096

Browse files
authored
Merge pull request #12 from rahulapjs/patch
refactor: replace anchor tags with Link components for internal navigation
2 parents c1cc602 + b7d2130 commit e660096

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/components/Hero/Hero.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { ArrowRight, Github, Linkedin, Mail, FileText } from 'lucide-react';
44
import GlassCard from '../GlassCard/GlassCard';
55
import { resumeData } from '../../data/resume';
66
import './Hero.scss';
7+
import { Link } from 'react-router-dom';
78

89
const Hero: React.FC = () => {
910
const containerVariants = {
@@ -53,12 +54,12 @@ const Hero: React.FC = () => {
5354
</motion.p>
5455

5556
<motion.div variants={itemVariants} className="cta-group">
56-
<a href="/projects" className="primary-btn">
57+
<Link to="/projects"className="primary-btn">
5758
View Work <ArrowRight size={18} />
58-
</a>
59-
<a href="/contact" className="secondary-btn">
59+
</Link>
60+
<Link to="/contact" className="secondary-btn">
6061
Contact Me
61-
</a>
62+
</Link>
6263
</motion.div>
6364

6465
<motion.div variants={itemVariants} className="social-links">

0 commit comments

Comments
 (0)