mirror of
https://github.com/hanzoai/dataroom.git
synced 2026-10-30 18:41:07 +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.
144 lines
4.8 KiB
TypeScript
144 lines
4.8 KiB
TypeScript
import React from "react";
|
|
|
|
import {
|
|
Body,
|
|
Button,
|
|
Container,
|
|
Head,
|
|
Hr,
|
|
Html,
|
|
Link,
|
|
Preview,
|
|
Section,
|
|
Tailwind,
|
|
Text,
|
|
} from "@react-email/components";
|
|
|
|
import { Footer } from "./shared/footer";
|
|
|
|
export default function CustomDomainSetup({
|
|
name = "there",
|
|
currentPlan = "Free",
|
|
hasAccess = false,
|
|
}: {
|
|
name?: string;
|
|
currentPlan?: string;
|
|
hasAccess?: boolean;
|
|
}) {
|
|
const getPlanInfo = () => {
|
|
if (hasAccess) {
|
|
return {
|
|
title: "Your custom domain is ready to set up! 🎉",
|
|
subtitle: `Great news! Your ${currentPlan} plan includes custom domain access.`,
|
|
};
|
|
} else {
|
|
return {
|
|
title: "Interested in custom domains? 🚀",
|
|
subtitle:
|
|
"Learn how custom domains can enhance your document sharing experience.",
|
|
};
|
|
}
|
|
};
|
|
|
|
const { title, subtitle } = getPlanInfo();
|
|
|
|
return (
|
|
<Html>
|
|
<Head />
|
|
<Preview>Your Hanzo Dataroom custom domain set up</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">
|
|
{title}
|
|
</Text>
|
|
<Text className="text-sm leading-6 text-black">Hi {name},</Text>
|
|
<Text className="text-sm leading-6 text-black">{subtitle}</Text>
|
|
|
|
{!hasAccess && (
|
|
<>
|
|
<Text className="text-sm leading-6 text-black">
|
|
<strong>Custom domains are available: </strong>
|
|
</Text>
|
|
<ul className="list-inside list-disc text-sm">
|
|
<li>
|
|
<strong>Business:</strong> Custom domain for documents
|
|
</li>
|
|
<li>
|
|
<strong>Data Rooms:</strong> Custom domain for data rooms
|
|
</li>
|
|
<li>
|
|
<strong>Data Rooms Plus:</strong> Unlimited custom domains
|
|
for data rooms and documents
|
|
</li>
|
|
</ul>
|
|
</>
|
|
)}
|
|
|
|
<Text className="text-sm leading-6 text-black">
|
|
<strong>Setting up your custom domain:</strong>
|
|
</Text>
|
|
<ol className="list-inside list-decimal text-sm">
|
|
<li>Choose your subdomain (e.g. docs.yourcompany.com)</li>
|
|
<li>Add a CNAME record pointing to dataroom.hanzo.ai</li>
|
|
<li>Configure the domain in your Hanzo Dataroom settings</li>
|
|
<li>Start sharing with your branded domain!</li>
|
|
</ol>
|
|
|
|
<Section className="my-8 text-center">
|
|
{hasAccess ? (
|
|
<Button
|
|
className="rounded bg-black text-center text-xs font-semibold text-white no-underline"
|
|
href={`https://dataroom.hanzo.ai/settings/domains`}
|
|
style={{ padding: "12px 20px" }}
|
|
>
|
|
Set up your custom domain
|
|
</Button>
|
|
) : (
|
|
<Button
|
|
className="rounded bg-black text-center text-xs font-semibold text-white no-underline"
|
|
href={`https://dataroom.hanzo.ai/settings/upgrade`}
|
|
style={{ padding: "12px 20px" }}
|
|
>
|
|
Upgrade to use custom domains
|
|
</Button>
|
|
)}
|
|
</Section>
|
|
|
|
<Text className="text-sm leading-6 text-black">
|
|
{hasAccess ? (
|
|
<>
|
|
Need help? Check out our{" "}
|
|
<Link
|
|
href="https://docs.dataroom.hanzo.ai/custom-domains"
|
|
className="font-medium text-blue-600 no-underline"
|
|
>
|
|
custom domain documentation
|
|
</Link>{" "}
|
|
or reply to this email - we're here to help!
|
|
</>
|
|
) : (
|
|
<>
|
|
Want to learn more about our plans?{" "}
|
|
<Link
|
|
href="https://dataroom.hanzo.ai/settings/upgrade"
|
|
className="font-medium text-blue-600 no-underline"
|
|
>
|
|
View pricing
|
|
</Link>{" "}
|
|
or reply to this email if you have any questions!
|
|
</>
|
|
)}
|
|
</Text>
|
|
|
|
<Footer footerText="If you have any questions about setting up your custom domain, simply reply to this email. We'd love to help you get started!" />
|
|
</Container>
|
|
</Body>
|
|
</Tailwind>
|
|
</Html>
|
|
);
|
|
}
|