Skip to content

Commit

Permalink
fix: minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
esemyonov committed Dec 8, 2023
1 parent bef7eff commit 3d8726b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
15 changes: 5 additions & 10 deletions src/app/not-found.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,15 @@ import Link from "next/link";
export default function NotFound() {
return (
<div className="min-w-0 max-w-2xl flex-auto px-4 py-16 lg:max-w-none lg:pl-8 lg:pr-0 xl:px-16">
<div className="flex h-full flex-col items-center justify-center text-center">
<p className="font-display text-sm font-medium text-slate-900 dark:text-white">
404
</p>
<h1 className="mt-3 font-display text-3xl tracking-tight text-slate-900 dark:text-white">
<div className="flex h-full flex-col items-center justify-center text-center text-white dark:text-black">
<p className="font-display text-sm font-medium">404</p>
<h1 className="mt-3 font-display text-3xl tracking-tight">
Page not found
</h1>
<p className="mt-2 text-sm text-slate-500 dark:text-slate-400">
<p className="mt-2 text-sm">
Sorry, we couldn’t find the page you’re looking for.
</p>
<Link
href="/"
className="mt-8 text-sm font-medium text-slate-900 dark:text-white"
>
<Link href="/" className="mt-8 text-sm font-medium">
Go back to docs
</Link>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/app/policies/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ export default async function Page() {

return (
<DocsContainer className="w-full flex-col px-8 pb-[60px]">
<DocsHeader title="Policies" />
<Prose>
<DocsHeader title="Policies" />
<p>
Zuplo includes policies for any solution you need for securing and
sharing your API. See the{" "}
Expand Down
8 changes: 6 additions & 2 deletions src/components/DocsHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,12 @@ export function DocsHeader({ title }: { title?: string }) {
<header className="mb-5">
<div className="mb-10 flex items-center gap-x-[3px] text-sm leading-6 tracking-wider text-gray-600">
<Link href="#">Home</Link>
<ChevronRightIcon />
{section && <p className="">{section.label}</p>}
{section && (
<>
<ChevronRightIcon />
<p className="">{section.label}</p>
</>
)}
</div>

{title && (
Expand Down

0 comments on commit 3d8726b

Please sign in to comment.