taxonomy/components/help.tsx
2022-11-06 14:40:19 +04:00

50 lines
1.4 KiB
TypeScript

"use client"
import { Popover } from "@/ui/popover"
import { Icons } from "@/components/icons"
import OgImage from "public/og.jpg"
import Image from "next/image"
export function Help() {
return (
<Popover>
<Popover.Trigger className="fixed right-4 bottom-4 inline-flex h-10 w-10 items-center justify-center rounded-full border bg-brand text-white">
<Icons.pizza className="h-5 w-5" />
</Popover.Trigger>
<Popover.Content className="bg-brand p-4 text-sm text-white">
<div className="grid w-[300px] gap-4">
<Image
src={OgImage}
alt="Screenshot"
className="overflow-hidden rounded-sm"
/>
<p>
This app is a work in progress. I&apos;m building this in public.
</p>
<p>
You can follow the progress on Twitter{" "}
<a
href="https://twitter.com/shadcn"
target="_blank"
rel="noreferrer"
className="border-b border-b-white"
>
@shadcn
</a>{" "}
or on{" "}
<a
href="https://github.com/shadcn/taxonomy"
target="_blank"
rel="noreferrer"
className="border-b border-b-white"
>
GitHub
</a>
.
</p>
</div>
</Popover.Content>
</Popover>
)
}