somewhat there
This commit is contained in:
parent
572a62eda2
commit
8d9cdc92d5
3 changed files with 87 additions and 34 deletions
|
|
@ -7,6 +7,7 @@ const postSchema = z.object({
|
|||
title: z.string(),
|
||||
subtitle: z.string(),
|
||||
description: z.string(),
|
||||
introduction: z.string(),
|
||||
image: z.object({
|
||||
path: z.string(),
|
||||
alt: z.string()
|
||||
|
|
|
|||
|
|
@ -17,26 +17,30 @@ const localeDate = formatLocalizedDateString(postData.date);
|
|||
---
|
||||
|
||||
<Main>
|
||||
<article class="markdown-content">
|
||||
<Image
|
||||
id="titleImg"
|
||||
src={titleImg}
|
||||
alt={postData.image.alt}
|
||||
class="rounded"
|
||||
/>
|
||||
<h1 class="headline">{postData.title}</h1>
|
||||
<div class="bottom-info">
|
||||
<span>Autor: {postData.author}</span>
|
||||
<span>{localeDate}</span>
|
||||
<div id="background">
|
||||
<div id="article-header">
|
||||
<Image id="titleImg" src={titleImg} alt={postData.image.alt} />
|
||||
<div>
|
||||
<div class="info">
|
||||
<span>{localeDate} | </span>
|
||||
<span>Autor: {postData.author} | </span>
|
||||
<span>Lesezeit: {postData.time2read}</span>
|
||||
</div>
|
||||
<h1>{postData.title}</h1>
|
||||
<h3>{postData.subtitle}</h3>
|
||||
</div>
|
||||
<span>{postData.introduction}</span>
|
||||
</div>
|
||||
<slot />
|
||||
<NavBack client:visible />
|
||||
<p class="disclaimer">
|
||||
Disclaimer: Dieser Artikel ist ausschließlich privat und wird nicht durch
|
||||
Produktplatzierung, Affiliate-Links oder ähnliches Unterstützt. Links
|
||||
dienen allein dem Zweck der Information.
|
||||
</p>
|
||||
</article>
|
||||
<article class="markdown-content">
|
||||
<slot />
|
||||
<NavBack client:visible />
|
||||
<p class="disclaimer">
|
||||
Disclaimer: Dieser Artikel ist ausschließlich privat und wird nicht
|
||||
durch Produktplatzierung, Affiliate-Links oder ähnliches Unterstützt.
|
||||
Links dienen allein dem Zweck der Information.
|
||||
</p>
|
||||
</article>
|
||||
</div>
|
||||
|
||||
<div id="image-backdrop" hidden>
|
||||
<img id="image-preview" class="rounded" src="" alt="" />
|
||||
|
|
@ -46,11 +50,39 @@ const localeDate = formatLocalizedDateString(postData.date);
|
|||
<script is:inline src="/scripts/image-modal.js"></script>
|
||||
|
||||
<style>
|
||||
#background {
|
||||
background-image: linear-gradient(
|
||||
to bottom,
|
||||
var(--primary-dark),
|
||||
var(--primary-color)
|
||||
);
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
padding: 0 20%;
|
||||
}
|
||||
|
||||
#article-header {
|
||||
background-color: white;
|
||||
max-width: 900px;
|
||||
padding: 0 64px;
|
||||
font-size: 1.5rem;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
article {
|
||||
max-width: 900px;
|
||||
padding: 0 clamp(8px, 32px, 64px);
|
||||
padding: 0 64px;
|
||||
hyphens: auto;
|
||||
text-align: justify;
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
#titleImg {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 300px;
|
||||
object-fit: cover;
|
||||
object-position: center;
|
||||
}
|
||||
|
||||
.markdown-content {
|
||||
|
|
@ -62,21 +94,23 @@ const localeDate = formatLocalizedDateString(postData.date);
|
|||
}
|
||||
}
|
||||
|
||||
#titleImg {
|
||||
width: 100%;
|
||||
height: 300px;
|
||||
object-fit: cover;
|
||||
object-position: center;
|
||||
.info {
|
||||
padding-top: 16px;
|
||||
font-size: medium;
|
||||
}
|
||||
|
||||
.bottom-info {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin-top: 16px;
|
||||
h1 {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
h3 {
|
||||
margin-top: 0;
|
||||
font-weight: lighter;
|
||||
}
|
||||
|
||||
.disclaimer {
|
||||
margin: 32px 0 64px 0;
|
||||
padding: 64px 0 16px 0;
|
||||
margin: 0;
|
||||
font-size: smaller;
|
||||
}
|
||||
|
||||
|
|
@ -106,11 +140,30 @@ const localeDate = formatLocalizedDateString(postData.date);
|
|||
cursor: pointer;
|
||||
}
|
||||
|
||||
|
||||
@media only screen and (max-width: 800px) {
|
||||
.markdown-content {
|
||||
font-size: 1.25rem;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
#background {
|
||||
background-image: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#article-header {
|
||||
display: flex;
|
||||
flex-direction: column-reverse;
|
||||
background-image: linear-gradient(
|
||||
to bottom,
|
||||
var(--primary-dark),
|
||||
var(--primary-color)
|
||||
);
|
||||
color: white;
|
||||
}
|
||||
|
||||
h1 {
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
title: Spanien
|
||||
subtitle: ¡Nos encanta España!
|
||||
description: Seitdem wir Spanisch lernen haben wir eine besondere Verbindung zu diesem Land. Die Vorfreude ist groß und die Aussicht hier mit einem Boot ins Abenteuer zu starten ist wunderschön.
|
||||
introduction: England war wie England nun mal ist. Die Städte sind nicht meins und wohnen würde ich da auch nicht gerne. In dörflichen Regionen haben die kleinen Häuser noch einen gewissen Charme. Zusammen gepresst und zubetoniert macht es mich traurig. Umso besser, dass wir gleich etwa 2000km weiter südlich sind.
|
||||
image:
|
||||
path: titelbild_spanien.webp
|
||||
alt: Chiara und Tim mit strahlenden Gesichter. Es ist wieder warm!
|
||||
|
|
@ -14,9 +15,7 @@ import BlogLink from '../../components/blog/BlogLink.astro'
|
|||
import SingleImage from '../../components/blog/SingleImage.astro'
|
||||
import DoubleImage from '../../components/blog/DoubleImage.astro'
|
||||
|
||||
England war wie England nun mal ist. Die Städte sind nicht meins und wohnen würde ich da auch nicht gerne.
|
||||
In dörflichen Regionen haben die kleinen Häuser noch einen gewissen Charme. Zusammen gepresst
|
||||
und zubetoniert macht es mich traurig. Umso besser, dass wir gleich etwa 2000km weiter südlich sind.
|
||||
|
||||
|
||||
---
|
||||
<br />
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue