chore: final layout

This commit is contained in:
Andrea
2023-03-07 12:10:29 +01:00
parent 0fc8c40fed
commit a844ec9845
11 changed files with 61 additions and 33 deletions

19
app/routes/blog.tsx Normal file
View File

@@ -0,0 +1,19 @@
import { Link, Outlet } from "@remix-run/react";
import { useMatch } from "~/hooks/useMatch";
export default function () {
const { handle } = useMatch();
return (
<div className="h-fit w-full flex flex-col items-center">
{handle && (
<Link
className="mt-5 hover:text-[#e6c2bf] text-xl font-bold"
to={handle.to}
>
{handle.text}
</Link>
)}
<Outlet />
</div>
);
}