brookmind-emails 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.prettierrc +7 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +4 -0
- package/dist/modelfy/config.d.ts +7 -0
- package/dist/modelfy/config.d.ts.map +1 -0
- package/dist/modelfy/config.js +6 -0
- package/dist/modelfy/index.d.ts +14 -0
- package/dist/modelfy/index.d.ts.map +1 -0
- package/dist/modelfy/index.js +33 -0
- package/dist/modelfy/templates/GrantCreditsEmail.d.ts +10 -0
- package/dist/modelfy/templates/GrantCreditsEmail.d.ts.map +1 -0
- package/dist/modelfy/templates/GrantCreditsEmail.js +101 -0
- package/dist/modelfy/templates/OtpEmail.d.ts +8 -0
- package/dist/modelfy/templates/OtpEmail.d.ts.map +1 -0
- package/dist/modelfy/templates/OtpEmail.js +66 -0
- package/dist/modelfy/templates/PromoSubscriptionEmail.d.ts +11 -0
- package/dist/modelfy/templates/PromoSubscriptionEmail.d.ts.map +1 -0
- package/dist/modelfy/templates/PromoSubscriptionEmail.js +83 -0
- package/dist/modelfy/templates/index.d.ts +4 -0
- package/dist/modelfy/templates/index.d.ts.map +1 -0
- package/dist/modelfy/templates/index.js +3 -0
- package/dist/shared/components/Button.d.ts +7 -0
- package/dist/shared/components/Button.d.ts.map +1 -0
- package/dist/shared/components/Button.js +27 -0
- package/dist/shared/components/Footer.d.ts +8 -0
- package/dist/shared/components/Footer.d.ts.map +1 -0
- package/dist/shared/components/Footer.js +28 -0
- package/dist/shared/components/Header.d.ts +7 -0
- package/dist/shared/components/Header.d.ts.map +1 -0
- package/dist/shared/components/Header.js +40 -0
- package/dist/shared/components/index.d.ts +4 -0
- package/dist/shared/components/index.d.ts.map +1 -0
- package/dist/shared/components/index.js +3 -0
- package/dist/shared/index.d.ts +2 -0
- package/dist/shared/index.d.ts.map +1 -0
- package/dist/shared/index.js +1 -0
- package/package.json +40 -0
- package/src/index.ts +5 -0
- package/src/modelfy/config.ts +6 -0
- package/src/modelfy/index.ts +57 -0
- package/src/modelfy/templates/GrantCreditsEmail.tsx +205 -0
- package/src/modelfy/templates/OtpEmail.tsx +128 -0
- package/src/modelfy/templates/PromoSubscriptionEmail.tsx +189 -0
- package/src/modelfy/templates/index.ts +3 -0
- package/src/shared/components/Button.tsx +39 -0
- package/src/shared/components/Footer.tsx +63 -0
- package/src/shared/components/Header.tsx +56 -0
- package/src/shared/components/index.ts +3 -0
- package/src/shared/index.ts +1 -0
- package/tsconfig.json +22 -0
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Section, Img, Text } from "@react-email/components";
|
|
2
|
+
|
|
3
|
+
export interface HeaderProps {
|
|
4
|
+
logoUrl: string;
|
|
5
|
+
logoAlt?: string;
|
|
6
|
+
subtitle?: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
const styles = {
|
|
10
|
+
header: {
|
|
11
|
+
backgroundColor: "#000000",
|
|
12
|
+
padding: "32px 40px",
|
|
13
|
+
borderBottom: "1px solid rgba(148, 163, 184, 0.15)",
|
|
14
|
+
},
|
|
15
|
+
logoContainer: {
|
|
16
|
+
display: "flex" as const,
|
|
17
|
+
flexDirection: "column" as const,
|
|
18
|
+
alignItems: "center" as const,
|
|
19
|
+
justifyContent: "center" as const,
|
|
20
|
+
gap: "18px",
|
|
21
|
+
textAlign: "center" as const,
|
|
22
|
+
},
|
|
23
|
+
logoWrapper: {
|
|
24
|
+
display: "flex" as const,
|
|
25
|
+
alignItems: "center" as const,
|
|
26
|
+
justifyContent: "center" as const,
|
|
27
|
+
backgroundColor: "#000",
|
|
28
|
+
borderRadius: "18px",
|
|
29
|
+
padding: "16px 24px",
|
|
30
|
+
},
|
|
31
|
+
logo: {
|
|
32
|
+
display: "block" as const,
|
|
33
|
+
maxWidth: "100%",
|
|
34
|
+
},
|
|
35
|
+
subtitle: {
|
|
36
|
+
fontSize: "16px",
|
|
37
|
+
color: "rgba(255,255,255,0.8)",
|
|
38
|
+
letterSpacing: "4px",
|
|
39
|
+
textTransform: "uppercase" as const,
|
|
40
|
+
fontWeight: 500,
|
|
41
|
+
margin: 0,
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export function Header({ logoUrl, logoAlt = "Logo", subtitle }: HeaderProps) {
|
|
46
|
+
return (
|
|
47
|
+
<Section style={styles.header}>
|
|
48
|
+
<div style={styles.logoContainer}>
|
|
49
|
+
<div style={styles.logoWrapper}>
|
|
50
|
+
<Img src={logoUrl} width="150" height="auto" alt={logoAlt} style={styles.logo} />
|
|
51
|
+
</div>
|
|
52
|
+
{subtitle && <Text style={styles.subtitle}>{subtitle}</Text>}
|
|
53
|
+
</div>
|
|
54
|
+
</Section>
|
|
55
|
+
);
|
|
56
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./components/index.js";
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2022",
|
|
4
|
+
"module": "ESNext",
|
|
5
|
+
"moduleResolution": "bundler",
|
|
6
|
+
"lib": ["ES2022"],
|
|
7
|
+
"jsx": "react-jsx",
|
|
8
|
+
"strict": true,
|
|
9
|
+
"esModuleInterop": true,
|
|
10
|
+
"skipLibCheck": true,
|
|
11
|
+
"forceConsistentCasingInFileNames": true,
|
|
12
|
+
"declaration": true,
|
|
13
|
+
"declarationMap": true,
|
|
14
|
+
"outDir": "./dist",
|
|
15
|
+
"rootDir": "./src",
|
|
16
|
+
"resolveJsonModule": true,
|
|
17
|
+
"isolatedModules": true,
|
|
18
|
+
"noEmit": false
|
|
19
|
+
},
|
|
20
|
+
"include": ["src/**/*"],
|
|
21
|
+
"exclude": ["node_modules", "dist"]
|
|
22
|
+
}
|