Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
upstream fetch
Marc Seitz39cf2ad3785c
diff --git a/app/(static)/investors/ClientPage.tsx b/app/(static)/investors/ClientPage.tsxindex b07c73d6..1531f3d5 100644--- a/app/(static)/investors/ClientPage.tsx+++ b/app/(static)/investors/ClientPage.tsx@@ -9,6 +9,7 @@ import Link from "next/link";import Image from "next/image";import PlaceholderImg from "@/public/_static/placeholder.png";import PapermarkPImg from "@/public/_static/papermark-p.svg";+import Head from "next/head";const searchOptions = {threshold: 0.3,@@ -65,6 +66,7 @@ export default function Dashboard({ data }: any) {const stages = [{ id: "7", label: "All" },+ { id: "5", label: "Pre-Seed" },{ id: "1", label: "Seed" },{ id: "2", label: "Series A" },{ id: "3", label: "Series B" },@@ -123,7 +125,7 @@ export default function Dashboard({ data }: any) {</div>{/* <Stats angelsLength={angels.length} /> */}<div className="sm:flex flex-col md:flex-row justify-between mt-4">- <span className="isolate mt-5 inline-flex rounded-md shadow-sm w-fit">+ <span className="isolate mt-5 inline-flex rounded-md shadow-sm w-fit px-2 lg:px-2 ">{stages.map((stage) => (<Linkhref={@@ -143,7 +145,7 @@ export default function Dashboard({ data }: any) {</Link>))}</span>- <div className="relative mt-5">+ <div className="relative mt-5 px-2 "><SearchIconclassName="h-5 w-5 absolute z-20 left-3 bottom-2"aria-hidden="true"diff --git a/app/(static)/investors/layout.tsx b/app/(static)/investors/layout.tsxnew file mode 100644index 00000000..318ade79--- /dev/null+++ b/app/(static)/investors/layout.tsx@@ -0,0 +1,49 @@+import { Metadata } from "next";+import Script from "next/script";++const data = {+ description:+ "Find over 10,000 investors based on stage, sector, or location. Powered by Papermark.",+ title: "Investor Search | Papermark",+ url: "https://www.papermark.io/investors",+};++export const metadata: Metadata = {+ title: data.title,+ description: data.description,+ openGraph: {+ title: data.title,+ description: data.description,+ url: data.url,+ siteName: "Papermark",+ images: [+ {+ url: "https://www.papermark.io/_static/investor-meta.png",+ width: 800,+ height: 600,+ },+ ],+ locale: "en_US",+ type: "website",+ },+ twitter: {+ card: "summary_large_image",+ title: data.title,+ description: data.description,+ creator: "@papermarkio",+ images: ["https://www.papermark.io/_static/investor-meta.png"],+ },+};++export default function RootLayout({+ children,+}: {+ children: React.ReactNode;+}) {+ return (+ <>+ {children}+ <Script src="https://iuliia2.marbleflows.com/flows/8687" />+ </>+ );+}diff --git a/app/(static)/investors/page.tsx b/app/(static)/investors/page.tsxindex 5d27eee6..07f183b3 100644--- a/app/(static)/investors/page.tsx+++ b/app/(static)/investors/page.tsx@@ -3,40 +3,6 @@ import Dashboard from "./ClientPage";export const revalidate = 3600; // revalidate the data at most every 24 hours-const data = {- description:- "Find over 10,000 investors based on stage, sector, or location. Powered by Papermark.",- title: "Investor Search | Papermark",- url: "https://www.papermark.io/investors",-};--export const metadata: Metadata = {- title: data.title,- description: data.description,- openGraph: {- title: data.title,- description: data.description,- url: data.url,- siteName: "Papermark",- images: [- {- url: "https://www.papermark.io/_static/investor-meta.png",- width: 800,- height: 600,- },- ],- locale: "en_US",- type: "website",- },- twitter: {- card: "summary_large_image",- title: data.title,- description: data.description,- creator: "@papermarkio",- images: ["https://www.papermark.io/_static/investor-meta.png"],- },-};-const getInvestors = async () => {const response = await fetch(`https://investors.papermark.io/api/investors`, {method: "GET",