Skip to content

Commit

Permalink
sticky header
Browse files Browse the repository at this point in the history
  • Loading branch information
ignmandagaran committed Apr 11, 2024
1 parent cafcaba commit acb35ba
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -134,3 +134,4 @@ dist
/playwright-report/
/blob-report/
/playwright/.cache/
.env*.local
2 changes: 1 addition & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default function RootLayout({ children }: { children: ReactNode }) {
<head>
<Analytics />
</head>
<body className="flex h-full flex-col">{children}</body>
<body>{children}</body>
</html>
)
}
5 changes: 3 additions & 2 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import FAQ from '~/components/sections/FAQ'
import DynamicAnalysis from '~/components/sections/DynamicAnalysis'
import { Content } from '~/components/sections/Content'
import { HyperSpace } from '~/components/Hyper'

export default function Home() {
return (
<Pump
Expand All @@ -23,11 +24,11 @@ export default function Home() {
'use server'
return (
<>
<Header />
<main>
<div className="relative">
<Header />
<Hero {...landingPage} />
<div style={{ zIndex: -1 }} className=" absolute inset-0 w-full">
<div style={{ zIndex: -1 }} className="absolute inset-0 w-full">
<HyperSpace
cx={-10}
cy={75}
Expand Down
3 changes: 1 addition & 2 deletions src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,8 @@ function MobileNavigation() {
export function Header({ variant }: { variant?: 'dark' | 'light' }) {
return (
<header
aria-label="Header"
className={classNames(
'py-10',
'sticky top-0 z-50 py-10 backdrop-blur-md backdrop-saturate-150 backdrop-filter',
variant === 'dark' ? 'bg-slate-900 text-slate-100 ' : 'bg-transparent text-slate-900'
)}
>
Expand Down

0 comments on commit acb35ba

Please sign in to comment.