Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
refactor: move testimonials to separate component
Marc Seitz3a982a781c50
diff --git a/app/page.tsx b/app/page.tsxindex 59b6ea82..3c64a0a4 100644--- a/app/page.tsx+++ b/app/page.tsx@@ -5,6 +5,9 @@ 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 { LogoCloud } from "@/components/web/landing-page/logo-cloud";+import {RefreshCw as ArrowPathIcon,Settings as Cog6ToothIcon,@@ -13,6 +16,7 @@ import {SlidersIcon,BarChart3Icon,} from "lucide-react";+import Testimonials from "@/components/web/testimonials";const features = [{@@ -467,144 +471,5 @@ function Footer() {);}-import Image from "next/image";-import { LogoCloud } from "@/components/web/landing-page/logo-cloud";--const testimonials = [- {- body: "best thing is that all the save DocSend to PDF plugins that VCs use probably won't work π",- author: {- name: "Jonathan Reimer",- handle: "jonathimer",- imageUrl:- "https://pbs.twimg.com/profile_images/1704777684046209024/_JdBcXWp_400x400.jpg",- link: "https://twitter.com/jonathimer/status/1663651278872891395",- },- producthunt: false,- },- {- body: "This looks awesome!! Incredible work for an MVP β love how the link was automatically copied to clipboard when it's created! π€©",- author: {- name: "Steven Tey",- handle: "steventey",- imageUrl:- "https://pbs.twimg.com/profile_images/1506792347840888834/dS-r50Je_400x400.jpg",- link: "https://twitter.com/steventey/status/1663611851807006721",- },- producthunt: false,- },- {- body: "looks so good! gonna have to steal that upload component π congrats & thanks for the great idea π",- author: {- name: "alana goyal",- handle: "alanaagoyal",- imageUrl:- "https://pbs.twimg.com/profile_images/1679538379070005248/jwGUle5U_400x400.jpg",- link: "https://twitter.com/alanaagoyal/status/1663522718015270912",- },- producthunt: false,- },- {- body: "Currently getting a lot of use out of .@mfts0's \"papermark\" project! I'm looking to see how he implemented Resend/React Email into his NextAuth stack.",- author: {- name: "Lukas Lunzmann",- handle: "lucaslunzmann",- imageUrl:- "https://pbs.twimg.com/profile_images/1738781878792921088/5kSW6ymD_400x400.jpg",- link: "https://twitter.com/lucaslunzmann/status/1673052992541523968",- },- producthunt: false,- },- {- body: "We self-host Papermark at Rubric Labs for doc-sharing. Brilliantly-simple alternative to Docsend. Features are well-executed, so I can't wait to try new stuff!",- author: {- name: "Ted Spare",- handle: "TedSpare",- imageUrl:- "https://pbs.twimg.com/profile_images/1696951746587656192/xtLP8mHs_400x400.jpg",- link: "https://www.producthunt.com/products/papermark-2#papermark-3",- },- producthunt: true,- },- {- body: "True builders listen to their users and build what they need. Thanks @papermarkio for solving a big pain point. DocSend monopoly will end soon!",- author: {- name: "Jaski",- handle: "Jas_Jaski",- imageUrl:- "https://pbs.twimg.com/profile_images/1681327970735251459/xYzLMVZ7_400x400.jpg",- link: "https://twitter.com/Jas_Jaski/status/1731957497487868390",- },- producthunt: false,- },- // More testimonials...-];-function Testimonials() {- return (- <div className="bg-white py-24">- <div className="w-full mx-auto max-w-7xl px-4 md:px-8">- <h2 className="text-4xl text-balance">- Loved by over 3000 users.- <br />- <span className="text-gray-500">- Here's what they have to say about us.- </span>- </h2>- <div className="mx-auto max-w-2xl lg:max-w-none mt-8">- <div className="space-y-6 py-8 sm:block sm:columns-2 sm:gap-6 lg:columns-3">- {testimonials.map((testimonial) => (- <div- key={testimonial.author.handle}- className="flex w-full relative"- >- <div className="rounded-lg shadow-lg border-gray-500 bg-white p-6 text-base leading-6 border relative">- <div className="flex flex-col justify-between">- <div className="flex items-center justify-between gap-x-4">- <div className="flex items-center gap-x-4">- <Image- className="h-10 w-10 rounded-full bg-gray-50"- src={testimonial.author.imageUrl}- width={40}- height={40}- alt={testimonial.author.name}- />- <div>- <div className="font-semibold text-gray-900">- {testimonial.author.name}- </div>- <a- className="text-gray-600 hover:text-gray-800"- href={testimonial.author.link}- target="_blank"- rel="noopener noreferrer"- >{`@${testimonial.author.handle}`}</a>- </div>- </div>- <a- href={testimonial.author.link} // Using the link from the testimonial- target="_blank"- rel="noopener noreferrer"- className=""- >- {testimonial.producthunt ? (- <ProductHuntIcon className="w-6 h-6 text-gray-800" />- ) : (- <TwitterIcon className="w-5 h-5 text-gray-800" />- )}- </a>- </div>- <blockquote className="my-4 text-gray-900">- <p>{testimonial.body}</p>- </blockquote>- </div>- </div>- </div>- ))}- </div>- </div>- </div>- </div>- );-}diff --git a/components/web/testimonials.tsx b/components/web/testimonials.tsxindex ff6be695..0c1b0432 100644--- a/components/web/testimonials.tsx+++ b/components/web/testimonials.tsx@@ -1,5 +1,6 @@-import Twitter from "../shared/icons/twitter";import Image from "next/image";+import ProductHuntIcon from "@/components/shared/icons/producthunt";+import TwitterIcon from "@/components/shared/icons/twitter";const testimonials = [{@@ -11,6 +12,7 @@ const testimonials = ["https://pbs.twimg.com/profile_images/1704777684046209024/_JdBcXWp_400x400.jpg",link: "https://twitter.com/jonathimer/status/1663651278872891395",},+ producthunt: false,},{body: "This looks awesome!! Incredible work for an MVP β love how the link was automatically copied to clipboard when it's created! π€©",@@ -21,6 +23,7 @@ const testimonials = ["https://pbs.twimg.com/profile_images/1506792347840888834/dS-r50Je_400x400.jpg",link: "https://twitter.com/steventey/status/1663611851807006721",},+ producthunt: false,},{body: "looks so good! gonna have to steal that upload component π congrats & thanks for the great idea π",@@ -31,6 +34,7 @@ const testimonials = ["https://pbs.twimg.com/profile_images/1679538379070005248/jwGUle5U_400x400.jpg",link: "https://twitter.com/alanaagoyal/status/1663522718015270912",},+ producthunt: false,},{body: "Currently getting a lot of use out of .@mfts0's \"papermark\" project! I'm looking to see how he implemented Resend/React Email into his NextAuth stack.",@@ -41,79 +45,93 @@ const testimonials = ["https://pbs.twimg.com/profile_images/1738781878792921088/5kSW6ymD_400x400.jpg",link: "https://twitter.com/lucaslunzmann/status/1673052992541523968",},+ producthunt: false,},{- body: "π Papermark just became 10x more valuable with analytics on each page of Pitchdeck. ",+ body: "We self-host Papermark at Rubric Labs for doc-sharing. Brilliantly-simple alternative to Docsend. Features are well-executed, so I can't wait to try new stuff!",author: {- name: "Iuliia Shnai",- handle: "shnai0",+ name: "Ted Spare",+ handle: "TedSpare",imageUrl:- "https://pbs.twimg.com/profile_images/1668749063666147328/C0NyHT9B_400x400.jpg",- link: "https://twitter.com/shnai0/status/1676626294077812736",+ "https://pbs.twimg.com/profile_images/1696951746587656192/xtLP8mHs_400x400.jpg",+ link: "https://www.producthunt.com/products/papermark-2#papermark-3",},+ producthunt: true,},{- body: "Introducing Papermark 1.0 π An open-source alternative to DocSend that allows you to securely share documents.",+ body: "True builders listen to their users and build what they need. Thanks @papermarkio for solving a big pain point. DocSend monopoly will end soon!",author: {- name: "Marc Seitz",- handle: "mfts0",+ name: "Jaski",+ handle: "Jas_Jaski",imageUrl:- "https://pbs.twimg.com/profile_images/1176854646343852032/iYnUXJ-m_400x400.jpg",- link: "https://twitter.com/mfts0/status/1663521261396320257",+ "https://pbs.twimg.com/profile_images/1681327970735251459/xYzLMVZ7_400x400.jpg",+ link: "https://twitter.com/Jas_Jaski/status/1731957497487868390",},+ producthunt: false,},// More testimonials...];export default function Testimonials() {return (- <div className="bg-white py-24 sm:py-24">- <div className="mx-auto max-w-7xl px-6 lg:px-8">- <div className="mx-auto max-w-xl text-center">- <p className="mt-2 text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl">- 3000 people love Papermark and actively use it- </p>- <p className="mx-auto mt-6 max-w-xl text-lg leading-8 text-gray-600">- Do not take it from us, listen what our happy users say- </p>- </div>- <div className="mx-auto mt-16 flow-root max-w-2xl sm:mt-20 lg:mx-0 lg:max-w-none">- <div className="-mt-8 sm:-mx-4 sm:columns-2 sm:text-[0] lg:columns-3">+ <div className="bg-white py-24">+ <div className="w-full mx-auto max-w-7xl px-4 md:px-8">+ <h2 className="text-4xl text-balance">+ Loved by over 3000 users.+ <br />+ <span className="text-gray-500">+ Here's what they have to say about us.+ </span>+ </h2>+ <div className="mx-auto max-w-2xl lg:max-w-none mt-8">+ <div className="space-y-6 py-8 sm:block sm:columns-2 sm:gap-6 lg:columns-3">{testimonials.map((testimonial) => (<divkey={testimonial.author.handle}- className="pt-8 sm:inline-block sm:w-full sm:px-4 relative"+ className="flex w-full relative">- <figure className="rounded-2xl hover:shadow-lg hover:border-gray-500 bg-white p-10 text-sm leading-6 border border-gray-300 relative">- {testimonial.author.link && ( // Conditional rendering based on the presence of link- <a- href={testimonial.author.link} // Using the link from the testimonial- target="_blank"- rel="noopener noreferrer"- className="absolute top-4 right-4 z-10"- >- <Twitter className="w-5 h-5 text-gray-800" />- </a>- )}- <blockquote className="text-gray-900">- <p>{`${testimonial.body}`}</p>- </blockquote>- <figcaption className="mt-6 flex items-center gap-x-4">- <Image- className="h-10 w-10 rounded-full bg-gray-50"- src={testimonial.author.imageUrl}- width={40}- height={40}- alt=""- />- <div>- <div className="font-semibold text-gray-900">- {testimonial.author.name}+ <div className="rounded-lg shadow-lg border-gray-500 bg-white p-6 text-base leading-6 border relative">+ <div className="flex flex-col justify-between">+ <div className="flex items-center justify-between gap-x-4">+ <div className="flex items-center gap-x-4">+ <Image+ className="h-10 w-10 rounded-full bg-gray-50"+ src={testimonial.author.imageUrl}+ width={40}+ height={40}+ alt={testimonial.author.name}+ />+ <div>+ <div className="font-semibold text-gray-900">+ {testimonial.author.name}+ </div>+ <a+ className="text-gray-600 hover:text-gray-800"+ href={testimonial.author.link}+ target="_blank"+ rel="noopener noreferrer"+ >{`@${testimonial.author.handle}`}</a>+ </div></div>- <div className="text-gray-600">{`@${testimonial.author.handle}`}</div>+ <a+ href={testimonial.author.link} // Using the link from the testimonial+ target="_blank"+ rel="noopener noreferrer"+ className=""+ >+ {testimonial.producthunt ? (+ <ProductHuntIcon className="w-6 h-6 text-gray-800" />+ ) : (+ <TwitterIcon className="w-5 h-5 text-gray-800" />+ )}+ </a></div>- </figcaption>- </figure>++ <blockquote className="my-4 text-gray-900">+ <p>{testimonial.body}</p>+ </blockquote>+ </div>+ </div></div>))}</div>