Skip to content

Commit 0ccb921

Browse files
committed
design tweaks
1 parent 8dfcad2 commit 0ccb921

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

src/App.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -688,6 +688,12 @@ function App() {
688688

689689
return (
690690
<main className="landing">
691+
<svg width="0" height="0" aria-hidden="true" style={{ position: "absolute" }}>
692+
<filter id="grain">
693+
<feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch" />
694+
<feColorMatrix type="saturate" values="0" />
695+
</filter>
696+
</svg>
691697
<span className="landing-noise" aria-hidden="true" />
692698

693699
<section className="landing-loader" aria-label="Loading indicator">

src/index.css

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,15 @@ body {
5858
mask-image: radial-gradient(circle at center, #000 40%, transparent 100%);
5959
}
6060

61+
.landing-noise::before {
62+
content: "";
63+
position: absolute;
64+
inset: 0;
65+
opacity: 0.55;
66+
filter: url(#grain);
67+
background: transparent;
68+
}
69+
6170
.landing-loader {
6271
position: absolute;
6372
top: 53%;
@@ -100,7 +109,7 @@ body {
100109
max-width: 100%;
101110
min-width: 0;
102111
margin-bottom: clamp(0.32rem, 1.3vw, 0.9rem);
103-
animation: landing-rise 900ms ease-out both;
112+
animation: landing-rise 900ms ease-out 1.1s both;
104113
}
105114

106115
.landing-tag {

0 commit comments

Comments
 (0)