Skip to content

Commit b22f1fc

Browse files
committed
add logo
1 parent 8cb264d commit b22f1fc

2 files changed

Lines changed: 14 additions & 4 deletions

File tree

email-templates/emails/_lib/components.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import {
66
Heading,
77
Hr,
88
Html,
9+
Img,
910
Link,
1011
Preview,
1112
Section,
@@ -43,7 +44,12 @@ export function Layout({
4344
function Header() {
4445
return (
4546
<Section style={styles.header}>
46-
<Text style={styles.brand}>OpenShock</Text>
47+
<Img
48+
src="https://wiki.openshock.org/branding/Logo128.png"
49+
height="32"
50+
alt="OpenShock"
51+
style={styles.brandLogo}
52+
/>
4753
</Section>
4854
);
4955
}

email-templates/emails/_lib/styles.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,16 @@ export const styles = {
4242
backgroundColor: colors.accent,
4343
color: colors.accentText,
4444
},
45-
brand: {
46-
margin: '0',
47-
fontSize: '18px',
45+
brandLogo: {
46+
display: 'block',
47+
margin: '0 auto',
48+
// Styles below apply to the `alt` text when the image is blocked,
49+
// so the OpenShock wordmark still looks like a header in that case.
50+
fontSize: '20px',
4851
fontWeight: '700',
4952
letterSpacing: '0.5px',
5053
color: colors.accentText,
54+
textDecoration: 'none',
5155
},
5256
content: {
5357
padding: '28px 32px 8px',

0 commit comments

Comments
 (0)