Skip to content

Commit

Permalink
Improve header
Browse files Browse the repository at this point in the history
  • Loading branch information
haydenbleasel committed Dec 10, 2024
1 parent 3673ce7 commit 0064fa2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion components/header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Logo from './logo.jpg';
import { MobileMenu } from './mobile-menu';

export const Header = () => (
<HeaderProvider className="container fixed top-0 right-0 left-0 z-50 mx-auto flex items-center justify-between border-transparent border-x border-b px-4 py-2 transition-all sm:py-4">
<HeaderProvider className="container fixed top-0 right-0 left-0 z-50 mx-auto flex items-center justify-between border-x bg-backdrop/90 px-4 py-2 backdrop-blur-md transition-all sm:py-4">
<div className="w-32">
<ViewAnimation
initial={{ opacity: 0, translateY: -8 }}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "website1",
"name": "haydenbleasel",
"version": "0.1.0",
"private": true,
"scripts": {
Expand Down
7 changes: 1 addition & 6 deletions providers/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,7 @@ export const HeaderProvider = ({
}, []);

return (
<header
className={cn(
className,
isScrolled && 'border-border bg-backdrop/90 backdrop-blur-md'
)}
>
<header className={cn(className, isScrolled && 'border-b')}>
{children}
</header>
);
Expand Down

0 comments on commit 0064fa2

Please sign in to comment.