Skip to content

Commit 2a097db

Browse files
committed
Tone down cyber grid background
1 parent d93f0de commit 2a097db

3 files changed

Lines changed: 34 additions & 13 deletions

File tree

packages/templates/next-export-ui/app/globals.css

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@
5252
--th-success: hsl(142 70% 35%);
5353
--th-danger: hsl(0 84% 60%);
5454
--th-grid: hsl(190 100% 50% / 0.05);
55-
--th-grid-strong: hsl(190 100% 50% / 0.75);
56-
--th-glow-left: hsl(190 100% 50% / 0.18);
57-
--th-glow-right: hsl(300 100% 75% / 0.18);
55+
--th-grid-strong: hsl(190 100% 50% / 0.34);
56+
--th-glow-left: hsl(190 100% 50% / 0.1);
57+
--th-glow-right: hsl(300 100% 75% / 0.08);
5858
--th-shadow: 4px 4px 0 rgba(0, 0, 0, 0.03);
5959
--th-shadow-soft: 4px 4px 0 rgba(0, 0, 0, 0.03);
6060
--th-badge-bg: hsl(0 0% 100%);
@@ -96,9 +96,9 @@ html[data-theme='dark'] {
9696
--th-success: hsl(142 70% 45%);
9797
--th-danger: hsl(0 100% 60%);
9898
--th-grid: hsl(300 100% 75% / 0.04);
99-
--th-grid-strong: hsl(300 100% 75% / 0.75);
100-
--th-glow-left: hsl(190 100% 50% / 0.14);
101-
--th-glow-right: hsl(300 100% 60% / 0.12);
99+
--th-grid-strong: hsl(300 100% 75% / 0.32);
100+
--th-glow-left: hsl(190 100% 50% / 0.08);
101+
--th-glow-right: hsl(300 100% 60% / 0.08);
102102
--th-shadow: none;
103103
--th-shadow-soft: none;
104104
--th-badge-bg: hsl(240 10% 8%);
@@ -166,10 +166,10 @@ svg {
166166
inset: 0;
167167
position: absolute;
168168
background-image:
169-
linear-gradient(to right, color-mix(in srgb, var(--th-primary) 16%, transparent) 29px, transparent 29px),
170-
linear-gradient(to bottom, color-mix(in srgb, var(--th-primary) 16%, transparent) 29px, transparent 29px),
171-
linear-gradient(to right, color-mix(in srgb, var(--th-primary) 75%, transparent) 2px, transparent 2px),
172-
linear-gradient(to bottom, color-mix(in srgb, var(--th-primary) 75%, transparent) 2px, transparent 2px);
169+
linear-gradient(to right, color-mix(in srgb, var(--th-primary) 10%, transparent) 29px, transparent 29px),
170+
linear-gradient(to bottom, color-mix(in srgb, var(--th-primary) 10%, transparent) 29px, transparent 29px),
171+
linear-gradient(to right, color-mix(in srgb, var(--th-primary) 34%, transparent) 2px, transparent 2px),
172+
linear-gradient(to bottom, color-mix(in srgb, var(--th-primary) 34%, transparent) 2px, transparent 2px);
173173
background-repeat: repeat;
174174
background-size: 30px 30px, 30px 30px, 30px 30px, 30px 30px;
175175
-webkit-mask-image:
@@ -184,6 +184,7 @@ svg {
184184
mask-composite: add;
185185
-webkit-mask-repeat: no-repeat;
186186
mask-repeat: no-repeat;
187+
opacity: 0.52;
187188
}
188189

189190
.siteLivingGridCanvas {
@@ -194,7 +195,11 @@ svg {
194195
}
195196

196197
html[data-theme='dark'] .siteLivingGridCanvas {
197-
opacity: 0.9;
198+
opacity: 0.72;
199+
}
200+
201+
html[data-theme='dark'] .siteGridLayer {
202+
opacity: 0.66;
198203
}
199204

200205
.container {

packages/templates/next-export-ui/app/layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import Link from 'next/link';
66
import ConnectButton from '../src/components/ConnectButton';
77
import FaucetButton from '../src/components/FaucetButton';
88
import FooterDeploymentMeta from '../src/components/FooterDeploymentMeta';
9-
import LivingGrid from '../src/components/LivingGrid';
9+
import HomeOnlyLivingGrid from '../src/components/HomeOnlyLivingGrid';
1010
import NetworkStatus from '../src/components/NetworkStatus';
1111
import ThemeToggle from '../src/components/ThemeToggle';
1212
import { primaryCollection, ths } from '../src/lib/ths';
@@ -45,7 +45,7 @@ export default function RootLayout(props: { children: React.ReactNode }) {
4545
<script dangerouslySetInnerHTML={{ __html: themeBootScript }} />
4646
<div className="siteBackground" aria-hidden="true">
4747
<div className="siteGridLayer" />
48-
<LivingGrid />
48+
<HomeOnlyLivingGrid />
4949
</div>
5050
<div className="container">
5151
<header className="navShell">
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
'use client';
2+
3+
import React from 'react';
4+
import { usePathname } from 'next/navigation';
5+
6+
import LivingGrid from './LivingGrid';
7+
8+
export default function HomeOnlyLivingGrid() {
9+
const pathname = usePathname();
10+
11+
if (pathname && pathname !== '/') {
12+
return null;
13+
}
14+
15+
return <LivingGrid />;
16+
}

0 commit comments

Comments
 (0)