Skip to content

Commit e234398

Browse files
committed
style: vaulta homepage light mode
1 parent 266badf commit e234398

1 file changed

Lines changed: 58 additions & 13 deletions

File tree

src/routes/[network]/(homepage)/components/hero.svelte

Lines changed: 58 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -177,13 +177,19 @@
177177
class="@container col-span-full grid h-[70svh] max-h-156 place-content-center sm:pt-12 md:pt-0"
178178
>
179179
<Stack class="relative grid justify-items-center gap-5 text-center">
180-
<img
181-
class="relative z-50 mb-8"
182-
src={vaultaLogo}
183-
alt={networkName}
184-
fetchpriority="high"
185-
loading="eager"
186-
/>
180+
<svg
181+
class="z-50 mb-2 h-auto w-64"
182+
width="81"
183+
height="33"
184+
viewBox="0 0 81 33"
185+
fill="none"
186+
xmlns="http://www.w3.org/2000/svg"
187+
>
188+
<path
189+
d="M53.9058 8.10812H42.9195C42.4884 8.10812 42.0742 8.27376 41.7692 8.56834L16.4699 33H0V9.47065L9.79565 0.00043682V26.2295H11.1953L36.759 1.54238C37.7818 0.554629 39.1685 0 40.6146 0H53.9058V8.10855V8.10812ZM81 0H64.5297L39.2308 24.4312C38.9258 24.7258 38.5116 24.8912 38.0805 24.8912H27.0942V32.9996H40.3739C41.8274 32.9996 43.2214 32.4423 44.2487 31.4495L69.8042 6.77093H71.2039V28.9321H55.4209V33H71.2039L72.6579 31.5944L74.0137 30.2837L81 23.5298V0Z"
190+
fill="currentColor"
191+
/>
192+
</svg>
187193

188194
<h1
189195
class="max-w-128 text-3xl leading-tight font-bold text-balance lg:text-4xl lg:leading-tight"
@@ -193,7 +199,9 @@
193199
network: networkName
194200
})}.
195201
</h1>
196-
<p class="text-muted mb-2 text-xl leading-tight text-balance lg:text-xl lg:leading-tight">
202+
<p
203+
class="text-muted mb-2 max-w-md rounded-lg text-xl leading-tight text-pretty backdrop-blur lg:text-xl lg:leading-tight"
204+
>
197205
{m.homepage_hero_description({
198206
network: networkName
199207
})}
@@ -203,7 +211,7 @@
203211
<!-- <div class="grid gap-4 @2xl:grid-cols-2"> -->
204212
<!-- <Button variant="primary">Create your Vaulta account</Button> -->
205213
<Button
206-
class="text-primary bg-black/20 backdrop-blur"
214+
class="text-primary bg-surface-container-lowest/20 backdrop-blur"
207215
href="https://www.vaulta.com/resources/opening-the-gateway-to-web3-banking"
208216
>
209217
About the Vaulta rebrand
@@ -220,11 +228,17 @@
220228
height="300"
221229
class="hidden"
222230
>
223-
<filter id="n" x="0" y="0" width="100%" height="100%">
231+
<filter id="nd" x="0" y="0" width="100%" height="100%">
224232
<feTurbulence type="fractalNoise" baseFrequency="0.4" />
225233
<feColorMatrix type="saturate" values="0" />
226234
<feBlend in="SourceGraphic" mode="multiply" />
227235
</filter>
236+
237+
<filter id="nl" x="0" y="0" width="100%" height="100%">
238+
<feTurbulence type="fractalNoise" baseFrequency="0.5" />
239+
<feColorMatrix type="saturate" values="0" />
240+
<feBlend in="SourceGraphic" mode="screen" />
241+
</filter>
228242
</svg>
229243

230244
<style>
@@ -233,15 +247,46 @@
233247
contain: paint;
234248
}
235249
250+
[data-scheme='light'] {
251+
body::before {
252+
background: linear-gradient(to bottom, transparent 60svh, var(--color-background) 95svh),
253+
radial-gradient(
254+
farthest-side at 150% 30%,
255+
var(--color-background),
256+
#2e3bff30 30%,
257+
oklch(from var(--color-primary) l c calc(h - 10) / 0.4) 45%,
258+
oklch(from var(--color-primary) l c calc(h - 10) / 0.6) 50%,
259+
transparent 65%
260+
),
261+
radial-gradient(
262+
circle at top 0rem left -60%,
263+
var(--color-background),
264+
#2e3bff50 5%,
265+
oklch(from var(--color-primary) l c calc(h - 10) / 0.9) 10%,
266+
transparent 50%
267+
),
268+
var(--color-background);
269+
background-repeat: no-repeat;
270+
background-size:
271+
100% 100%,
272+
100% 300vh,
273+
100% 100vh;
274+
position: absolute;
275+
inset: 0;
276+
content: '';
277+
filter: url(#nl);
278+
}
279+
}
280+
236281
body::before {
237282
background: linear-gradient(to bottom, transparent 70svh, var(--color-background) 90svh),
238283
radial-gradient(
239284
farthest-side at 150% 30%,
240285
#190d1c,
241286
#190d1c 30%,
242287
#2e3bff30 40%,
243-
#667cff80 55%,
244-
#667cff99 56%,
288+
#667cff80 52%,
289+
#667cff95 56%,
245290
#667cff90 57%,
246291
transparent 65%
247292
),
@@ -262,7 +307,7 @@
262307
position: absolute;
263308
inset: 0;
264309
content: '';
265-
filter: url(#n);
310+
filter: url(#nd);
266311
}
267312
268313
/* Safari can't use the noise filter */

0 commit comments

Comments
 (0)