fix: gate hero fade-up on SSR pass only to stop double-fire on WASM hydration

This commit is contained in:
daniel-c-harvey
2026-06-07 12:57:54 -04:00
parent ba31e124f2
commit 8ba3a10e15
@@ -1,10 +1,14 @@
<div class="hero-eyebrow fade-up">Charleston, South Carolina</div>
<h1 class="hero-title fade-up">Deep<br /><em>DRFT</em></h1>
<p class="hero-subtitle fade-up">Electronic Music Collective</p>
<p class="hero-desc fade-up">
<div class="hero-eyebrow @AnimClass">Charleston, South Carolina</div>
<h1 class="hero-title @AnimClass">Deep<br /><em>DRFT</em></h1>
<p class="hero-subtitle @AnimClass">Electronic Music Collective</p>
<p class="hero-desc @AnimClass">
We craft immersive electronic soundscapes &mdash; live; built from synthesizers, drum machines, and raw intention.
</p>
<div class="hero-actions fade-up">
<div class="hero-actions @AnimClass">
<a class="btn-primary" href="/tracks">Start Streaming</a>
<a class="btn-ghost" href="/tracks">Browse Tracks</a>
</div>
</div>
@code {
private string AnimClass => RendererInfo.IsInteractive ? string.Empty : "fade-up";
}