Skip to content

Commit c706a25

Browse files
authored
Center the gear on the homepage (#207)
1 parent 1586143 commit c706a25

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/routes/+page.svelte

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,15 @@
1919
<h1 class="md:col-span-2 text-5xl md:text-7xl py-6 md:py-12 self-center px-2 md:px-4">
2020
Text-to-CAD <span class="text-green">Generator</span>
2121
</h1>
22-
<div class="z-10 relative border md:border-b-0 md:col-span-1 min-h-[25vh]">
22+
<div
23+
class="z-10 relative border md:border-b-0 md:col-span-1 min-h-[25vh] flex items-center justify-center"
24+
>
2325
<div
24-
class="animate-reveal absolute inset-0 -top-1/4 opacity-80 md:opacity-100 md:-top-full"
26+
class="animate-reveal opacity-80 md:opacity-100 w-full h-full flex items-center justify-center"
2527
style={`--delay-steps: ${examples[0].prompt.length}`}
2628
>
27-
<Canvas>
28-
<ModelViewer dataUrl={examples[0].model} pausable={false} />
29+
<Canvas class="w-full h-full">
30+
<ModelViewer dataUrl={examples[0].model} pausable={false} class="w-full h-full" />
2931
</Canvas>
3032
</div>
3133
</div>
@@ -36,7 +38,7 @@
3638
class="typing-animation block text-chalkboard-70 dark:text-chalkboard-50"
3739
style={`--steps: ${examples[0].prompt.length}`}
3840
>
39-
<div class="block w-fit">{examples[0].prompt}</div>
41+
<div class="block w-fit">{examples[0].prompt}&nbsp;</div>
4042
</div>
4143
</div>
4244
<div class="md:col-span-3 flex flex-col md:flex-row items-center border border-t-0">

0 commit comments

Comments
 (0)