fixes
This commit is contained in:
parent
68d05d529b
commit
54e7433a5c
24
app/root.tsx
24
app/root.tsx
@ -32,7 +32,7 @@ export const meta: MetaFunction = () => [
|
|||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
export default function App() {
|
export function Layout({ children }: React.PropsWithChildren) {
|
||||||
return (
|
return (
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
@ -51,7 +51,7 @@ export default function App() {
|
|||||||
/>
|
/>
|
||||||
</head>
|
</head>
|
||||||
<Body>
|
<Body>
|
||||||
<Outlet />
|
{children}
|
||||||
<ScrollRestoration />
|
<ScrollRestoration />
|
||||||
<Scripts />
|
<Scripts />
|
||||||
</Body>
|
</Body>
|
||||||
@ -59,17 +59,15 @@ export default function App() {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export default function App() {
|
||||||
|
return <Outlet />;
|
||||||
|
}
|
||||||
|
|
||||||
export function ErrorBoundary() {
|
export function ErrorBoundary() {
|
||||||
const error = useRouteError();
|
const error = useRouteError();
|
||||||
|
|
||||||
if (isRouteErrorResponse(error)) {
|
if (isRouteErrorResponse(error)) {
|
||||||
return (
|
return (
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<Meta />
|
|
||||||
<Links />
|
|
||||||
</head>
|
|
||||||
<Body>
|
|
||||||
<div className="flex flex-col items-center justify-around h-[100vh]">
|
<div className="flex flex-col items-center justify-around h-[100vh]">
|
||||||
<div>
|
<div>
|
||||||
<div className="text-center text-[#ffff00] text-[10vw] font-bold">
|
<div className="text-center text-[#ffff00] text-[10vw] font-bold">
|
||||||
@ -83,18 +81,10 @@ export function ErrorBoundary() {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</Body>
|
|
||||||
</html>
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<Meta />
|
|
||||||
<Links />
|
|
||||||
</head>
|
|
||||||
<Body>
|
|
||||||
<div className="flex flex-col items-center justify-around h-[100vh]">
|
<div className="flex flex-col items-center justify-around h-[100vh]">
|
||||||
<div>
|
<div>
|
||||||
<div className="text-center text-[#ffff00] text-[6vw] font-bold">
|
<div className="text-center text-[#ffff00] text-[6vw] font-bold">
|
||||||
@ -107,7 +97,5 @@ export function ErrorBoundary() {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</Body>
|
|
||||||
</html>
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -56,7 +56,7 @@ export default function Post() {
|
|||||||
const MdxComponent = React.useMemo(() => getMDXComponent(code), [code]);
|
const MdxComponent = React.useMemo(() => getMDXComponent(code), [code]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<div className="mx-2">
|
||||||
<header>
|
<header>
|
||||||
<Title>{title}</Title>
|
<Title>{title}</Title>
|
||||||
<span>
|
<span>
|
||||||
@ -92,6 +92,6 @@ export default function Post() {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
</>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -12,7 +12,7 @@ export default function Blog() {
|
|||||||
const posts = useLoaderData<typeof loader>();
|
const posts = useLoaderData<typeof loader>();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<div className="mx-2">
|
||||||
<LinkWrapper>
|
<LinkWrapper>
|
||||||
<Link to="/">Home</Link>
|
<Link to="/">Home</Link>
|
||||||
</LinkWrapper>
|
</LinkWrapper>
|
||||||
@ -22,6 +22,6 @@ export default function Blog() {
|
|||||||
<PostPreview {...post} key={post.title} />
|
<PostPreview {...post} key={post.title} />
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
</>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user