Jotley / website · jotley.ai / src / app / components / SiteFooter.tsx
| 1 | 'use client'; |
| 2 | |
| 3 | import Link from 'next/link'; |
| 4 | import { usePathname } from 'next/navigation'; |
| 5 | |
| 6 | /** |
| 7 | * Shared footer for every page. Must live inside a `.jt-home` wrapper so the |
| 8 | * scoped styles apply. |
| 9 | */ |
| 10 | export default function SiteFooter() { |
| 11 | const pathname = usePathname() || '/'; |
| 12 | return ( |
| 13 | <div className="page-end"> |
| 14 | <section className="newsletter" aria-labelledby="newsletter-heading"> |
| 15 | <div className="wrap"> |
| 16 | <div className="newsletter-panel"> |
| 17 | <div className="newsletter-copy"> |
| 18 | <h2 id="newsletter-heading">Free. For everyone.</h2> |
| 19 | <p>Jotley is free, open source and private.</p> |
| 20 | </div> |
| 21 | </div> |
| 22 | </div> |
| 23 | </section> |
| 24 | <footer className="foot"> |
| 25 | <div className="wrap foot-in"> |
| 26 | <div className="foot-brand"> |
| 27 | <Link href="/" className="brand"> |
| 28 | <img src="/jotley-logo.png" alt="" /> |
| 29 | <span>Jotley</span> |
| 30 | </Link> |
| 31 | <p>Free voice notes, transcripts and summaries with on-device Apple Intelligence. Open source.</p> |
| 32 | </div> |
| 33 | <nav className="foot-legal" aria-label="Footer"> |
| 34 | <Link href="/tutorials">Tutorials</Link> |
| 35 | <Link href="/help">Help</Link> |
| 36 | <Link href="/compare">Compare</Link> |
| 37 | <Link href="/app-notices">App notices</Link> |
| 38 | <Link href="/privacy">Privacy Policy</Link> |
| 39 | <Link href="/research">Research</Link> |
| 40 | <a href={`https://branchwell.ai/jotley/website/for${pathname}`} rel="noopener">Source</a> |
| 41 | </nav> |
| 42 | </div> |
| 43 | <div className="wrap foot-row"> |
| 44 | <span className="cr">Jotley</span> |
| 45 | </div> |
| 46 | </footer> |
| 47 | </div> |
| 48 | ); |
| 49 | } |