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 Link from "next/link";
|
||||
import { ChevronLeftIcon, ChevronRightIcon } from "@heroicons/react/24/outline";
|
||||
import { Separator } from "@/components/ui/separator";
|
||||
|
||||
const DocsFooter = ({
|
||||
pages,
|
||||
@ -21,25 +22,28 @@ const DocsFooter = ({
|
||||
current < pages.length - 1 ? pages[current + 1] : undefined;
|
||||
|
||||
return (
|
||||
<footer className="mx-14 my-7 flex justify-between">
|
||||
{previous && (
|
||||
<Link
|
||||
className="flex gap-2 items-center"
|
||||
href={`/${previous.slug}` || "#"}
|
||||
>
|
||||
<ChevronLeftIcon className="w-4 h-4" />
|
||||
{previous.title}
|
||||
</Link>
|
||||
)}
|
||||
{next && (
|
||||
<Link
|
||||
className="ml-auto flex gap-2 items-center"
|
||||
href={`/${next.slug}` || "#"}
|
||||
>
|
||||
{next.title}
|
||||
<ChevronRightIcon className="w-4 h-4" />
|
||||
</Link>
|
||||
)}
|
||||
<footer className="mx-14 my-5 flex flex-col">
|
||||
<Separator className="mb-4" />
|
||||
<div className="flex justify-between">
|
||||
{previous && (
|
||||
<Link
|
||||
className="flex gap-2 items-center hover:opacity-75 transition-all transform-gpu group"
|
||||
href={`/${previous.slug}` || "#"}
|
||||
>
|
||||
<ChevronLeftIcon className="w-4 h-4 group-hover:-translate-x-0.5 transition-all transform-gpu" />
|
||||
{previous.title}
|
||||
</Link>
|
||||
)}
|
||||
{next && (
|
||||
<Link
|
||||
className="ml-auto flex gap-2 items-center hover:opacity-75 transition-all transform-gpu group"
|
||||
href={`/${next.slug}` || "#"}
|
||||
>
|
||||
{next.title}
|
||||
<ChevronRightIcon className="w-4 h-4 group-hover:translate-x-0.5 transition-all transform-gpu" />
|
||||
</Link>
|
||||
)}
|
||||
</div>
|
||||
</footer>
|
||||
);
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user