Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
feat(emails): add download link email template
Richie McIlroyaf21763ce021
diff --git a/packages/database/emails/download-link.tsx b/packages/database/emails/download-link.tsxnew file mode 100644index 000000000..a068ab52e--- /dev/null+++ b/packages/database/emails/download-link.tsx@@ -0,0 +1,87 @@+import { CAP_LOGO_URL } from "@cap/utils";+import {+ Body,+ Container,+ Head,+ Heading,+ Html,+ Img,+ Link,+ Preview,+ Section,+ Tailwind,+ Text,+} from "@react-email/components";+import Footer from "./components/Footer";++export function DownloadLink({ email = "" }: { email: string }) {+ return (+ <Html>+ <Head />+ <Preview>Download Cap — the open source Loom alternative</Preview>+ <Tailwind>+ <Body className="mx-auto my-auto bg-gray-1 font-sans">+ <Container className="mx-auto my-10 max-w-[500px] rounded border border-solid border-gray-200 px-10 py-5">+ <Section className="mt-8">+ <Img+ src={CAP_LOGO_URL}+ width="40"+ height="40"+ alt="Cap"+ className="mx-auto my-0"+ />+ </Section>+ <Heading className="mx-0 my-7 p-0 text-center text-xl font-semibold text-black">+ Your Cap download links are here+ </Heading>+ <Text className="text-sm leading-6 text-black">+ Thanks for your interest in Cap! Here are the download links for+ every platform:+ </Text>++ <Section className="my-6">+ <table cellPadding="0" cellSpacing="0" style={{ width: "100%" }}>+ <tr>+ <td style={{ paddingBottom: "12px" }}>+ <Link+ className="block w-full rounded-lg bg-black px-6 py-3 text-center text-[13px] font-semibold text-white no-underline"+ href="https://cap.so/download/apple-silicon"+ >+ Download for Mac (Apple Silicon)+ </Link>+ </td>+ </tr>+ <tr>+ <td style={{ paddingBottom: "12px" }}>+ <Link+ className="block w-full rounded-lg border border-solid border-gray-300 bg-white px-6 py-3 text-center text-[13px] font-semibold text-black no-underline"+ href="https://cap.so/download/apple-intel"+ >+ Download for Mac (Intel)+ </Link>+ </td>+ </tr>+ <tr>+ <td>+ <Link+ className="block w-full rounded-lg border border-solid border-gray-300 bg-white px-6 py-3 text-center text-[13px] font-semibold text-black no-underline"+ href="https://cap.so/download/windows"+ >+ Download for Windows+ </Link>+ </td>+ </tr>+ </table>+ </Section>++ <Text className="text-sm leading-6 text-black mt-4">+ Cap is the open source alternative to Loom. Beautiful, shareable+ screen recordings — lightweight, powerful, and privacy-focused.+ </Text>+ <Footer email={email} marketing={true} />+ </Container>+ </Body>+ </Tailwind>+ </Html>+ );+}