Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import Link from 'next/link'
import { useState } from 'react'
import { MenuProps } from './menu'
import { usePathname } from 'next/navigation'
import classNames from 'classnames'
import Image from 'next/image'
import { ExternalLink } from 'lucide-react'

export const DesktopMenu = ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ const MenuIcon = ({
isOpen: boolean
}) => {
return (
<div className="relative z-[5]">
<div className="relative z-5">
<button
className="bg-black rounded-full h-10 w-10 border-none cursor-pointer flex items-center justify-center"
onClick={handleClick}
Expand Down
3 changes: 2 additions & 1 deletion components/shared/layouts/header/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { Container } from 'components/shared/layouts/container/container'
import debounce from 'lodash/debounce'
import { useEffect, useRef, useState } from 'react'
import { Logo } from './components/logo/logo'
import classNames from 'classnames'
import { SanityImage } from 'types/image'
import { InternalOrExternalLink } from 'types/link'
import { resolveInternalOrExternalLink } from 'utils/link'
Expand Down Expand Up @@ -54,6 +53,7 @@ export const Header = ({ logo, items, donate }: Props) => {
div.style.transition = 'none'
div.style.boxShadow = 'none'
div.style.background = 'transparent'
div.style.overflow = 'hidden'
setIsSticky(false)
}
// set isSticky to true if the user has scrolled more than 80px
Expand All @@ -63,6 +63,7 @@ export const Header = ({ logo, items, donate }: Props) => {
div.style.position = 'fixed'
div.style.transform = 'translateY(-100%)'
div.style.background = '#fff'
div.style.overflow = 'visible'

setTimeout(() => {
div.style.transition = 'all 0.4s cubic-bezier(0.83, 0, 0.17, 1)'
Expand Down