Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 18 additions & 25 deletions apps/web/src/components/footer.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Link from 'next/link';
import { Footer as PfsFooter } from '@profullstack/footer/react';
import { useTranslations } from 'next-intl';
import { Logo } from '@/components/Logo';
import { LanguageSwitcher } from '@/components/LanguageSwitcher';
Expand Down Expand Up @@ -30,8 +31,7 @@ function TwitterIcon({ className }: { className?: string }) {
}

// The links people need, one row. Message keys live under footer.links.*.
// Network links (search, ring, publish) come from the pit.world footer the
// root layout renders after this one.
// The pit.world network footer follows this one (root layout, last in <body>).
const footerLinks = [
{ key: 'features', href: '/features' },
{ key: 'pricing', href: '/pricing' },
Expand Down Expand Up @@ -80,30 +80,23 @@ export function Footer() {
))}
</nav>
</div>
<div className="flex flex-wrap items-center justify-between gap-4">
<p>
&copy; {new Date().getFullYear()}{' '}
<a href="https://profullstack.com/" className="hover:text-gray-900">
Profullstack, Inc.
</a>{' '}
{t('license')}
</p>
<div className="flex items-center gap-4">
{socialLinks.map((item) => (
<Link
key={item.name}
href={item.href}
target="_blank"
rel="noopener noreferrer"
className="text-gray-500 transition-colors hover:text-gray-900"
>
<span className="sr-only">{item.name}</span>
<item.icon className="h-5 w-5" />
</Link>
))}
<LanguageSwitcher id="language-switcher-footer" />
</div>
<div className="flex flex-wrap items-center justify-end gap-4">
{socialLinks.map((item) => (
<Link
key={item.name}
href={item.href}
target="_blank"
rel="noopener noreferrer"
className="text-gray-500 transition-colors hover:text-gray-900"
>
<span className="sr-only">{item.name}</span>
<item.icon className="h-5 w-5" />
</Link>
))}
<LanguageSwitcher id="language-switcher-footer" />
</div>
{/* Copyright + Profullstack ring, from @profullstack/footer */}
<PfsFooter site="https://pairux.com/" tagline={t('license')} />
</div>
</footer>
);
Expand Down
Loading