new newsletter templates
This commit is contained in:
parent
350fe68bf7
commit
c30f6313bc
3 changed files with 146 additions and 44 deletions
|
|
@ -6,19 +6,23 @@
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div>
|
<div id="card">
|
||||||
<h1>Neuer Artikel:</h1>
|
<div class="center"">
|
||||||
<h3>{{data.title}}</h3>
|
<img src=" https://blauwasser-mausis.de/BWM_512.webp">
|
||||||
<h4>{{data.subtitle}}</h4>
|
</div>
|
||||||
|
<h4 class="accent">Neuer Artikel</h4>
|
||||||
|
<p>{{data.date}} | Autor: {{data.author}} | Lesezeit: {{data.time2read}} min</p>
|
||||||
|
<h1>{{data.title}}</h1>
|
||||||
|
<h2>{{data.subtitle}}</h2>
|
||||||
<p>{{data.description}}</p>
|
<p>{{data.description}}</p>
|
||||||
|
|
||||||
<a href={{data.link}}>
|
<a href={{data.link}}>
|
||||||
<button>Zum Artikel</button>
|
<button>⚓︎ Zum Artikel</button>
|
||||||
</a>
|
</a>
|
||||||
|
<hr>
|
||||||
<a href="https://blauwasser-mausis.de/blog/bootsuche-england">
|
<div class="center"><a id="hide" href="https://blauwasser-mausis.de/blog/bootsuche-england">
|
||||||
<span>Abbestellen</span>
|
<span>Abbestellen</span>
|
||||||
</a>
|
</a></p>
|
||||||
|
</div>
|
||||||
|
|
||||||
<a id="admin" href="https://backend.blauwasser-mausis.de/?secret={{data.secret}}">Approve</a>
|
<a id="admin" href="https://backend.blauwasser-mausis.de/?secret={{data.secret}}">Approve</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -35,18 +39,54 @@
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
div {
|
#card {
|
||||||
display: flex;
|
background-image: linear-gradient(to bottom, #1d3238, #3c6a7b);
|
||||||
align-items: center;
|
padding: 16px 32px;
|
||||||
flex-direction: column;
|
border-radius: 8px;
|
||||||
background-color: lightgrey;
|
|
||||||
padding: 32px 64px;
|
|
||||||
border-radius: 3px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.center {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
img {
|
||||||
|
width: 88px;
|
||||||
|
padding: 0 0 16px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1,
|
||||||
|
h2,
|
||||||
h3,
|
h3,
|
||||||
h4 {
|
h4,
|
||||||
margin: 0;
|
p {
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.accent {
|
||||||
|
color: #ffff00;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
#hide {
|
||||||
|
color: #bbbebf;
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1,
|
||||||
|
h2,
|
||||||
|
h3,
|
||||||
|
h4,
|
||||||
|
p,
|
||||||
|
hr {
|
||||||
|
margin: 16px 0 16px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
line-height: 1.5;
|
||||||
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
button {
|
button {
|
||||||
|
|
@ -54,6 +94,14 @@
|
||||||
background-color: azure;
|
background-color: azure;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
border: none;
|
border: none;
|
||||||
|
font-weight: 700;
|
||||||
|
color: #1d3238;
|
||||||
|
margin: 16px 0 24px 0;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
hr {
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
#admin {
|
#admin {
|
||||||
|
|
|
||||||
|
|
@ -6,19 +6,23 @@
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<div>
|
<div id="card">
|
||||||
<h1>Hey {{data.user.name}}, es gibt einen neuen Artikel:</h1>
|
<div class="center"">
|
||||||
<h3>{{data.article.title}}</h3>
|
<img src=" https://blauwasser-mausis.de/BWM_512.webp">
|
||||||
<h4>{{data.article.subtitle}}</h4>
|
</div>
|
||||||
<p>{{data.article.description}}</p>
|
<h4 class="accent">Neuer Artikel</h4>
|
||||||
|
<p>{{data.date}} | Autor: {{data.author}} | Lesezeit: {{data.time2read}} min</p>
|
||||||
<a href={{data.article.link}}>
|
<h1>{{data.title}}</h1>
|
||||||
<button>Zum Artikel</button>
|
<h2>{{data.subtitle}}</h2>
|
||||||
|
<p>{{data.description}}</p>
|
||||||
|
<a href={{data.link}}>
|
||||||
|
<button>⚓︎ Zum Artikel</button>
|
||||||
</a>
|
</a>
|
||||||
|
<hr>
|
||||||
<a href="https://blauwasser-mausis.de/">
|
<div class="center"><a id="hide" href="https://blauwasser-mausis.de/blog/bootsuche-england">
|
||||||
<span>Abbestellen</span>
|
<span>Abbestellen</span>
|
||||||
</a>
|
</a></p>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
|
@ -33,18 +37,54 @@
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
div {
|
#card {
|
||||||
display: flex;
|
background-image: linear-gradient(to bottom, #1d3238, #3c6a7b);
|
||||||
align-items: center;
|
padding: 16px 32px;
|
||||||
flex-direction: column;
|
border-radius: 8px;
|
||||||
background-color: lightgrey;
|
|
||||||
padding: 32px 64px;
|
|
||||||
border-radius: 3px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.center {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
img {
|
||||||
|
width: 88px;
|
||||||
|
padding: 0 0 16px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1,
|
||||||
|
h2,
|
||||||
h3,
|
h3,
|
||||||
h4 {
|
h4,
|
||||||
margin: 0;
|
p {
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.accent {
|
||||||
|
color: #ffff00;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
#hide {
|
||||||
|
color: #bbbebf;
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1,
|
||||||
|
h2,
|
||||||
|
h3,
|
||||||
|
h4,
|
||||||
|
p,
|
||||||
|
hr {
|
||||||
|
margin: 16px 0 16px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
line-height: 1.5;
|
||||||
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
button {
|
button {
|
||||||
|
|
@ -52,5 +92,13 @@
|
||||||
background-color: azure;
|
background-color: azure;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
border: none;
|
border: none;
|
||||||
|
font-weight: 700;
|
||||||
|
color: #1d3238;
|
||||||
|
margin: 16px 0 24px 0;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
hr {
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
@ -12,21 +12,27 @@ from jinja2 import Environment, FileSystemLoader
|
||||||
APP_ROOT = Path(__file__).resolve().parent.parent
|
APP_ROOT = Path(__file__).resolve().parent.parent
|
||||||
|
|
||||||
class ArticleData():
|
class ArticleData():
|
||||||
def __init__(self, title, subtitle, description, link):
|
def __init__(self, title, subtitle, description, link, date, author, time2read):
|
||||||
self.title=title
|
self.title=title
|
||||||
self.subtitle=subtitle
|
self.subtitle=subtitle
|
||||||
self.description=description
|
self.description=description
|
||||||
self.link=link
|
self.link=link
|
||||||
|
self.data=date
|
||||||
|
self.author=author
|
||||||
|
self.time2read = time2read
|
||||||
|
|
||||||
title: str
|
title: str
|
||||||
subtitle: str
|
subtitle: str
|
||||||
description: str
|
description: str
|
||||||
link: str
|
link: str
|
||||||
|
date: str
|
||||||
|
author: str
|
||||||
|
time2read: str
|
||||||
|
|
||||||
|
|
||||||
class AdminApprovalData(ArticleData):
|
class AdminApprovalData(ArticleData):
|
||||||
def __init__(self,title, subtitle, description, link, secret):
|
def __init__(self,title, subtitle, description, link, date, author, time2read, secret):
|
||||||
ArticleData.__init__(self, title, subtitle, description, link)
|
ArticleData.__init__(self, title, subtitle, description, link, date, author, time2read)
|
||||||
self.secret = secret
|
self.secret = secret
|
||||||
|
|
||||||
secret: str
|
secret: str
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue