Skip to content

Commit

Permalink
add new logo
Browse files Browse the repository at this point in the history
  • Loading branch information
codemist committed Oct 28, 2024
1 parent 41559a5 commit e6c1dcb
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/emails/components/EmailHero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const EmailHero = (props: Props) => {
return (
<mj-wrapper padding="24px 16px">
<mj-section
padding="10px 12px"
padding="10px 6px"
css-class="hero_background"
border-radius="16px 16px 0 0"
>
Expand All @@ -39,6 +39,15 @@ export const EmailHero = (props: Props) => {
href={`${process.env.SERVER_URL}/user/dashboard/fixed?utm_source=monitor-product&utm_medium=product-email&utm_campaign=${props.utm_campaign}&utm_content=header-logo${utmContentSuffix}`}
align="left"
width="200px"
css-class="monitor_logo_light_mode"
/>
<mj-image
alt={l10n.getString("public-nav-name")}
src={`${process.env.SERVER_URL}/images/email/monitor-logo-transparent-dark-mode.png`}
href={`${process.env.SERVER_URL}/user/dashboard/fixed?utm_source=monitor-product&utm_medium=product-email&utm_campaign=${props.utm_campaign}&utm_content=header-logo${utmContentSuffix}`}
align="left"
width="200px"
css-class="monitor_logo_dark_mode"
/>
</mj-column>
<mj-column
Expand Down
12 changes: 12 additions & 0 deletions src/emails/templates/HeaderStyles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,25 @@ export const HeaderStyles = () => {
background-color: #e4d2ff;
background-position-x: 0;
}
.monitor_logo_dark_mode {
display: none;
}
}
@media (prefers-color-scheme: dark) {
.hero_background {
background: none !important;
}
.monitor_logo_light_mode {
display: none;
}
.monitor_logo_dark_mode {
display: inline;
}
* {
color: #ffffff !important;
}
Expand Down

0 comments on commit e6c1dcb

Please sign in to comment.