Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
refactor: replace old navbar and footer with new ones
Marc Seitz95545355e2ec
diff --git a/app/page.tsx b/app/page.tsxindex 4c25ee0c..a4dcfd78 100644--- a/app/page.tsx+++ b/app/page.tsx@@ -1,9 +1,10 @@import Link from "next/link";-import GitHubIcon from "@/components/shared/icons/github";import TwitterIcon from "@/components/shared/icons/twitter";-import LinkedinIcon from "@/components/shared/icons/linkedin";import ProductHuntIcon from "@/components/shared/icons/producthunt";import { Button } from "@/components/ui/button";+import Image from "next/image";+import Navbar from "@/components/web/navbar";+import Footer from "@/components/web/footer";import {RefreshCw as ArrowPathIcon,@@ -55,61 +56,7 @@ export default function Home() {return (<><div className="flex flex-1 flex-col bg-white text-black">- <div className="sticky top-0 z-50">- <div className="flex h-14 w-full mx-auto items-center justify-center bg-white/75 backdrop-blur-lg">- <div className="mx-auto flex w-full max-w-7xl items-center justify-between self-center px-4 md:px-8">- <div className="flex items-center space-x-10">- <Link- aria-label="Return home"- className="flex h-full flex-none items-center rounded-md text-black ring-0"- href="/"- >- <div className="flex items-center space-x-2">- <span className="text-2xl font-bold tracking-tighter text-black">- Papermark- </span>- </div>- </Link>- <div className="hidden items-center gap-2 md:flex">- <Link- className="group inline-flex h-10 w-max items-center justify-center rounded-md px-2.5 py-1 font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"- href="#"- >- <span className="relative z-[2] flex items-center gap-1">- <span>Features</span>- </span>- </Link>- <Link- className="group inline-flex h-10 w-max items-center justify-center rounded-md px-2.5 py-1 font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"- href="/pricing"- >- <span className="relative z-[2] flex items-center gap-1">- <span>Pricing</span>- </span>- </Link>- </div>- </div>- <div className="flex items-center gap-2 justify-self-end">- <Link- target="_blank"- rel="noopener noreferrer"- className="group inline-flex h-10 w-max items-center justify-center rounded-md px-2.5 py-1 font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"- href="https://github.com/mfts/papermark"- >- <GitHubIcon className="mr-2 h-6 w-6" /> 1.8k- </Link>- <Link- className="group inline-flex h-10 w-max items-center justify-center rounded-md px-2.5 py-1 font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"- href="/login"- >- <span className="relative z-[2] flex items-center gap-1">- <span>Log in</span>- </span>- </Link>- </div>- </div>- </div>- </div>+ <Navbar /><div className="max-w-7xl w-full mx-auto px-4 md:px-8"><div className="pt-24">@@ -770,174 +717,6 @@ export default function Home() {);}-const navigation = {- product: [- { name: "AI Document Assistant", href: "/ai" },- { name: "Notion", href: "/share-notion-page" },- { name: "Pricing", href: "/pricing" },- ],- resources: [- { name: "Privacy Policy", href: "/privacy" },- { name: "Launch Week", href: "/launch-week" },- ],- tools: [- { name: "Open Source Friends", href: "/oss-friends" },- { name: "Open Source Investors", href: "/open-source-investors" },- { name: "Investor Database", href: "/investors" },- {- name: "YC Application GPT",- href: "https://chat.openai.com/g/g-LYDRCiZB9-yc-application-gpt",- },- {- name: "FindVC GPT",- href: "https://chat.openai.com/g/g-G5orSgI31-findvc",- },- {- name: "DocSend Alternatives Finder",- href: "/docsend-alternatives",- },- ],- alternatives: [- { name: "DocSend", href: "/alternatives/docsend" },- { name: "BriefLink", href: "/alternatives/brieflink" },- { name: "PandaDoc", href: "/alternatives/pandadoc" },- { name: "Google Drive", href: "/alternatives/google-drive" },- { name: "Pitch", href: "/alternatives/pitch" },- ],- social: [- {- name: "GitHub",- href: "https://github.com/mfts/papermark",- icon: () => <GitHubIcon className="h-6 w-6" aria-hidden="true" />,- },- {- name: "X / Twitter",- href: "https://twitter.com/papermarkio",- icon: () => <TwitterIcon className="h-5 w-5" aria-hidden="true" />,- },- {- name: "LinkedIn",- href: "https://www.linkedin.com/company/papermarkio",- icon: () => <LinkedinIcon className="h-5 w-5" aria-hidden="true" />,- },- ],-};--function Footer() {- return (- <footer className="bg-white" aria-labelledby="footer-heading">- <h2 id="footer-heading" className="sr-only">- Footer- </h2>- <div className="mx-auto max-w-7xl pt-20 pb-4 px-4 md:px-8">- {" "}- {/* px-6 pb-8 pt-16 sm:pt-24 lg:px-8 lg:pt-32 */}- <div className="xl:grid xl:grid-cols-3 xl:gap-8">- <div className="space-y-4">- <span className="text-2xl font-bold tracking-tighter text-black">- Papermark- </span>- <p className="leading-6 text-gray-500">- Sharing documents, securely and on brand.- </p>- <div className="flex space-x-2">- {navigation.social.map((item) => (- <a- key={item.name}- href={item.href}- target="_blank"- rel="noopener noreferrer"- className="inline-flex items-center justify-center h-10 rounded-md px-2.5 py-1 font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"- >- <span className="sr-only">{item.name}</span>- <item.icon />- </a>- ))}- </div>- </div>- <div className="mt-16 grid grid-cols-2 gap-8 xl:col-span-2 xl:mt-0">- <div className="md:grid md:grid-cols-2 md:gap-8">- <div>- <h3 className="font-semibold leading-6 text-black">Product</h3>- <ul role="list" className="mt-6 space-y-4">- {navigation.product.map((item) => (- <li key={item.name}>- <a- href={item.href}- className="leading-6 text-gray-500 hover:text-black"- >- {item.name}- </a>- </li>- ))}- </ul>- </div>- <div className="mt-10 md:mt-0">- <h3 className="font-semibold leading-6 text-black">- Resources- </h3>- <ul role="list" className="mt-6 space-y-4">- {navigation.resources.map((item) => (- <li key={item.name}>- <a- href={item.href}- className="leading-6 text-gray-500 hover:text-black"- >- {item.name}- </a>- </li>- ))}- </ul>- </div>- </div>- <div className="md:grid md:grid-cols-2 md:gap-8">- <div>- <h3 className="font-semibold leading-6 text-black">Tools</h3>- <ul role="list" className="mt-6 space-y-4">- {navigation.tools.map((item) => (- <li key={item.name}>- <a- href={item.href}- className="leading-6 text-gray-500 hover:text-black"- >- {item.name}- </a>- </li>- ))}- </ul>- </div>- <div className="mt-10 md:mt-0">- <h3 className="font-semibold leading-6 text-black">- Alternatives- </h3>- <ul role="list" className="mt-6 space-y-4">- {navigation.alternatives.map((item) => (- <li key={item.name}>- <a- href={item.href}- className="leading-6 text-gray-500 hover:text-black"- >- {item.name}- </a>- </li>- ))}- </ul>- </div>- </div>- </div>- </div>- <div className="mt-16 border-t border-black/10 pt-4 sm:mt-20 lg:mt-24">- <p className="text-sm leading-5 text-gray-500">- © 2024 Papermark. All rights reserved.- </p>- </div>- </div>- </footer>- );-}--import Image from "next/image";-const testimonials = [{body: "best thing is that all the save DocSend to PDF plugins that VCs use probably won't work 😁",diff --git a/components/web/footer.tsx b/components/web/footer.tsxindex fc2e8397..24976117 100644--- a/components/web/footer.tsx+++ b/components/web/footer.tsx@@ -1,120 +1,102 @@-// import { JSX, SVGProps } from "react";--import CopyRight from "../shared/icons/copy-right";--// const navigation = [-// {-// name: "Twitter",-// href: "https://twitter.com/mfts0",-// icon: (props: JSX.IntrinsicAttributes & SVGProps<SVGSVGElement>) => (-// <svg fill="currentColor" viewBox="0 0 24 24" {...props}>-// <path d="M8.29 20.251c7.547 0 11.675-6.253 11.675-11.675 0-.178 0-.355-.012-.53A8.348 8.348 0 0022 5.92a8.19 8.19 0 01-2.357.646 4.118 4.118 0 001.804-2.27 8.224 8.224 0 01-2.605.996 4.107 4.107 0 00-6.993 3.743 11.65 11.65 0 01-8.457-4.287 4.106 4.106 0 001.27 5.477A4.072 4.072 0 012.8 9.713v.052a4.105 4.105 0 003.292 4.022 4.095 4.095 0 01-1.853.07 4.108 4.108 0 003.834 2.85A8.233 8.233 0 012 18.407a11.616 11.616 0 006.29 1.84" />-// </svg>-// ),-// },-// {-// name: "GitHub",-// href: "https://github.com/mfts/papermark",-// icon: (props: JSX.IntrinsicAttributes & SVGProps<SVGSVGElement>) => (-// <svg fill="currentColor" viewBox="0 0 24 24" {...props}>-// <path-// fillRule="evenodd"-// d="M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z"-// clipRule="evenodd"-// />-// </svg>-// ),-// },-// ];--// export default function Footer() {-// return (-// <footer className="bg-black">-// <div className="mx-auto max-w-7xl px-6 py-12 md:flex md:items-center md:justify-between lg:px-8">-// <div className="flex justify-center space-x-6 md:order-2">-// {navigation.map((item) => (-// <a-// key={item.name}-// href={item.href}-// className="text-gray-400 hover:text-gray-500"-// >-// <span className="sr-only">{item.name}</span>-// <item.icon className="h-6 w-6" aria-hidden="true" />-// </a>-// ))}-// </div>-// <div className="mt-8 md:order-1 md:mt-0">-// <p className="text-center text-xs leading-5 text-gray-500">-// © 2023 – All rights reserved.-// </p>-// </div>-// </div>-// </footer>-// );-// }+import GitHubIcon from "@/components/shared/icons/github";+import TwitterIcon from "@/components/shared/icons/twitter";+import LinkedinIcon from "@/components/shared/icons/linkedin";const navigation = {product: [+ { name: "AI Document Assistant", href: "/ai" },+ { name: "Notion", href: "/share-notion-page" },{ name: "Pricing", href: "/pricing" },- { name: "Github", href: "https://github.com/mfts/papermark" },- { name: "Twitter", href: "https://twitter.com/papermarkio" },],- legal: [{ name: "Privacy", href: "/privacy" }],+ resources: [+ { name: "Privacy Policy", href: "/privacy" },+ { name: "Launch Week", href: "/launch-week" },+ ],tools: [- { name: "VC-generator", href: "https://vc.papermark.io" },{ name: "Open Source Friends", href: "/oss-friends" },{ name: "Open Source Investors", href: "/open-source-investors" },- { name: "Open Investor Database", href: "/investors" },+ { name: "Investor Database", href: "/investors" },{name: "YC Application GPT",href: "https://chat.openai.com/g/g-LYDRCiZB9-yc-application-gpt",},{- name: "FindVC",+ name: "FindVC GPT",href: "https://chat.openai.com/g/g-G5orSgI31-findvc",},- { name: "Docsend Alternatives Finder", href: "/docsend-alternatives" },- // { name: "Pitchdeck Summariser", href: "#" },+ {+ name: "DocSend Alternatives Finder",+ href: "/docsend-alternatives",+ },],alternatives: [- { name: "Docsend", href: "/alternatives/docsend" },+ { name: "DocSend", href: "/alternatives/docsend" },{ name: "BriefLink", href: "/alternatives/brieflink" },{ name: "PandaDoc", href: "/alternatives/pandadoc" },- { name: "Google-Drive", href: "/alternatives/google-drive" },+ { name: "Google Drive", href: "/alternatives/google-drive" },{ name: "Pitch", href: "/alternatives/pitch" },],+ social: [+ {+ name: "GitHub",+ href: "https://github.com/mfts/papermark",+ icon: () => <GitHubIcon className="h-6 w-6" aria-hidden="true" />,+ },+ {+ name: "X / Twitter",+ href: "https://twitter.com/papermarkio",+ icon: () => <TwitterIcon className="h-5 w-5" aria-hidden="true" />,+ },+ {+ name: "LinkedIn",+ href: "https://www.linkedin.com/company/papermarkio",+ icon: () => <LinkedinIcon className="h-5 w-5" aria-hidden="true" />,+ },+ ],};export default function Footer() {return (- <footer- className="bg-white dark:bg-black border-t border-gray-200"- aria-labelledby="footer-heading"- >+ <footer className="bg-white" aria-labelledby="footer-heading"><h2 id="footer-heading" className="sr-only">Footer</h2>- <div className="mx-auto max-w-7xl px-6 py-16 sm:py-20 lg:px-8 lg:py-12">+ <div className="mx-auto max-w-7xl pt-20 pb-4 px-4 md:px-8">+ {" "}+ {/* px-6 pb-8 pt-16 sm:pt-24 lg:px-8 lg:pt-32 */}<div className="xl:grid xl:grid-cols-3 xl:gap-8">- {/* Text-based Logo */}- <h1 className="text-2xl font-bold tracking-tighter text-black dark:text-white">- Papermark- </h1>-+ <div className="space-y-4">+ <span className="text-2xl font-bold tracking-tighter text-black">+ Papermark+ </span>+ <p className="leading-6 text-gray-500">+ Sharing documents, securely and on brand.+ </p>+ <div className="flex space-x-2">+ {navigation.social.map((item) => (+ <a+ key={item.name}+ href={item.href}+ target="_blank"+ rel="noopener noreferrer"+ className="inline-flex items-center justify-center h-10 rounded-md px-2.5 py-1 font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"+ >+ <span className="sr-only">{item.name}</span>+ <item.icon />+ </a>+ ))}+ </div>+ </div><div className="mt-16 grid grid-cols-2 gap-8 xl:col-span-2 xl:mt-0"><div className="md:grid md:grid-cols-2 md:gap-8"><div>- <h3 className="text-sm font-semibold leading-6 text-black dark:text-white">- Product- </h3>+ <h3 className="font-semibold leading-6 text-black">Product</h3><ul role="list" className="mt-6 space-y-4">{navigation.product.map((item) => (<li key={item.name}><ahref={item.href}- target="_blank"- rel="noopener noreferrer"- className="text-sm leading-6 text-gray-500 hover:text-gray-600"+ className="leading-6 text-gray-500 hover:text-black">{item.name}</a>@@ -123,17 +105,15 @@ export default function Footer() {</ul></div><div className="mt-10 md:mt-0">- <h3 className="text-sm font-semibold leading-6 text-black dark:text-white">- Legal+ <h3 className="font-semibold leading-6 text-black">+ Resources</h3><ul role="list" className="mt-6 space-y-4">- {navigation.legal.map((item) => (+ {navigation.resources.map((item) => (<li key={item.name}><ahref={item.href}- target="_blank"- rel="noopener noreferrer"- className="text-sm leading-6 text-gray-500 hover:text-gray-600"+ className="leading-6 text-gray-500 hover:text-black">{item.name}</a>@@ -144,17 +124,13 @@ export default function Footer() {</div><div className="md:grid md:grid-cols-2 md:gap-8"><div>- <h3 className="text-sm font-semibold leading-6 text-black dark:text-white">- Tools- </h3>+ <h3 className="font-semibold leading-6 text-black">Tools</h3><ul role="list" className="mt-6 space-y-4">{navigation.tools.map((item) => (<li key={item.name}><ahref={item.href}- target="_blank"- rel="noopener noreferrer"- className="text-sm leading-6 text-gray-500 hover:text-gray-600"+ className="leading-6 text-gray-500 hover:text-black">{item.name}</a>@@ -163,7 +139,7 @@ export default function Footer() {</ul></div><div className="mt-10 md:mt-0">- <h3 className="text-sm font-semibold leading-6 text-black dark:text-white">+ <h3 className="font-semibold leading-6 text-black">Alternatives</h3><ul role="list" className="mt-6 space-y-4">@@ -171,9 +147,7 @@ export default function Footer() {<li key={item.name}><ahref={item.href}- target="_blank"- rel="noopener noreferrer"- className="text-sm leading-6 text-gray-500 hover:text-gray-600"+ className="leading-6 text-gray-500 hover:text-black">{item.name}</a>@@ -183,12 +157,11 @@ export default function Footer() {</div></div></div>- <div className="mt-4 ">- <p className="text-sm text-gray-600 dark:text-gray-400 flex">- <CopyRight className="mt-1 mr-1" /> 2023 Papermark. All rights- reserved.- </p>- </div>+ </div>+ <div className="mt-16 border-t border-black/10 pt-4 sm:mt-20 lg:mt-24">+ <p className="text-sm leading-5 text-gray-500">+ © 2024 Papermark. All rights reserved.+ </p></div></div></footer>diff --git a/components/web/navbar.tsx b/components/web/navbar.tsxindex 9b077fe9..8bb7daf6 100644--- a/components/web/navbar.tsx+++ b/components/web/navbar.tsx@@ -4,40 +4,61 @@ import GitHubIcon from "@/components/shared/icons/github";export default function Navbar() {return (<>- <nav className="top-0 w-full z-50 backdrop-blur-md bg-white">- <div className="mx-auto max-w-7xl px-2 sm:px-6 lg:px-8 ">- <div className="relative flex h-16 justify-between">- <div className="absolute inset-y-0 left-0 flex items-center sm:hidden">- {/* Mobile menu button */}- </div>- <div className="flex flex-1 items-stretch justify-start">- <div className="flex flex-shrink-0 items-center">- <Link href="/">- <span className="text-xl font-bold tracking-tighter text-black">+ <div className="sticky top-0 z-50">+ <div className="flex h-14 w-full mx-auto items-center justify-center bg-white/75 backdrop-blur-lg">+ <div className="mx-auto flex w-full max-w-7xl items-center justify-between self-center px-4 md:px-8">+ <div className="flex items-center space-x-10">+ <Link+ aria-label="Return home"+ className="flex h-full flex-none items-center rounded-md text-black ring-0"+ href="/"+ >+ <div className="flex items-center space-x-2">+ <span className="text-2xl font-bold tracking-tighter text-black">Papermark</span>+ </div>+ </Link>+ <div className="hidden items-center gap-2 md:flex">+ <Link+ className="group inline-flex h-10 w-max items-center justify-center rounded-md px-2.5 py-1 font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"+ href="#"+ >+ <span className="relative z-[2] flex items-center gap-1">+ <span>Features</span>+ </span>+ </Link>+ <Link+ className="group inline-flex h-10 w-max items-center justify-center rounded-md px-2.5 py-1 font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"+ href="/pricing"+ >+ <span className="relative z-[2] flex items-center gap-1">+ <span>Pricing</span>+ </span></Link></div></div>- <div className="absolute inset-y-0 right-0 flex items-center pr-2 sm:static sm:inset-auto sm:ml-6 sm:pr-0">+ <div className="flex items-center gap-2 justify-self-end"><Linktarget="_blank"rel="noopener noreferrer"- className="rounded-md px-3.5 py-2.5 text-sm font-semibold text-black hover:text-gray-700 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-400 flex items-center"+ className="group inline-flex h-10 w-max items-center justify-center rounded-md px-2.5 py-1 font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"href="https://github.com/mfts/papermark">- <GitHubIcon className="mr-2 h-5 w-5" /> GitHub+ <GitHubIcon className="mr-2 h-6 w-6" /> 1.8k</Link><Link- className="rounded-md bg-black px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-gray-800 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-400"+ className="group inline-flex h-10 w-max items-center justify-center rounded-md px-2.5 py-1 font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"href="/login">- Share document+ <span className="relative z-[2] flex items-center gap-1">+ <span>Log in</span>+ </span></Link></div></div></div>- </nav>+ </div></>);}