fix footer link open in new tab
This commit is contained in:
@@ -15,7 +15,6 @@ import BlackLogo14 from "../assets/BlackLogo14";
|
||||
import { navigateTo } from "../App";
|
||||
import { useState } from "react";
|
||||
import GlobalOffices from "./GlobalOffices";
|
||||
import { Link } from "react-router-dom";
|
||||
|
||||
const footerNavigation = {
|
||||
Explore: [
|
||||
@@ -206,12 +205,16 @@ const FooterSection = ({
|
||||
<ul className="space-y-3">
|
||||
{links.map((link) => (
|
||||
<li key={link.label}>
|
||||
<Link
|
||||
to={link.url}
|
||||
<a
|
||||
href={link.url || '#'}
|
||||
onClick={(e) => {
|
||||
e.preventDefault();
|
||||
navigateTo(link.url);
|
||||
}}
|
||||
className="text-[#CCCCCC] hover:text-white transition-colors duration-200 text-sm block py-1 hover:translate-x-1 transform cursor-pointer"
|
||||
>
|
||||
{link.label}
|
||||
</Link>
|
||||
</a>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
@@ -389,7 +392,7 @@ export const Footer = () => {
|
||||
links={footerNavigation.Explore}
|
||||
delay={0.1}
|
||||
/>
|
||||
|
||||
|
||||
{/* Combined Services & Company */}
|
||||
<div className="space-y-8">
|
||||
<FooterSection
|
||||
@@ -403,7 +406,7 @@ export const Footer = () => {
|
||||
delay={0.3}
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
||||
{/* Combined AI & ML with Resources */}
|
||||
<div className="space-y-8">
|
||||
<FooterSection
|
||||
@@ -417,13 +420,13 @@ export const Footer = () => {
|
||||
delay={0.5}
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
||||
<FooterSection
|
||||
title="Solutions"
|
||||
links={footerNavigation.Solutions}
|
||||
delay={0.6}
|
||||
/>
|
||||
|
||||
|
||||
<FooterSection
|
||||
title="Hire Talent"
|
||||
links={footerNavigation.HireTalent}
|
||||
|
||||
Reference in New Issue
Block a user