Skip to content

Commit

Permalink
fix: ajuste links
Browse files Browse the repository at this point in the history
  • Loading branch information
RodolfoN1 committed Mar 21, 2024
1 parent 1121c0f commit f95d9f2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions components/header/NavItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,10 @@ function NavItem({ item, btnTextMenu, btnUrlMenu }: Props) {
}
group flex justify-between text-16 font-archimoto-medium uppercase whitespace-nowrap is-${nameItemScape} items-center`)}
>
{/* <a href={url} class="overflow-y-hidden h-5 pointer-events-none"> */}
<a href="#" class="overflow-y-hidden h-5 pointer-events-none mr-[10px]">
<a
href={`${url ? url : "javascript:void(0)"}`}
style={{ pointerEvents: `${url ? "all" : "none"}` }}
class="overflow-y-hidden h-5 mr-[10px]">
<span class="-translate-y-5 group-hover:translate-y-0 leading-5 transition-all text-xs flex moveFromTop duration-500 font-black">
{name}
</span>
Expand Down Expand Up @@ -131,10 +133,10 @@ function NavItem({ item, btnTextMenu, btnUrlMenu }: Props) {
{children.map((node) => {
return (
<li class="py-6 n1-header__navlink-children">
{/* <a class="hover:underline overflow-hidden block rounded-[10px]" href={node.url}> */}
<a
href={`${node?.url ? node?.url : "javascript:void(0)"}`}
style={{ pointerEvents: `${node?.url ? "all" : "none"}` }}
class="hover:underline overflow-hidden block rounded-[8px]"
href="#"
>
{node.image?.map((i) => {
if (!i) return null;
Expand Down

0 comments on commit f95d9f2

Please sign in to comment.