Skip to content

Commit cf9e035

Browse files
committed
Fix routing for GitHub Pages using HashRouter paths
1 parent 6199631 commit cf9e035

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/components/layout/Footer.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const Footer: React.FC = () => {
1111
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8">
1212
{/* Logo and Description */}
1313
<div className="space-y-4 text-center md:text-left">
14-
<Link to="/" className="inline-block">
14+
<Link to="/#/" className="inline-block">
1515
<img
1616
src={logo}
1717
alt="LCM Logo"
@@ -44,7 +44,7 @@ const Footer: React.FC = () => {
4444
</Link>
4545
</li>
4646
<li>
47-
<Link to="/team" className="text-white/70 hover:text-white transition-colors">
47+
<Link to="#/team" className="text-white/70 hover:text-white transition-colors">
4848
Team
4949
</Link>
5050
</li>
@@ -56,12 +56,12 @@ const Footer: React.FC = () => {
5656
<h3 className="font-display text-lg font-semibold text-white mb-4">Company</h3>
5757
<ul className="space-y-2">
5858
<li>
59-
<Link to="/careers" className="text-white/70 hover:text-white transition-colors">
59+
<Link to="#/careers" className="text-white/70 hover:text-white transition-colors">
6060
Careers
6161
</Link>
6262
</li>
6363
<li>
64-
<Link to="/faq" className="text-white/70 hover:text-white transition-colors">
64+
<Link to="#/faq" className="text-white/70 hover:text-white transition-colors">
6565
FAQ
6666
</Link>
6767
</li>

src/components/layout/Header.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ const navLinks = [
99
{ name: 'Technology', href: '/#technology' },
1010
{ name: 'Benefits', href: '/#benefits' },
1111
{ name: 'Integration', href: '/#integration' },
12-
{ name: 'Timeline', href: '/timeline' },
13-
{ name: 'Team', href: '/team' },
14-
{ name: 'Careers', href: '/careers' },
15-
{ name: 'FAQ', href: '/faq' },
12+
{ name: 'Timeline', href: '#/timeline' },
13+
{ name: 'Team', href: '#/team' },
14+
{ name: 'Careers', href: '#/careers' },
15+
{ name: 'FAQ', href: '#/faq' },
1616
];
1717

1818
const Header: React.FC = () => {

src/pages/Team.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ const Team: React.FC = () => (
247247
Join our team of innovators and help revolutionize how electric vehicles charge.
248248
</p>
249249
<motion.a
250-
href="/careers"
250+
href="#/careers"
251251
className="inline-block bg-primary-500 hover:bg-primary-600 text-white px-8 py-3 rounded-full font-medium transition-colors"
252252
whileHover={{ scale: 1.05 }}
253253
whileTap={{ scale: 0.95 }}

0 commit comments

Comments
 (0)