Skip to content

Commit 467b0ec

Browse files
committed
style(web): add Nillion bridge background styling
Use the same background images and colors as bridge.nillion.network: - Light mode: light gray with decorative background image - Dark mode: deep purple with luminosity blend mode - White title text to contrast against colorful backgrounds
1 parent e63fae8 commit 467b0ec

File tree

4 files changed

+22
-15
lines changed

4 files changed

+22
-15
lines changed

public/bg-dark.png

639 KB
Loading

public/bg-light.png

639 KB
Loading

src/app/globals.css

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
:root {
3838
--radius: 0.625rem;
39-
--background: #f8fafc;
39+
--background: hsl(240 5% 96%);
4040
--foreground: #0f172a;
4141
--card: #ffffff;
4242
--card-foreground: #0f172a;
@@ -54,28 +54,32 @@
5454
--border: #e2e8f0;
5555
--input: #e2e8f0;
5656
--ring: #4f46e5;
57+
--bg-image: url("/bg-light.png");
58+
--bg-blend: normal;
5759
}
5860

5961
@media (prefers-color-scheme: dark) {
6062
:root {
61-
--background: #0f172a;
63+
--background: rgba(38, 18, 127, 1);
6264
--foreground: #f8fafc;
63-
--card: #1e293b;
65+
--card: rgba(30, 20, 80, 0.8);
6466
--card-foreground: #f8fafc;
65-
--popover: #1e293b;
67+
--popover: rgba(30, 20, 80, 0.9);
6668
--popover-foreground: #f8fafc;
6769
--primary: #818cf8;
6870
--primary-foreground: #0f172a;
69-
--secondary: #334155;
71+
--secondary: rgba(60, 40, 140, 0.5);
7072
--secondary-foreground: #f8fafc;
71-
--muted: #334155;
72-
--muted-foreground: #94a3b8;
73-
--accent: #334155;
73+
--muted: rgba(60, 40, 140, 0.5);
74+
--muted-foreground: #c4b5fd;
75+
--accent: rgba(60, 40, 140, 0.5);
7476
--accent-foreground: #f8fafc;
7577
--destructive: #ef4444;
76-
--border: #334155;
77-
--input: #334155;
78+
--border: rgba(100, 80, 180, 0.3);
79+
--input: rgba(60, 40, 140, 0.5);
7880
--ring: #818cf8;
81+
--bg-image: url("/bg-dark.png");
82+
--bg-blend: luminosity;
7983
}
8084
}
8185

@@ -87,10 +91,13 @@ body {
8791
"Segoe UI",
8892
sans-serif;
8993
background-color: var(--background);
90-
background-image:
91-
linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
92-
linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
93-
background-size: 50px 50px;
94+
background-image: var(--bg-image);
95+
background-size: cover;
96+
background-position: center;
97+
background-repeat: no-repeat;
98+
background-attachment: fixed;
99+
background-blend-mode: var(--bg-blend);
94100
color: var(--foreground);
95101
line-height: 1.5;
102+
min-height: 100vh;
96103
}

src/app/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default function Home(): React.JSX.Element {
1818
)}
1919
<div className="flex flex-col items-center gap-6 w-full max-w-lg text-center">
2020
<Image src="/nillion.jpg" alt="Nillion" width={64} height={64} className="rounded-2xl" />
21-
<h1 className="text-4xl font-bold tracking-tight">NIL Faucet</h1>
21+
<h1 className="text-4xl font-bold tracking-tight text-white">NIL Faucet</h1>
2222
<FaucetCard />
2323
</div>
2424
</main>

0 commit comments

Comments
 (0)