Skip to content

Commit d663a8f

Browse files
committed
fix: footer on dark mode
1 parent b270855 commit d663a8f

File tree

5 files changed

+39
-206
lines changed

5 files changed

+39
-206
lines changed

apps/docs/app/(home)/page.tsx

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1+
import { Footer } from '@/components/footer';
12
import { Description } from '@/components/landing/description';
23
import FAQ from '@/components/landing/faq';
3-
import { FooterNav } from '@/components/landing/footer-nav';
44
import { GridCards } from '@/components/landing/grid-cards';
55
import Hero from '@/components/landing/hero';
66
import Section from '@/components/landing/section';
77
import Testimonials from '@/components/landing/testimonials';
88
import { TrustedBy } from '@/components/landing/trusted-by';
9-
import { Wordmark } from '@/components/landing/wordmark';
109

1110
// async function getGitHubStars() {
1211
// try {
@@ -99,13 +98,8 @@ export default function HomePage() {
9998
<div className="mx-auto h-px max-w-6xl bg-gradient-to-r from-transparent via-border/30 to-transparent" />
10099
</div>
101100

102-
{/* Footer Navigation Section */}
103-
<Section className="pt-16 lg:pt-20" customPaddings id="footer-nav">
104-
<div className="mx-auto w-full max-w-7xl px-4 sm:px-6 lg:px-8">
105-
<FooterNav />
106-
<Wordmark />
107-
</div>
108-
</Section>
101+
{/* Footer Section */}
102+
<Footer />
109103

110104
{/* Final Gradient Divider */}
111105
<div className="w-full">

apps/docs/app/(home)/pricing/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export default function PricingPage() {
4040
);
4141

4242
return (
43-
<div className="px-4 py-10 sm:px-6 lg:px-8">
43+
<div className="px-4 pt-10 sm:px-6 lg:px-8">
4444
<div className="mx-auto w-full max-w-7xl">
4545
<header className="mb-8 text-center sm:mb-10">
4646
<h1 className="mb-2 font-bold text-3xl tracking-tight sm:text-4xl">

apps/docs/components/footer.tsx

Lines changed: 34 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,40 @@
1+
'use client';
2+
13
import { FaDiscord, FaGithub, FaXTwitter } from 'react-icons/fa6';
24
import { IoMdMail } from 'react-icons/io';
5+
import { SciFiButton } from './landing/scifi-btn';
36
import { Wordmark } from './landing/wordmark';
47
import { LogoContent } from './logo';
58

69
export function Footer() {
10+
const handleGetStarted = () => {
11+
const newWindow = window.open(
12+
'https://app.databuddy.cc/login',
13+
'_blank',
14+
'noopener,noreferrer'
15+
);
16+
if (
17+
!newWindow ||
18+
newWindow.closed ||
19+
typeof newWindow.closed === 'undefined'
20+
) {
21+
// Handle popup blocked case if needed
22+
}
23+
};
24+
725
return (
826
<footer className="border-border border-t bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60">
9-
<div className="mx-auto max-w-7xl px-4 py-10 sm:px-6 lg:px-8">
27+
<div className="mx-auto max-w-7xl px-4 pt-10 sm:px-6 lg:px-8">
28+
{/* CTA Section */}
29+
<div className="mb-12 text-center">
30+
<h2 className="mb-6 font-medium text-2xl leading-tight sm:text-3xl">
31+
You're just one click away.
32+
</h2>
33+
<div>
34+
<SciFiButton onClick={handleGetStarted}>GET STARTED</SciFiButton>
35+
</div>
36+
</div>
37+
1038
<div className="grid grid-cols-2 gap-8 sm:gap-10 md:grid-cols-4">
1139
<div className="col-span-2 space-y-4 md:col-span-1">
1240
<LogoContent />
@@ -80,7 +108,7 @@ export function Footer() {
80108
<ul className="space-y-3 text-sm sm:text-base">
81109
<li>
82110
<a
83-
className="flex items-center gap-3 text-muted-foreground hover:text-foreground"
111+
className="group flex items-center gap-3 text-muted-foreground hover:text-foreground"
84112
href="mailto:[email protected]"
85113
>
86114
<IoMdMail className="h-5 w-5" />
@@ -89,7 +117,7 @@ export function Footer() {
89117
</li>
90118
<li>
91119
<a
92-
className="flex items-center gap-3 text-muted-foreground hover:text-foreground"
120+
className="group flex items-center gap-3 text-muted-foreground hover:text-foreground"
93121
href="https://discord.gg/JTk7a38tCZ"
94122
rel="noopener"
95123
target="_blank"
@@ -100,7 +128,7 @@ export function Footer() {
100128
</li>
101129
<li>
102130
<a
103-
className="flex items-center gap-3 text-muted-foreground hover:text-foreground"
131+
className="group flex items-center gap-3 text-muted-foreground hover:text-foreground"
104132
href="https://github.com/databuddy-analytics"
105133
rel="noopener"
106134
target="_blank"
@@ -111,12 +139,12 @@ export function Footer() {
111139
</li>
112140
<li>
113141
<a
114-
className="flex items-center gap-3 text-muted-foreground hover:text-foreground"
142+
className="group flex items-center gap-3 text-muted-foreground hover:text-foreground"
115143
href="https://x.com/trydatabuddy"
116144
rel="noopener"
117145
target="_blank"
118146
>
119-
<FaXTwitter className="h-5 w-5" />X (Twitter)
147+
<FaXTwitter className="h-5 w-5" />X
120148
</a>
121149
</li>
122150
</ul>

apps/docs/components/landing/footer-nav.tsx

Lines changed: 0 additions & 182 deletions
This file was deleted.

apps/docs/components/landing/wordmark.tsx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,7 @@ import { cn } from '@/lib/utils';
1212
export const Wordmark = () => {
1313
return (
1414
<div className="w-full">
15-
<div className="flex flex-col items-center gap-8 lg:gap-12">
16-
{/* Copyright */}
17-
<div className="text-center">
18-
<p className="text-muted-foreground text-xs sm:text-sm">
19-
Databuddy © 2025
20-
</p>
21-
</div>
22-
15+
<div className="flex flex-col items-center gap-8 pt-12 lg:gap-12">
2316
{/* Logo SVG */}
2417
<div className="flex w-full items-center justify-center overflow-hidden">
2518
<div className="max-w-full">

0 commit comments

Comments
 (0)