Skip to content

Commit

Permalink
Stylistic updates
Browse files Browse the repository at this point in the history
  • Loading branch information
josh-collinsworth committed Nov 22, 2024
1 parent dc4fe7c commit 7908e0e
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions 404.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,7 @@ const styles = /*css*/ `
text-wrap: balance;
}`;

const scripts = /*js*/ `
const searchParams = new URLSearchParams(document.location.search);
const pathParam = searchParams.get("path");
const decodedPath = decodeURIComponent(pathParam);
document.getElementById("tried-path").innerText = decodedPath;
`;

export default function Page(props: Lume.Data, helpers: Lume.Helpers) {
export default function Page(props: Lume.Data, _helpers: Lume.Helpers) {
return (
<main
id="content"
Expand All @@ -40,13 +33,15 @@ export default function Page(props: Lume.Data, helpers: Lume.Helpers) {
<style>{styles}</style>
<div class="mt-8 mb-16 lg:mb-24">
<h1 class="text-2xl font-semibold sm:text-3xl md:text-4xl">
<div class="text-[400%] font-semibold text-runtime-300 opacity-50 relative -z-10">
404
</div>
Sorry, couldn’t find that page.
</h1>
<p class="md:text-lg mt-4">
Maybe one of these links has what you're looking for?
</p>
</div>
<script dangerouslySetInnerHTML={{ __html: scripts }} />

<props.comp.Sidebar
sidebar={sidebar}
Expand Down

0 comments on commit 7908e0e

Please sign in to comment.