make this look a bit better
All checks were successful
Deploy / deploy (ubuntu-latest, 2.44.0) (push) Successful in 51s
All checks were successful
Deploy / deploy (ubuntu-latest, 2.44.0) (push) Successful in 51s
Took 6 minutes
This commit is contained in:
parent
05a480d41b
commit
4e5e64b390
@ -4,6 +4,7 @@ import { ReactElement } from "react";
|
|||||||
import { usePathname } from "next/navigation";
|
import { usePathname } from "next/navigation";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import { ChevronLeftIcon, ChevronRightIcon } from "@heroicons/react/24/outline";
|
import { ChevronLeftIcon, ChevronRightIcon } from "@heroicons/react/24/outline";
|
||||||
|
import { Separator } from "@/components/ui/separator";
|
||||||
|
|
||||||
const DocsFooter = ({
|
const DocsFooter = ({
|
||||||
pages,
|
pages,
|
||||||
@ -21,25 +22,28 @@ const DocsFooter = ({
|
|||||||
current < pages.length - 1 ? pages[current + 1] : undefined;
|
current < pages.length - 1 ? pages[current + 1] : undefined;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<footer className="mx-14 my-7 flex justify-between">
|
<footer className="mx-14 my-5 flex flex-col">
|
||||||
{previous && (
|
<Separator className="mb-4" />
|
||||||
<Link
|
<div className="flex justify-between">
|
||||||
className="flex gap-2 items-center"
|
{previous && (
|
||||||
href={`/${previous.slug}` || "#"}
|
<Link
|
||||||
>
|
className="flex gap-2 items-center hover:opacity-75 transition-all transform-gpu group"
|
||||||
<ChevronLeftIcon className="w-4 h-4" />
|
href={`/${previous.slug}` || "#"}
|
||||||
{previous.title}
|
>
|
||||||
</Link>
|
<ChevronLeftIcon className="w-4 h-4 group-hover:-translate-x-0.5 transition-all transform-gpu" />
|
||||||
)}
|
{previous.title}
|
||||||
{next && (
|
</Link>
|
||||||
<Link
|
)}
|
||||||
className="ml-auto flex gap-2 items-center"
|
{next && (
|
||||||
href={`/${next.slug}` || "#"}
|
<Link
|
||||||
>
|
className="ml-auto flex gap-2 items-center hover:opacity-75 transition-all transform-gpu group"
|
||||||
{next.title}
|
href={`/${next.slug}` || "#"}
|
||||||
<ChevronRightIcon className="w-4 h-4" />
|
>
|
||||||
</Link>
|
{next.title}
|
||||||
)}
|
<ChevronRightIcon className="w-4 h-4 group-hover:translate-x-0.5 transition-all transform-gpu" />
|
||||||
|
</Link>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user