wacrm/src/components/landing/footer.tsx
Arnas Donauskas dd65e532a1
feat(landing): open-source + Hostinger deploy section
Adds a #self-host landing section with two cards — one linking to
the GitHub repo (fork / clone) and one recommending Hostinger VPS
for deploying the template. Also surfaces the GitHub link from the
nav (desktop icon + mobile drawer) and the footer.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-19 20:45:00 +03:00

108 lines
3.2 KiB
TypeScript

import Link from 'next/link'
import { MessageSquare } from 'lucide-react'
export function Footer() {
const year = new Date().getFullYear()
return (
<footer className="border-t border-slate-800 bg-slate-950">
<div className="mx-auto grid w-full max-w-7xl grid-cols-2 gap-8 px-6 py-12 sm:grid-cols-5">
<div className="col-span-2 sm:col-span-2">
<Link href="/" className="flex items-center gap-2" aria-label="WaCRM home">
<span className="flex h-8 w-8 items-center justify-center rounded-lg bg-emerald-500">
<MessageSquare className="h-4 w-4 text-white" />
</span>
<span className="text-lg font-semibold text-white">WaCRM</span>
</Link>
<p className="mt-3 max-w-sm text-sm text-slate-500">
One toolkit for your WhatsApp business — shared inbox, pipelines,
broadcasts, and automations.
</p>
</div>
<FooterColumn
title="Product"
links={[
{ href: '#features', label: 'Features' },
{ href: '#how-it-works', label: 'How it works' },
{ href: '#faq', label: 'FAQ' },
]}
/>
<FooterColumn
title="Open source"
links={[
{
href: 'https://github.com/ArnasDon/wacrm',
label: 'GitHub repo',
external: true,
},
{ href: '#self-host', label: 'Self-host' },
{
href: 'https://www.hostinger.com/vps-hosting',
label: 'Deploy on Hostinger',
external: true,
},
]}
/>
<FooterColumn
title="Account"
links={[
{ href: '/signup', label: 'Get started' },
{ href: '/login', label: 'Sign in' },
{ href: '/forgot-password', label: 'Forgot password' },
]}
/>
</div>
<div className="border-t border-slate-900">
<div className="mx-auto flex w-full max-w-7xl flex-col items-start justify-between gap-3 px-6 py-5 text-xs text-slate-500 sm:flex-row sm:items-center">
<span>© {year} WaCRM. All rights reserved.</span>
<span>Built on the official WhatsApp Business API.</span>
</div>
</div>
</footer>
)
}
function FooterColumn({
title,
links,
}: {
title: string
links: { href: string; label: string; external?: boolean }[]
}) {
return (
<div>
<h4 className="text-xs font-semibold uppercase tracking-wider text-slate-400">
{title}
</h4>
<ul className="mt-4 space-y-2.5">
{links.map((l) =>
l.external ? (
<li key={l.href}>
<a
href={l.href}
target="_blank"
rel="noopener noreferrer"
className="text-sm text-slate-400 transition-colors hover:text-white"
>
{l.label}
</a>
</li>
) : (
<li key={l.href}>
<Link
href={l.href}
className="text-sm text-slate-400 transition-colors hover:text-white"
>
{l.label}
</Link>
</li>
),
)}
</ul>
</div>
)
}