1
0
mirror of https://github.com/hrfee/jfa-go.git synced 2024-12-22 09:00:10 +00:00

substitute jellyfin strings on emails, hopefully fix dark mode

This commit is contained in:
Harvey Tindall 2021-02-18 16:09:58 +00:00
parent fa433c88a8
commit fb727e75ec
Signed by: hrfee
GPG Key ID: BBC65952848FB1A2
8 changed files with 198 additions and 6 deletions

View File

@ -1,5 +1,29 @@
<mjml> <mjml>
<mj-head> <mj-head>
<mj-raw>
<meta name="color-scheme" content="light dark">
<meta name="supported-color-schemes" content="light dark">
</mj-raw>
<mj-style>
:root {
Color-scheme: light dark;
supported-color-schemes: light dark;
}
@media (prefers-color-scheme: light) {
Color-scheme: dark;
.body {
background: #242424 !important;
background-color: #242424 !important;
}
}
@media (prefers-color-scheme: dark) {
Color-scheme: dark;
.body {
background: #242424 !important;
background-color: #242424 !important;
}
}
</mj-style>
<mj-attributes> <mj-attributes>
<mj-class name="bg" background-color="#101010" /> <mj-class name="bg" background-color="#101010" />
<mj-class name="bg2" background-color="#242424" /> <mj-class name="bg2" background-color="#242424" />
@ -14,7 +38,7 @@
<mj-body> <mj-body>
<mj-section mj-class="bg2"> <mj-section mj-class="bg2">
<mj-column> <mj-column>
<mj-text mj-class="bold" font-size="25px" font-family="Quicksand, Noto Sans, Helvetica, Arial, sans-serif"> Jellyfin </mj-text> <mj-text mj-class="bold" font-size="25px" font-family="Quicksand, Noto Sans, Helvetica, Arial, sans-serif"> {{ .jellyfin }} </mj-text>
</mj-column> </mj-column>
</mj-section> </mj-section>
<mj-section mj-class="bg"> <mj-section mj-class="bg">

View File

@ -1,5 +1,29 @@
<mjml> <mjml>
<mj-head> <mj-head>
<mj-raw>
<meta name="color-scheme" content="light dark">
<meta name="supported-color-schemes" content="light dark">
</mj-raw>
<mj-style>
:root {
Color-scheme: light dark;
supported-color-schemes: light dark;
}
@media (prefers-color-scheme: light) {
Color-scheme: dark;
.body {
background: #242424 !important;
background-color: #242424 !important;
}
}
@media (prefers-color-scheme: dark) {
Color-scheme: dark;
.body {
background: #242424 !important;
background-color: #242424 !important;
}
}
</mj-style>
<mj-attributes> <mj-attributes>
<mj-class name="bg" background-color="#101010" /> <mj-class name="bg" background-color="#101010" />
<mj-class name="bg2" background-color="#242424" /> <mj-class name="bg2" background-color="#242424" />
@ -14,7 +38,7 @@
<mj-body> <mj-body>
<mj-section mj-class="bg2"> <mj-section mj-class="bg2">
<mj-column> <mj-column>
<mj-text mj-class="bold" font-size="25px" font-family="Quicksand, Noto Sans, Helvetica, Arial, sans-serif"> Jellyfin </mj-text> <mj-text mj-class="bold" font-size="25px" font-family="Quicksand, Noto Sans, Helvetica, Arial, sans-serif"> {{ .jellyfin }} </mj-text>
</mj-column> </mj-column>
</mj-section> </mj-section>
<mj-section mj-class="bg"> <mj-section mj-class="bg">

View File

@ -1,5 +1,29 @@
<mjml> <mjml>
<mj-head> <mj-head>
<mj-raw>
<meta name="color-scheme" content="light dark">
<meta name="supported-color-schemes" content="light dark">
</mj-raw>
<mj-style>
:root {
Color-scheme: light dark;
supported-color-schemes: light dark;
}
@media (prefers-color-scheme: light) {
Color-scheme: dark;
.body {
background: #242424 !important;
background-color: #242424 !important;
}
}
@media (prefers-color-scheme: dark) {
Color-scheme: dark;
.body {
background: #242424 !important;
background-color: #242424 !important;
}
}
</mj-style>
<mj-attributes> <mj-attributes>
<mj-class name="bg" background-color="#101010" /> <mj-class name="bg" background-color="#101010" />
<mj-class name="bg2" background-color="#242424" /> <mj-class name="bg2" background-color="#242424" />

View File

@ -1,5 +1,29 @@
<mjml> <mjml>
<mj-head> <mj-head>
<mj-raw>
<meta name="color-scheme" content="light dark">
<meta name="supported-color-schemes" content="light dark">
</mj-raw>
<mj-style>
:root {
Color-scheme: light dark;
supported-color-schemes: light dark;
}
@media (prefers-color-scheme: light) {
Color-scheme: dark;
.body {
background: #242424 !important;
background-color: #242424 !important;
}
}
@media (prefers-color-scheme: dark) {
Color-scheme: dark;
.body {
background: #242424 !important;
background-color: #242424 !important;
}
}
</mj-style>
<mj-attributes> <mj-attributes>
<mj-class name="bg" background-color="#101010" /> <mj-class name="bg" background-color="#101010" />
<mj-class name="bg2" background-color="#242424" /> <mj-class name="bg2" background-color="#242424" />
@ -14,7 +38,7 @@
<mj-body> <mj-body>
<mj-section mj-class="bg2"> <mj-section mj-class="bg2">
<mj-column> <mj-column>
<mj-text mj-class="bold" font-size="25px" font-family="Quicksand, Noto Sans, Helvetica, Arial, sans-serif"> Jellyfin </mj-text> <mj-text mj-class="bold" font-size="25px" font-family="Quicksand, Noto Sans, Helvetica, Arial, sans-serif"> {{ .jellyfin }} </mj-text>
</mj-column> </mj-column>
</mj-section> </mj-section>
<mj-section mj-class="bg"> <mj-section mj-class="bg">

View File

@ -1,5 +1,29 @@
<mjml> <mjml>
<mj-head> <mj-head>
<mj-raw>
<meta name="color-scheme" content="light dark">
<meta name="supported-color-schemes" content="light dark">
</mj-raw>
<mj-style>
:root {
Color-scheme: light dark;
supported-color-schemes: light dark;
}
@media (prefers-color-scheme: light) {
Color-scheme: dark;
.body {
background: #242424 !important;
background-color: #242424 !important;
}
}
@media (prefers-color-scheme: dark) {
Color-scheme: dark;
.body {
background: #242424 !important;
background-color: #242424 !important;
}
}
</mj-style>
<mj-attributes> <mj-attributes>
<mj-class name="bg" background-color="#101010" /> <mj-class name="bg" background-color="#101010" />
<mj-class name="bg2" background-color="#242424" /> <mj-class name="bg2" background-color="#242424" />
@ -14,7 +38,7 @@
<mj-body> <mj-body>
<mj-section mj-class="bg2"> <mj-section mj-class="bg2">
<mj-column> <mj-column>
<mj-text mj-class="bold" font-size="25px" font-family="Quicksand, Noto Sans, Helvetica, Arial, sans-serif"> Jellyfin </mj-text> <mj-text mj-class="bold" font-size="25px" font-family="Quicksand, Noto Sans, Helvetica, Arial, sans-serif"> {{ .jellyfin }} </mj-text>
</mj-column> </mj-column>
</mj-section> </mj-section>
<mj-section mj-class="bg"> <mj-section mj-class="bg">

View File

@ -1,5 +1,29 @@
<mjml> <mjml>
<mj-head> <mj-head>
<mj-raw>
<meta name="color-scheme" content="light dark">
<meta name="supported-color-schemes" content="light dark">
</mj-raw>
<mj-style>
:root {
Color-scheme: light dark;
supported-color-schemes: light dark;
}
@media (prefers-color-scheme: light) {
Color-scheme: dark;
.body {
background: #242424 !important;
background-color: #242424 !important;
}
}
@media (prefers-color-scheme: dark) {
Color-scheme: dark;
.body {
background: #242424 !important;
background-color: #242424 !important;
}
}
</mj-style>
<mj-attributes> <mj-attributes>
<mj-class name="bg" background-color="#101010" /> <mj-class name="bg" background-color="#101010" />
<mj-class name="bg2" background-color="#242424" /> <mj-class name="bg2" background-color="#242424" />

View File

@ -1,5 +1,29 @@
<mjml> <mjml>
<mj-head> <mj-head>
<mj-raw>
<meta name="color-scheme" content="light dark">
<meta name="supported-color-schemes" content="light dark">
</mj-raw>
<mj-style>
:root {
Color-scheme: light dark;
supported-color-schemes: light dark;
}
@media (prefers-color-scheme: light) {
Color-scheme: dark;
.body {
background: #242424 !important;
background-color: #242424 !important;
}
}
@media (prefers-color-scheme: dark) {
Color-scheme: dark;
.body {
background: #242424 !important;
background-color: #242424 !important;
}
}
</mj-style>
<mj-attributes> <mj-attributes>
<mj-class name="bg" background-color="#101010" /> <mj-class name="bg" background-color="#101010" />
<mj-class name="bg2" background-color="#242424" /> <mj-class name="bg2" background-color="#242424" />
@ -14,7 +38,7 @@
<mj-body> <mj-body>
<mj-section mj-class="bg2"> <mj-section mj-class="bg2">
<mj-column> <mj-column>
<mj-text mj-class="bold" font-size="25px" font-family="Quicksand, Noto Sans, Helvetica, Arial, sans-serif"> Jellyfin </mj-text> <mj-text mj-class="bold" font-size="25px" font-family="Quicksand, Noto Sans, Helvetica, Arial, sans-serif"> {{ .jellyfin }} </mj-text>
</mj-column> </mj-column>
</mj-section> </mj-section>
<mj-section mj-class="bg"> <mj-section mj-class="bg">

View File

@ -1,5 +1,29 @@
<mjml> <mjml>
<mj-head> <mj-head>
<mj-raw>
<meta name="color-scheme" content="light dark">
<meta name="supported-color-schemes" content="light dark">
</mj-raw>
<mj-style>
:root {
Color-scheme: light dark;
supported-color-schemes: light dark;
}
@media (prefers-color-scheme: light) {
Color-scheme: dark;
.body {
background: #242424 !important;
background-color: #242424 !important;
}
}
@media (prefers-color-scheme: dark) {
Color-scheme: dark;
.body {
background: #242424 !important;
background-color: #242424 !important;
}
}
</mj-style>
<mj-attributes> <mj-attributes>
<mj-class name="bg" background-color="#101010" /> <mj-class name="bg" background-color="#101010" />
<mj-class name="bg2" background-color="#242424" /> <mj-class name="bg2" background-color="#242424" />
@ -14,7 +38,7 @@
<mj-body> <mj-body>
<mj-section mj-class="bg2"> <mj-section mj-class="bg2">
<mj-column> <mj-column>
<mj-text mj-class="bold" font-size="25px" font-family="Quicksand, Noto Sans, Helvetica, Arial, sans-serif"> Jellyfin </mj-text> <mj-text mj-class="bold" font-size="25px" font-family="Quicksand, Noto Sans, Helvetica, Arial, sans-serif"> {{ .jellyfin }} </mj-text>
</mj-column> </mj-column>
</mj-section> </mj-section>
<mj-section mj-class="bg"> <mj-section mj-class="bg">