chore: final layout
This commit is contained in:
19
app/routes/blog.tsx
Normal file
19
app/routes/blog.tsx
Normal 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>
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user