Skip to content

Commit

Permalink
Add new Metal Mania font for /unauthorized + background void image
Browse files Browse the repository at this point in the history
  • Loading branch information
Reynard-G committed Oct 15, 2024
1 parent ce199cb commit c5cd643
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 6 deletions.
29 changes: 23 additions & 6 deletions app/routes/unauthorized.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,35 @@
import {
type MetaFunction,
} from "@remix-run/node";
import { type MetaFunction } from "@remix-run/node";

export const meta: MetaFunction = () => {
return [
{ title: "Unauthorized • Divinity" },
{ name: "description", content: "Whatcha doing here lil bro? You ain\'t supposed to be here! 😡" },
{
name: "description",
content: "Whatcha doing here lil bro? You ain't supposed to be here! 😡",
},
];
};

export default function Unauthorized() {
return (
<main className="relative h-dvh">
test
<main className="relative flex h-dvh items-center justify-center bg-black">
<img
className="relative z-10 object-contain mix-blend-luminosity duration-1000 animate-in fade-in"
src="/unauthorized.webp"
alt="Unauthorized"
width="1920"
height="1080"
/>

<div className="absolute inset-0 z-20 flex flex-col items-center justify-center gap-4 text-center font-metal_mania">
<h1 className="text-4xl font-bold text-white delay-500 duration-1000 animate-in fade-in slide-in-from-top-1 fill-mode-backwards">
Unauthorized
</h1>
<p className="max-w-md text-lg text-white delay-500 duration-1000 animate-in fade-in slide-in-from-bottom-1 fill-mode-backwards">
The void consumes all. You are not supposed to be here. Go back to
where you belong...
</p>
</div>
</main>
);
}
5 changes: 5 additions & 0 deletions app/tailwind.css
Original file line number Diff line number Diff line change
Expand Up @@ -213,3 +213,8 @@
font-weight: 700;
font-style: italic;
}

@font-face {
font-family: "Metal Mania";
src: url("/fonts/MetalMania-Regular.woff2") format("woff2");
}
Binary file added public/fonts/MetalMania-Regular.woff2
Binary file not shown.
Binary file added public/unauthorized.webp
Binary file not shown.
1 change: 1 addition & 0 deletions tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export default {
neue_haas_grotesk: ['"Neue Haas Grotesk"', "sans-serif"],
atskinon_hyperlegible: ['"Atskinon Hyperlegible"', "sans-serif"],
anta: ['"Anta"', "sans-serif"],
metal_mania: ['"Metal Mania"', "cursive"],
},
colors: {
border: "hsl(var(--border))",
Expand Down

0 comments on commit c5cd643

Please sign in to comment.