Skip to content

Commit 6e09d42

Browse files
authored
improved footer ui consistency (JhaSourav07#617)
## Description Improved the footer UI for better consistency, responsiveness, and maintainability. **Changes made:** - Replaced duplicated footer code in page.tsx with reusable Footer component - Improved spacing and alignment - Enhanced dark mode contrast and hover interactions - Added responsive layout refinements - Reduced unnecessary bottom spacing - Improved overall visual hierarchy and footer consistency Fixes JhaSourav07#466 ## Pillar - [ ] 🎨 Pillar 1 — New Theme Design - [ ] 📐 Pillar 2 — Geometric SVG Improvement - [ ] 🕐 Pillar 3 — Timezone Logic Optimization - [x] 🛠️ Other (Bug fix, refactoring, docs) ## Visual Preview **Before:** <img width="1348" height="628" alt="image" src="https://github.com/user-attachments/assets/e098d199-683b-479f-aaae-0a497d956d3b" /> **After:** <img width="1293" height="629" alt="image" src="https://github.com/user-attachments/assets/b9185a90-2c89-48f6-b797-b12865e1b4e6" /> ## Checklist before requesting a review: - [x] I have read the `CONTRIBUTING.md` file. - [x] I have tested these changes locally (`localhost:3000/api/streak?user=YOUR_USERNAME`). - [x] I have run `npm run format` and `npm run lint` locally and resolved all errors (CI will fail otherwise). - [x] My commits follow the Conventional Commits format (e.g., `feat(themes): ...`, `fix(calculate): ...`). - [ ] I have updated `README.md` if I added a new theme or URL parameter. - [ ] I have started the repo. - [x] I have made sure that i have only one commit to merge in this PR. - [x] The SVG output matches the CommitPulse "premium quality" aesthetic standard (no raw elements, smooth animations, correct fonts). - [ ] (Recommended) I joined the CommitPulse Discord community for contributor discussions, mentorship, and faster PR support.
2 parents 15f7c21 + 86c0e2c commit 6e09d42

2 files changed

Lines changed: 22 additions & 42 deletions

File tree

app/components/Footer.tsx

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,41 +2,49 @@ import Link from 'next/link';
22

33
export function Footer() {
44
return (
5-
<footer className="mt-12 border-t border-black/10 dark:border-white/5 pt-8 text-sm text-zinc-600 dark:text-white/30 transition-colors">
6-
<div className="flex flex-col items-center justify-between gap-6 md:flex-row">
5+
<footer className="mt-14 border-t border-black/15 dark:border-white/10 bg-transparent pt-10 pb-4 text-sm transition-colors">
6+
<div className="mx-auto flex max-w-7xl flex-col items-start justify-between gap-8 px-6 md:flex-row">
77
{/* LEFT */}
8-
<p className="text-center md:text-left">
9-
© 2026 CommitPulse. Designed for the elite builder community.
10-
</p>
8+
<div className="text-center md:text-left">
9+
<h2 className="text-lg font-semibold text-black dark:text-white">CommitPulse</h2>
10+
11+
<p className="mt-1 text-zinc-600 dark:text-zinc-400">
12+
Designed for the elite builder community.
13+
</p>
14+
</div>
1115

1216
{/* RIGHT */}
13-
<div className="flex items-center gap-8">
17+
<div className="flex items-start gap-6 text-sm font-medium text-zinc-600 dark:text-zinc-400">
18+
{' '}
1419
<Link
1520
href="/contributors"
16-
className="transition-colors hover:text-black dark:hover:text-white"
21+
className="transition-colors duration-200 hover:text-black dark:hover:text-white"
1722
>
1823
Contributors
1924
</Link>
20-
2125
<a
2226
href="https://github.com/JhaSourav07/commitpulse/blob/main/README.md"
2327
target="_blank"
2428
rel="noreferrer"
25-
className="transition-colors hover:text-black dark:hover:text-white"
29+
className="transition-colors duration-200 hover:text-black dark:hover:text-white"
2630
>
2731
Documentation
2832
</a>
29-
3033
<a
3134
href="https://github.com/jhasourav07"
3235
target="_blank"
3336
rel="noreferrer"
34-
className="transition-colors hover:text-white"
37+
className="transition-colors duration-200 hover:text-black dark:hover:text-white"
3538
>
3639
Creator
3740
</a>
3841
</div>
3942
</div>
43+
44+
{/* BOTTOM */}
45+
<div className="mt-6 border-t border-black/5 pt-3 text-center text-xs text-zinc-500 dark:border-white/5 dark:text-zinc-500">
46+
© 2026 CommitPulse. All rights reserved.
47+
</div>
4048
</footer>
4149
);
4250
}

app/page.tsx

Lines changed: 3 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { X } from 'lucide-react';
99
import { CommitPulseLogo } from '@/components/commitpulse-logo';
1010
import { CustomizeCTA } from './components/CustomizeCTA';
1111
import { useRecentSearches } from '@/hooks/useRecentSearches';
12+
import { Footer } from '@/app/components/Footer';
1213

1314
const Icons = {
1415
Github: () => (
@@ -129,7 +130,7 @@ export default function LandingPage() {
129130
<div className="absolute -right-[10%] top-[20%] h-[30%] w-[30%] rounded-full bg-white/2 blur-[120px]" />
130131
</div>
131132

132-
<main className="relative z-10 mx-auto max-w-6xl px-6 pb-32">
133+
<main className="relative z-10 mx-auto max-w-6xl px-6 mt-32">
133134
<div className="mb-16 text-center">
134135
<motion.a
135136
href="https://discord.gg/Cb73bS79j"
@@ -364,36 +365,7 @@ export default function LandingPage() {
364365
desc="Sophisticated 3D projection formulas turn 2D data into digital architecture."
365366
/>
366367
</div>
367-
368-
<footer className="mt-32 flex flex-col items-center justify-between gap-6 border-t border-black/10 pt-8 text-sm text-gray-600 dark:border-white/5 dark:text-white/30 md:flex-row">
369-
<p>&copy; 2026 CommitPulse. Designed for the elite builder community.</p>
370-
<div className="flex gap-8">
371-
<Link
372-
href="/contributors"
373-
className="transition-colors hover:text-black dark:hover:text-white"
374-
>
375-
Contributors
376-
</Link>
377-
378-
<a
379-
href="https://github.com/JhaSourav07/commitpulse/blob/main/README.md"
380-
target="_blank"
381-
rel="noreferrer"
382-
className="transition-colors hover:text-white"
383-
>
384-
Documentation
385-
</a>
386-
387-
<a
388-
href="https://github.com/jhasourav07"
389-
target="_blank"
390-
rel="noreferrer"
391-
className="transition-colors hover:text-black dark:hover:text-white"
392-
>
393-
Creator
394-
</a>
395-
</div>
396-
</footer>
368+
<Footer />
397369
</main>
398370
</div>
399371
);

0 commit comments

Comments
 (0)