Skip to content

Commit 045716a

Browse files
committed
footer: switch to flex layout, center text on mobile
1 parent 73bb921 commit 045716a

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

packages/app/src/components/footer/footer.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const Footer = () => {
3232
>
3333
<div className="container mx-auto px-4 lg:px-8 py-12">
3434
{/* Main grid */}
35-
<div className="grid grid-cols-1 md:grid-cols-[4fr_3fr_3fr] gap-10 md:gap-8 mb-10">
35+
<div className="flex flex-col md:flex-row md:justify-between gap-10 md:gap-8 mb-10">
3636
{/* Left — Brand */}
3737
<div
3838
data-testid="footer-brand"
@@ -61,15 +61,15 @@ export const Footer = () => {
6161
</Link>
6262
<p
6363
data-testid="footer-brand-description"
64-
className="text-sm text-muted-foreground max-w-xs"
64+
className="text-sm text-muted-foreground max-w-xs text-center md:text-left"
6565
>
6666
Continuous open-source inference benchmarking. Real-world, reproducible, auditable
6767
performance data you can trust.
6868
</p>
6969
</div>
7070

7171
{/* Center — Links */}
72-
<div data-testid="footer-links" className="grid grid-cols-3 gap-6">
72+
<div data-testid="footer-links" className="flex justify-evenly gap-6">
7373
<div data-testid="footer-links-semianalysis" className="flex flex-col gap-2.5">
7474
<span className="text-sm font-medium text-foreground">SemiAnalysis</span>
7575
<a
@@ -145,7 +145,7 @@ export const Footer = () => {
145145
</div>
146146

147147
{/* Right — CTA + Social */}
148-
<div data-testid="footer-cta" className="flex flex-col gap-4 md:items-end">
148+
<div data-testid="footer-cta" className="flex flex-col gap-4 items-center md:items-end">
149149
<div data-testid="footer-social-buttons" className="flex items-center gap-1.5">
150150
<div className="rounded-md bg-background/80 w-fit">
151151
<StarButton />
@@ -157,7 +157,7 @@ export const Footer = () => {
157157
<ShareLinkedInButton />
158158
</div>
159159
</div>
160-
<p className="text-sm text-muted-foreground md:text-right max-w-xs">
160+
<p className="text-sm text-muted-foreground text-center md:text-right max-w-xs">
161161
If this data helps your work, consider starring us on GitHub or sharing with your
162162
network.
163163
</p>

0 commit comments

Comments
 (0)