Skip to content

Commit

Permalink
Add _blank target property to some routes
Browse files Browse the repository at this point in the history
  • Loading branch information
JohanMejia77 committed Sep 25, 2024
1 parent 8d1a163 commit 64584cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/Footer/FooterLinks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export function NavLinks() {
<li key={item.name} className="relative flex items-center justify-center xs:px-[.5em] ms:px-[.8em] after:absolute after:content-none xs:after:content-[''] after:right-[-4px] after:-translate-x-1/2 after:h-[1em] after:w-[4px] after:bg-secondary-lm">
<Link
href={item.path}
target="_blank"
target={item.target}
className="relative inline-block text-center after:content-[''] after:absolute after:bottom-0 after:left-0 after:w-full after:h-[2.5px] after:bg-secondary-lm after:scale-x-0 after:transform after:origin-bottom-right after:transition-transform hover:after:scale-x-100 hover:after:origin-bottom-left"
>
{item.name}
Expand Down
4 changes: 2 additions & 2 deletions src/lib/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,10 @@ export const PAYMENT_METHODS = [
export const REVIEWS_API = process.env.REVIEWS_API || "http://localhost:3005"

export const NAV_LINKS = [
{ name: 'Tienda', path: 'https://shop.actualizatucarro.com/' },
{ name: 'Tienda', path: 'https://shop.actualizatucarro.com/', target: '_blank' },
{ name: 'Nosotros', path: '/aboutUs' },
{ name: '¿Cómo comprar?', path: '/como-comprar' },
{ name: 'Blog', path: 'https://actualizatucarro.blogspot.com/' },
{ name: 'Blog', path: 'https://actualizatucarro.blogspot.com/', target: '_blank' },
];
export const SOCIALMEDIA_LINKS = [
{ name: "Facebook", src: "/icons/facebook.svg", path: "" },
Expand Down

0 comments on commit 64584cd

Please sign in to comment.