Skip to content

Commit d7a1c82

Browse files
committed
add blurred bg
1 parent d456795 commit d7a1c82

7 files changed

Lines changed: 842 additions & 284 deletions

File tree

app/layout.tsx

Lines changed: 34 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,47 @@
1+
import Background from "@/components/ui/background";
12
import { Footer } from "@/app/footer";
23
import { Header } from "@/app/header";
3-
import {
4-
geist,
5-
manrope,
6-
montserrat,
7-
poppins,
8-
unbounded,
9-
work,
10-
} from "@/lib/fonts";
11-
4+
import { geist } from "@/lib/fonts";
125
import { cn } from "@/lib/utils";
136
import { Providers } from "@/providers";
147
import type { Metadata } from "next";
158
import { Toaster } from "sonner";
169
import "./globals.css";
1710

1811
export const metadata: Metadata = {
19-
title: "Universal Hybrid Substrate Faucet",
20-
description: "A one-stop testnet faucet for all the substrate chains.",
12+
title: "Universal Hybrid Substrate Faucet",
13+
description: "A one-stop testnet faucet for all the substrate chains.",
2114
};
2215

2316
export default function RootLayout({
24-
children,
25-
}: Readonly<{
26-
children: React.ReactNode;
27-
}>) {
28-
return (
29-
<html lang="en">
30-
<body
31-
className={cn(
32-
geist.variable,
33-
manrope.variable,
34-
montserrat.variable,
35-
poppins.variable,
36-
unbounded.variable,
37-
work.variable,
38-
"antialiased bg-background text-foreground"
39-
)}
40-
>
41-
<Providers>
42-
<div className="flex flex-col place-items-center min-h-dvh w-full px-2 pt-1 pb-2">
43-
<Header />
44-
<main className="flex flex-col flex-1 items-center justify-items-center font-geist-sans w-full p-2 text-center gap-2">
45-
{children}
46-
</main>
47-
<Footer />
48-
</div>
49-
<Toaster richColors theme="dark" position="bottom-right" />
50-
</Providers>
51-
</body>
52-
</html>
53-
);
17+
children,
18+
}: {
19+
children: React.ReactNode;
20+
}) {
21+
return (
22+
<html lang="en">
23+
<body
24+
className={cn(
25+
geist.variable,
26+
"antialiased bg-background text-foreground"
27+
)}
28+
>
29+
<Providers>
30+
<Background />
31+
<div className="relative z-10 flex flex-col min-h-dvh w-full px-2 pt-1 pb-2 pointer-events-none">
32+
<div className="w-full pointer-events-auto">
33+
<Header />
34+
</div>
35+
<main className="flex flex-col flex-1 items-center justify-center font-geist-sans w-full p-2 text-center gap-2">
36+
{children}
37+
</main>
38+
<div className="w-full pointer-events-auto">
39+
<Footer />
40+
</div>
41+
</div>
42+
<Toaster richColors theme="dark" position="bottom-right" />
43+
</Providers>
44+
</body>
45+
</html>
46+
);
5447
}

app/page.tsx

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
import { RequestTokensForm } from "@/app/request-tokens-form";
22

33
export default async function Home() {
4-
return (
5-
<>
6-
<section className="flex flex-col items-center p-2 justify-items-center w-full max-w-2xl">
7-
<RequestTokensForm />
8-
</section>
9-
</>
10-
);
4+
return (
5+
<div className="pointer-events-auto flex h-full">
6+
<RequestTokensForm />
7+
</div>
8+
);
119
}

0 commit comments

Comments
 (0)