diff --git a/apps/hub-server/modules/mail-templates/Bann.tsx b/apps/hub-server/modules/mail-templates/Bann.tsx new file mode 100644 index 00000000..5f547bbf --- /dev/null +++ b/apps/hub-server/modules/mail-templates/Bann.tsx @@ -0,0 +1,166 @@ +import * as React from "react"; +import { User } from "@repo/db"; +import { Html, render } from "@react-email/components"; +import { EmailFooter } from "./EmailFooter"; + +const styles = ` + * { + box-sizing: border-box; + } + body { + margin: 0; + padding: 0; + } + a[x-apple-data-detectors] { + color: inherit !important; + text-decoration: inherit !important; + } + #MessageViewBody a { + color: inherit; + text-decoration: none; + } + p { + line-height: inherit; + } + .desktop_hide, + .desktop_hide table { + mso-hide: all; + display: none; + max-height: 0px; + overflow: hidden; + } + .image_block img + div { + display: none; + } + sup, + sub { + font-size: 75%; + line-height: 0; + } + .menu_block.desktop_hide .menu-links span { + mso-hide: all; + } + @media (max-width: 700px) { + .desktop_hide table.icons-inner { + display: inline-block !important; + } + .icons-inner { + text-align: center; + } + .icons-inner td { + margin: 0 auto; + } + } +`; + +const PenaltyNoticeTemplate = ({ user, staffName }: { user: User; staffName: string }) => ( + + + + + +
+
+
|
+
+
|
+