Spaces:
Build error
Build error
File size: 1,432 Bytes
75fefa7 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | import { Fragment } from "react";
import Button from "@/components/ui/shadcn/button";
import {
ConnectorToBottom,
ConnectorToLeft,
ConnectorToRight,
} from "@/components/shared/layout/curvy-rect";
import HeaderGithubClient from "@/components/shared/header/Github/GithubClient";
import { NAV_ITEMS } from "@/components/shared/header/Nav/Nav";
import HeaderDropdownMobileItem from "./Item/Item";
import Link from "next/link";
export default function HeaderDropdownMobile({
ctaHref = "/signin/signup",
ctaLabel = "Sign up",
}: {
ctaHref?: string;
ctaLabel?: string;
}) {
return (
<div className="container relative">
<div className="overlay border-x pointer-events-none border-border-faint" />
<ConnectorToBottom className="-top-1 -left-10" />
<ConnectorToBottom className="-top-1 -right-10" />
<div>
{NAV_ITEMS.map((item) => (
<Fragment key={item.label}>
<HeaderDropdownMobileItem item={item} />
</Fragment>
))}
</div>
<div className="p-24 flex flex-col gap-8 border-b border-border-faint relative -mt-1">
<HeaderGithubClient />
<Link href={ctaHref}>
<Button variant="secondary"> {ctaLabel} </Button>
</Link>
<ConnectorToRight className="left-0 -bottom-11" />
<ConnectorToLeft className="right-0 -bottom-11" />
</div>
<div className="h-36" />
</div>
);
}
|