Skip to content

Commit 8c12c51

Browse files
committed
docs: fix hydration issue
1 parent ba8e8fa commit 8c12c51

File tree

1 file changed

+20
-17
lines changed

1 file changed

+20
-17
lines changed

packages/docs/pages/index.vue

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,28 @@
33
<!-- Hero Section with enhanced design -->
44
<section class="relative py-20 overflow-hidden">
55
<!-- Background falling blocks animation -->
6-
<div class="absolute inset-0 z-0 pointer-events-none overflow-hidden">
7-
<div class="falling-blocks-container">
8-
<div
9-
v-for="i in 20"
10-
:key="i"
11-
class="falling-block"
12-
:style="generateBlockStyle()"
13-
></div>
14-
<!-- JSON symbol blocks -->
15-
<div
16-
v-for="i in 10"
17-
:key="`json-${i}`"
18-
class="falling-json-symbol"
19-
:style="generateJsonSymbolStyle()"
20-
>
21-
{{ getRandomJsonSymbol() }}
6+
<ClientOnly>
7+
<div class="absolute inset-0 z-0 pointer-events-none overflow-hidden">
8+
<div class="falling-blocks-container">
9+
<div
10+
v-for="i in 20"
11+
:key="i"
12+
class="falling-block"
13+
:style="generateBlockStyle()"
14+
></div>
15+
<!-- JSON symbol blocks -->
16+
<div
17+
v-for="i in 10"
18+
:key="`json-${i}`"
19+
class="falling-json-symbol"
20+
:style="generateJsonSymbolStyle()"
21+
>
22+
{{ getRandomJsonSymbol() }}
23+
</div>
2224
</div>
2325
</div>
24-
</div>
26+
</ClientOnly>
27+
2528
<div class="container mx-auto px-4 relative z-10">
2629
<div class="max-w-4xl mx-auto text-center mb-12">
2730
<!-- Title with enhanced animation -->

0 commit comments

Comments
 (0)