mirror of
https://github.com/hanzo-apps/dataroom.git
synced 2026-10-30 14:47:36 +00:00
108 files: README, marketing copy, page titles, meta tags, footer text, email templates, .env.example, UI strings. URLs swapped from papermark.com/papermark.io to dataroom.hanzo.ai. Internal identifiers left intact per repo policy: localStorage keys (papermark.email/papermark.name/last_papermark_login — changing them logs users out), type field names (papermarkUserId), internal helper symbols (PAPERMARK_HEADERS, PapermarkSparkle component, isPapermarkUrl helper), internal-only filenames. LLM.md retains 'Upstream: Papermark' attribution line. Per-locale .po translations regenerate from source on the next lingui-extract CI run. DB migrations untouched (append-only history; rewriting them breaks installed schemas). LICENSE stays AGPL-3.0.
90 lines
2.8 KiB
TypeScript
90 lines
2.8 KiB
TypeScript
import React from "react";
|
|
|
|
import {
|
|
Body,
|
|
Button,
|
|
Container,
|
|
Head,
|
|
Html,
|
|
Preview,
|
|
Section,
|
|
Tailwind,
|
|
Text,
|
|
} from "@react-email/components";
|
|
|
|
import { Footer } from "./shared/footer";
|
|
|
|
export default function ViewedDataroom({
|
|
dataroomId = "123",
|
|
dataroomName = "Example Dataroom",
|
|
linkName = "Dataroom",
|
|
viewerEmail,
|
|
locationString,
|
|
}: {
|
|
dataroomId: string;
|
|
dataroomName: string;
|
|
linkName: string;
|
|
viewerEmail: string | null;
|
|
locationString?: string;
|
|
}) {
|
|
return (
|
|
<Html>
|
|
<Head />
|
|
<Preview>See who visited your dataroom</Preview>
|
|
<Tailwind>
|
|
<Body className="mx-auto my-auto bg-white font-sans">
|
|
<Container className="mx-auto my-10 w-[465px] p-5">
|
|
<Text className="mx-0 mb-8 mt-4 p-0 text-center text-2xl font-normal">
|
|
<span className="font-bold tracking-tighter">Hanzo Dataroom</span>
|
|
</Text>
|
|
<Text className="mx-0 my-7 p-0 text-center text-xl font-semibold text-black">
|
|
New Dataroom Visitor
|
|
</Text>
|
|
<Text className="text-sm leading-6 text-black">
|
|
Your dataroom{" "}
|
|
<span className="font-semibold">{dataroomName}</span> was just
|
|
viewed by{" "}
|
|
<span className="font-semibold">
|
|
{viewerEmail ? `${viewerEmail}` : `someone`}
|
|
</span>
|
|
{locationString ? (
|
|
<span>
|
|
{" "}
|
|
in <span className="font-semibold">{locationString}</span>
|
|
</span>
|
|
) : null}{" "}
|
|
from the link <span className="font-semibold">{linkName}</span>.
|
|
</Text>
|
|
<Text className="text-sm leading-6 text-black">
|
|
You can get the detailed engagement analytics like time-spent per
|
|
document page and total duration for this dataroom on Hanzo Dataroom.
|
|
</Text>
|
|
<Section className="my-8 text-center">
|
|
<Button
|
|
className="rounded bg-black text-center text-xs font-semibold text-white no-underline"
|
|
href={`https://dataroom.hanzo.ai/datarooms/${dataroomId}`}
|
|
style={{ padding: "12px 20px" }}
|
|
>
|
|
See my dataroom insights
|
|
</Button>
|
|
</Section>
|
|
|
|
<Footer
|
|
footerText={
|
|
<>
|
|
If you have any feedback or questions about this email, simply
|
|
reply to it. I'd love to hear from you!
|
|
<br />
|
|
<br />
|
|
To stop email notifications for this link, edit the link and
|
|
uncheck "Receive email notification".
|
|
</>
|
|
}
|
|
/>
|
|
</Container>
|
|
</Body>
|
|
</Tailwind>
|
|
</Html>
|
|
);
|
|
}
|