Skip to content

Commit

Permalink
refactor: components adjustments for landing page (#417)
Browse files Browse the repository at this point in the history
  • Loading branch information
jog1t committed Dec 29, 2024
1 parent 6c2b54f commit 64ef8fb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packages/components/src/header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ import { faBars } from "@rivet-gg/icons";
import { Icon } from "@rivet-gg/icons";
import type { ReactNode } from "react";
import { AssetImage } from "../asset-image";
import { cn } from "../lib/utils";
import { Button } from "../ui/button";
import { Flex } from "../ui/flex";
import { Sheet, SheetContent, SheetTrigger } from "../ui/sheet";
import { HeaderProgress } from "./header-progress";
import { NavItem } from "./nav-item";

interface HeaderProps {
className?: string;
mobileBreadcrumbs?: ReactNode;
breadcrumbs?: ReactNode;
subnav?: ReactNode;
Expand All @@ -20,6 +22,7 @@ interface HeaderProps {
}

export function Header({
className,
breadcrumbs,
subnav,
mobileBreadcrumbs,
Expand All @@ -43,7 +46,12 @@ export function Header({
),
}: HeaderProps) {
return (
<header className="bg-background/60 border-b-border sticky top-0 z-10 flex flex-col items-center border-b py-2 backdrop-blur">
<header
className={cn(
"bg-background/60 border-b-border sticky top-0 z-10 flex flex-col items-center border-b py-2 backdrop-blur",
className,
)}
>
{addons}
<div className="w-full px-8 flex min-h-10 flex-col justify-center gap-4">
<div className="flex w-full items-center gap-4">
Expand Down
5 changes: 5 additions & 0 deletions packages/components/src/ui/tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,15 @@ const WithTooltip = ({ trigger, content, ...rest }: WithTooltipProps) => {
);
};

const TooltipPortal = TooltipPrimitive.TooltipPortal;
const TooltipArrow = TooltipPrimitive.TooltipArrow;

export {
Tooltip,
TooltipTrigger,
TooltipContent,
TooltipProvider,
TooltipPortal,
TooltipArrow,
WithTooltip,
};

0 comments on commit 64ef8fb

Please sign in to comment.