Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(EW): reproduce original navigation #195

Merged
merged 8 commits into from
Jun 21, 2024
Merged
Show file tree
Hide file tree
Changes from 5 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
91 changes: 0 additions & 91 deletions apps/epic-web/src/components/navigation.tsx

This file was deleted.

39 changes: 39 additions & 0 deletions apps/epic-web/src/components/navigation/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
'use client'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

converted this component to the "client" because we need framer-motion here (for animation when sale banner appears above, not implemented yet)


import * as React from 'react'
import { Links } from '@/components/navigation/links'
import { cn } from '@/utils/cn'
import { motion } from 'framer-motion'

type NavigationProps = {
className?: string
navigationContainerClassName?: string
}

const Navigation: React.FC<NavigationProps> = ({
className,
navigationContainerClassName,
}) => {
return (
<>
<motion.div
className={cn(
`border-foreground/5 dark:bg-background/90 fixed left-0 top-0 z-50 flex w-full flex-col items-center justify-center border-b bg-white/95 shadow shadow-gray-300/20 backdrop-blur-md transition dark:shadow-xl dark:shadow-black/20 print:hidden`,
navigationContainerClassName,
)}
>
<nav
aria-label="top"
className={cn(
'relative mx-auto flex h-12 w-full max-w-screen-lg items-center justify-between px-3 text-sm',
className,
)}
>
<Links />
</nav>
</motion.div>
</>
)
}

export default Navigation
Loading
Loading