diff --git a/docs/next-js/app/page.tsx b/docs/next-js/app/page.tsx index 15c1e6e..eccecc8 100644 --- a/docs/next-js/app/page.tsx +++ b/docs/next-js/app/page.tsx @@ -1,6 +1,6 @@ import Image from "next/image"; -import LocalNetCDFMeta from "../components/loading/LocalNetCDFMeta"; - +import LocalNetCDFMeta from "@/components/loading/LocalNetCDFMeta"; +import GithubButton from "@/components/loading/GitHubButton"; export default function Home() { return (
@@ -19,6 +19,10 @@ export default function Home() {
+ +
+ +
); diff --git a/docs/next-js/components/loading/GitHubButton.tsx b/docs/next-js/components/loading/GitHubButton.tsx new file mode 100644 index 0000000..1640fb6 --- /dev/null +++ b/docs/next-js/components/loading/GitHubButton.tsx @@ -0,0 +1,23 @@ +"use client"; + +import { FaGithub } from "react-icons/fa"; +import Link from "next/link"; +import { Button } from "@/components/ui/button"; +import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip"; + +export default function GithubButton() { + return ( + + + + + + + + github + + + ); +} \ No newline at end of file diff --git a/docs/next-js/components/ui/tooltip.tsx b/docs/next-js/components/ui/tooltip.tsx new file mode 100644 index 0000000..a4e90d4 --- /dev/null +++ b/docs/next-js/components/ui/tooltip.tsx @@ -0,0 +1,61 @@ +"use client" + +import * as React from "react" +import * as TooltipPrimitive from "@radix-ui/react-tooltip" + +import { cn } from "@/lib/utils" + +function TooltipProvider({ + delayDuration = 0, + ...props +}: React.ComponentProps) { + return ( + + ) +} + +function Tooltip({ + ...props +}: React.ComponentProps) { + return ( + + + + ) +} + +function TooltipTrigger({ + ...props +}: React.ComponentProps) { + return +} + +function TooltipContent({ + className, + sideOffset = 0, + children, + ...props +}: React.ComponentProps) { + return ( + + + {children} + + + + ) +} + +export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider } diff --git a/docs/next-js/package.json b/docs/next-js/package.json index e6102b0..81d2d2d 100644 --- a/docs/next-js/package.json +++ b/docs/next-js/package.json @@ -16,12 +16,14 @@ "@radix-ui/react-label": "^2.1.8", "@radix-ui/react-separator": "^1.1.8", "@radix-ui/react-slot": "^1.2.4", + "@radix-ui/react-tooltip": "^1.2.8", "class-variance-authority": "^0.7.1", "clsx": "^2.1.1", "lucide-react": "^0.562.0", "next": "16.1.1", "react": "19.2.3", "react-dom": "19.2.3", + "react-icons": "^5.5.0", "tailwind-merge": "^3.4.0" }, "devDependencies": {