index.tsx 723 B

12345678910111213141516171819202122232425
  1. "use client";
  2. import clsx from "clsx";
  3. import type { HTMLAttributes } from "react";
  4. import Logo from "./logo.svg";
  5. import { MaxWidth } from "../MaxWidth";
  6. import { WalletButton } from "../WalletButton";
  7. export const Header = ({
  8. className,
  9. ...props
  10. }: Omit<HTMLAttributes<HTMLElement>, "children">) => (
  11. <header
  12. className={clsx("sticky top-0 mb-4 w-full px-4", className)}
  13. {...props}
  14. >
  15. <div className="border-x border-b border-neutral-600/50 bg-pythpurple-800">
  16. <MaxWidth className="flex h-16 items-center justify-between gap-8 sm:-mx-4">
  17. <Logo className="max-h-full py-4 text-pythpurple-100" />
  18. <WalletButton className="flex-none" />
  19. </MaxWidth>
  20. </div>
  21. </header>
  22. );