summaryrefslogtreecommitdiffhomepage
path: root/packages/console/mail/emails/templates
diff options
context:
space:
mode:
authorFrank <[email protected]>2025-10-01 19:34:37 -0400
committerFrank <[email protected]>2025-10-01 19:34:37 -0400
commit70da3a9399d3385b53f7831beb08f716b972860d (patch)
tree6934fafb8558d426df88ca83d043eb3ac5910dcd /packages/console/mail/emails/templates
parent1024537b471c341581826b39c360d34d6c32404f (diff)
downloadopencode-70da3a9399d3385b53f7831beb08f716b972860d.tar.gz
opencode-70da3a9399d3385b53f7831beb08f716b972860d.zip
wip: zen
Diffstat (limited to 'packages/console/mail/emails/templates')
-rw-r--r--packages/console/mail/emails/templates/InviteEmail.tsx113
-rw-r--r--packages/console/mail/emails/templates/static/ibm-plex-mono-latin-400.woff2bin0 -> 10088 bytes
-rw-r--r--packages/console/mail/emails/templates/static/ibm-plex-mono-latin-500.woff2bin0 -> 10132 bytes
-rw-r--r--packages/console/mail/emails/templates/static/ibm-plex-mono-latin-600.woff2bin0 -> 10148 bytes
-rw-r--r--packages/console/mail/emails/templates/static/ibm-plex-mono-latin-700.woff2bin0 -> 10140 bytes
-rw-r--r--packages/console/mail/emails/templates/static/rubik-latin.woff2bin0 -> 35320 bytes
-rw-r--r--packages/console/mail/emails/templates/static/zen-logo.pngbin0 -> 8336 bytes
7 files changed, 113 insertions, 0 deletions
diff --git a/packages/console/mail/emails/templates/InviteEmail.tsx b/packages/console/mail/emails/templates/InviteEmail.tsx
new file mode 100644
index 000000000..978080a9c
--- /dev/null
+++ b/packages/console/mail/emails/templates/InviteEmail.tsx
@@ -0,0 +1,113 @@
+// @ts-nocheck
+import React from "react"
+import { Img, Row, Html, Link, Body, Head, Button, Column, Preview, Section, Container } from "@jsx-email/all"
+import { Hr, Text, Fonts, SplitString, Title, A, Span } from "../components"
+import {
+ unit,
+ body,
+ code,
+ frame,
+ medium,
+ heading,
+ container,
+ headingHr,
+ footerLink,
+ breadcrumb,
+ compactText,
+ buttonPrimary,
+ breadcrumbColonSeparator,
+} from "../styles"
+
+const LOCAL_ASSETS_URL = "/static"
+const CONSOLE_URL = "https://opencode.ai/"
+const DOC_URL = "https://opencode.ai/docs/zen"
+
+interface InviteEmailProps {
+ workspace: string
+ assetsUrl: string
+}
+export const InviteEmail = ({ workspace, assetsUrl = LOCAL_ASSETS_URL }: InviteEmailProps) => {
+ const subject = `Join the ${workspace} workspace`
+ const messagePlain = `You've been invited to join the ${workspace} workspace in the OpenCode Zen Console.`
+ const url = `${CONSOLE_URL}workspace/${workspace}`
+ return (
+ <Html lang="en">
+ <Head>
+ <Title>{`OpenCode Zen — ${messagePlain}`}</Title>
+ </Head>
+ <Fonts assetsUrl={assetsUrl} />
+ <Preview>{messagePlain}</Preview>
+ <Body style={body} id={Math.random().toString()}>
+ <Container style={container}>
+ <Section style={frame}>
+ <Row>
+ <Column>
+ <A href={CONSOLE_URL}>
+ <Img height="32" alt="OpenCode Zen Logo" src={`${assetsUrl}/zen-logo.png`} />
+ </A>
+ </Column>
+ <Column align="right">
+ <Button style={buttonPrimary} href={url}>
+ <Span style={code}>Join Workspace</Span>
+ </Button>
+ </Column>
+ </Row>
+
+ <Row style={headingHr}>
+ <Column>
+ <Hr />
+ </Column>
+ </Row>
+
+ <Section>
+ <Text style={{ ...compactText, ...breadcrumb }}>
+ <Span>OpenCode Zen</Span>
+ <Span style={{ ...code, ...breadcrumbColonSeparator }}>:</Span>
+ <Span>{workspace}</Span>
+ </Text>
+ <Text style={{ ...heading, ...compactText }}>
+ <Link href={url}>
+ <SplitString text={subject} split={40} />
+ </Link>
+ </Text>
+ </Section>
+ <Section style={{ padding: `${unit}px 0 0 0` }}>
+ <Text style={{ ...compactText }}>
+ You've been invited to join the{" "}
+ <Link style={medium} href={url}>
+ {workspace}
+ </Link>{" "}
+ workspace in the{" "}
+ <Link style={medium} href={CONSOLE_URL}>
+ OpenCode Zen Console
+ </Link>
+ .
+ </Text>
+ </Section>
+
+ <Row style={headingHr}>
+ <Column>
+ <Hr />
+ </Column>
+ </Row>
+
+ <Row>
+ <Column>
+ <Link href={CONSOLE_URL} style={footerLink}>
+ Console
+ </Link>
+ </Column>
+ <Column align="right">
+ <Link style={footerLink} href={DOC_URL}>
+ About
+ </Link>
+ </Column>
+ </Row>
+ </Section>
+ </Container>
+ </Body>
+ </Html>
+ )
+}
+
+export default InviteEmail
diff --git a/packages/console/mail/emails/templates/static/ibm-plex-mono-latin-400.woff2 b/packages/console/mail/emails/templates/static/ibm-plex-mono-latin-400.woff2
new file mode 100644
index 000000000..89713fa9a
--- /dev/null
+++ b/packages/console/mail/emails/templates/static/ibm-plex-mono-latin-400.woff2
Binary files differ
diff --git a/packages/console/mail/emails/templates/static/ibm-plex-mono-latin-500.woff2 b/packages/console/mail/emails/templates/static/ibm-plex-mono-latin-500.woff2
new file mode 100644
index 000000000..21413e73f
--- /dev/null
+++ b/packages/console/mail/emails/templates/static/ibm-plex-mono-latin-500.woff2
Binary files differ
diff --git a/packages/console/mail/emails/templates/static/ibm-plex-mono-latin-600.woff2 b/packages/console/mail/emails/templates/static/ibm-plex-mono-latin-600.woff2
new file mode 100644
index 000000000..4a2ebd962
--- /dev/null
+++ b/packages/console/mail/emails/templates/static/ibm-plex-mono-latin-600.woff2
Binary files differ
diff --git a/packages/console/mail/emails/templates/static/ibm-plex-mono-latin-700.woff2 b/packages/console/mail/emails/templates/static/ibm-plex-mono-latin-700.woff2
new file mode 100644
index 000000000..624783be5
--- /dev/null
+++ b/packages/console/mail/emails/templates/static/ibm-plex-mono-latin-700.woff2
Binary files differ
diff --git a/packages/console/mail/emails/templates/static/rubik-latin.woff2 b/packages/console/mail/emails/templates/static/rubik-latin.woff2
new file mode 100644
index 000000000..c533eec64
--- /dev/null
+++ b/packages/console/mail/emails/templates/static/rubik-latin.woff2
Binary files differ
diff --git a/packages/console/mail/emails/templates/static/zen-logo.png b/packages/console/mail/emails/templates/static/zen-logo.png
new file mode 100644
index 000000000..382223627
--- /dev/null
+++ b/packages/console/mail/emails/templates/static/zen-logo.png
Binary files differ