Skip to content

Commit 9c7b4d3

Browse files
committed
improve responsiveness
1 parent d5dd9fd commit 9c7b4d3

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

app/(home)/page.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ export default async function HomePage() {
4848
<div className="flex flex-col gap-4 sm:flex-row sm:items-center">
4949
<Link
5050
href="/docs"
51-
className="inline-flex items-center gap-2 rounded-lg bg-fd-primary px-6 py-3 font-semibold text-fd-primary-foreground transition-colors hover:bg-fd-primary/90"
51+
className="inline-flex items-center justify-center gap-2 rounded-lg bg-fd-primary px-6 py-3 font-semibold text-fd-primary-foreground transition-colors hover:bg-fd-primary/90"
5252
>
5353
Get Started
5454
<ArrowRight className="h-4 w-4" />
5555
</Link>
5656
<Link
5757
href="https://github.com/rivenmedia/riven"
58-
className="inline-flex items-center gap-2 rounded-lg border border-fd-border bg-fd-background px-6 py-3 font-semibold transition-colors hover:bg-fd-muted/50"
58+
className="inline-flex items-center justify-center gap-2 rounded-lg border border-fd-border bg-fd-background px-6 py-3 font-semibold transition-colors hover:bg-fd-muted/50"
5959
>
6060
<Download className="h-4 w-4" />
6161
View on GitHub
@@ -158,9 +158,9 @@ export default async function HomePage() {
158158
{/* Quick Start Section */}
159159
<section className="px-4 py-20">
160160
<div className="mx-auto max-w-6xl">
161-
<div className="rounded-2xl border border-fd-border bg-gradient-to-br from-blue-500/10 via-purple-500/10 to-pink-500/10 p-8 md:p-12">
161+
<div className="rounded-2xl border border-fd-border bg-gradient-to-br from-blue-500/10 via-purple-500/10 to-pink-500/10 p-6 md:p-12">
162162
<div className="grid gap-8 lg:grid-cols-2 lg:gap-12">
163-
<div>
163+
<div className="min-w-0">
164164
<h2 className="mb-4 text-3xl font-bold md:text-4xl">
165165
Ready to get started?
166166
</h2>
@@ -170,29 +170,29 @@ export default async function HomePage() {
170170
<div className="flex flex-col gap-4 sm:flex-row">
171171
<Link
172172
href="/docs"
173-
className="inline-flex items-center gap-2 rounded-lg bg-fd-primary px-6 py-3 font-semibold text-fd-primary-foreground transition-colors hover:bg-fd-primary/90"
173+
className="inline-flex w-full items-center gap-2 rounded-lg bg-fd-primary px-6 py-3 font-semibold text-fd-primary-foreground transition-colors hover:bg-fd-primary/90 sm:w-auto"
174174
>
175175
Read Documentation
176176
<ArrowRight className="h-4 w-4" />
177177
</Link>
178178
<Link
179179
href="https://github.com/rivenmedia/riven"
180-
className="inline-flex items-center gap-2 rounded-lg border border-fd-border bg-fd-background px-6 py-3 font-semibold transition-colors hover:bg-fd-muted/50"
180+
className="inline-flex w-full items-center gap-2 rounded-lg border border-fd-border bg-fd-background px-6 py-3 font-semibold transition-colors hover:bg-fd-muted/50 sm:w-auto"
181181
>
182182
View Source
183183
</Link>
184184
</div>
185185
</div>
186186

187-
<div className="rounded-lg border border-fd-border bg-fd-background/50 p-6">
187+
<div className="min-w-0 rounded-lg border border-fd-border bg-fd-background/50 p-6">
188188
<h3 className="mb-4 font-semibold">Quick Install</h3>
189-
<pre className="overflow-x-auto rounded-lg bg-fd-muted/50 p-4 text-sm">
189+
<pre className="max-w-full overflow-x-auto rounded-lg bg-fd-muted/50 p-4 text-sm">
190190
<code className="text-fd-muted-foreground">
191191
{`docker run -d \\
192192
--name riven \\
193193
-p 8080:8080 \\
194194
-v ./data:/riven/data \\
195-
ghcr.io/rivenmedia/riven:latest`}
195+
spoked/riven:latest`}
196196
</code>
197197
</pre>
198198
</div>

components/star-counter.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export function StarCounter({ targetCount }: { targetCount: number }) {
2525
}, [targetCount]);
2626

2727
return (
28-
<div className="inline-flex items-center gap-2 rounded-lg border border-fd-border bg-fd-card px-4 py-3 text-sm">
28+
<div className="inline-flex items-center justify-center gap-2 rounded-lg border border-fd-border bg-fd-card px-4 py-3 text-sm">
2929
<Star className="h-4 w-4 fill-yellow-500 text-yellow-500" />
3030
<span className="font-semibold tabular-nums">{count.toLocaleString()}</span>
3131
<span className="text-fd-muted-foreground">stars</span>

0 commit comments

Comments
 (0)