MCPcopy Create free account
hub / github.com/CapSoftware/Cap / FirstView

Function FirstView

packages/database/emails/first-view.tsx:17–79  ·  view source on GitHub ↗
({
	email = "",
	url = "",
	videoName = "",
	viewerName = "",
	manageNotificationsUrl,
}: {
	email: string;
	url: string;
	videoName: string;
	viewerName: string;
	manageNotificationsUrl?: string;
})

Source from the content-addressed store, hash-verified

15import Footer from "./components/Footer";
16
17export function FirstView({
18 email = "",
19 url = "",
20 videoName = "",
21 viewerName = "",
22 manageNotificationsUrl,
23}: {
24 email: string;
25 url: string;
26 videoName: string;
27 viewerName: string;
28 manageNotificationsUrl?: string;
29}) {
30 return (
31 <Html>
32 <Head />
33 <Preview>Your Cap "{videoName}" just got its first view!</Preview>
34 <Tailwind>
35 <Body className="mx-auto my-auto bg-gray-1 font-sans">
36 <Container className="mx-auto my-10 max-w-[500px] rounded border border-solid border-gray-200 px-10 py-5">
37 <Section className="mt-8">
38 <Img
39 src={CAP_LOGO_URL}
40 width="40"
41 height="40"
42 alt="Cap"
43 className="mx-auto my-0"
44 />
45 </Section>
46 <Heading className="mx-0 my-7 p-0 text-center text-xl font-semibold text-black">
47 Your Cap just got its first view!
48 </Heading>
49 <Text className="text-sm leading-6 text-black">
50 Your video "{videoName}" was just viewed by{" "}
51 <span className="font-medium">{viewerName}</span>.
52 </Text>
53 <Text className="text-sm leading-6 text-black">
54 Click the button below to see your Cap.
55 </Text>
56 <Section className="my-8 text-center">
57 <Link
58 className="rounded-full bg-black px-6 py-3 text-center text-[12px] font-semibold text-white no-underline"
59 href={url}
60 >
61 View Your Cap
62 </Link>
63 </Section>
64 <Text className="text-sm leading-6 text-black">
65 or copy and paste this URL into your browser:
66 </Text>
67 <Text className="max-w-sm flex-wrap break-words font-medium text-purple-600 no-underline">
68 {url.replace(/^https?:\/\//, "")}
69 </Text>
70 <Footer
71 email={email}
72 manageNotificationsUrl={manageNotificationsUrl}
73 />
74 </Container>

Callers 1

sendFirstViewEmailFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected