Compare commits
No commits in common. "9de57af445e24c62ca294349a49bb349e2520ebe" and "ffb75e59529f992d0ce7f80bf91a5eaf6412019c" have entirely different histories.
9de57af445
...
ffb75e5952
7 changed files with 9 additions and 88 deletions
|
|
@ -40,6 +40,4 @@ All commands are run from the root of the project, from a terminal:
|
||||||
|
|
||||||
## Bilder für Webuseage convertieren
|
## Bilder für Webuseage convertieren
|
||||||
|
|
||||||
`magick convert input_file -resize 50% output_file`
|
|
||||||
|
|
||||||
`magick mogrify -format webp -quality 80 *.jpg`
|
`magick mogrify -format webp -quality 80 *.jpg`
|
||||||
|
|
@ -110,8 +110,8 @@
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-right > a {
|
.nav-left {
|
||||||
font-size: 1rem;
|
margin-bottom: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
nav:has(~ #menu-toggle:checked) {
|
nav:has(~ #menu-toggle:checked) {
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,6 @@
|
||||||
import type { Post } from "../types/global";
|
import type { Post } from "../types/global";
|
||||||
import { findImageByPath } from "../lib/findImage";
|
import { findImageByPath } from "../lib/findImage";
|
||||||
import { Image } from "astro:assets";
|
import { Image } from "astro:assets";
|
||||||
import { formatLocalizedDateString } from "../lib/formatDate";
|
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
post: Post;
|
post: Post;
|
||||||
|
|
@ -12,7 +11,7 @@ interface Props {
|
||||||
const { post, url } = Astro.props;
|
const { post, url } = Astro.props;
|
||||||
|
|
||||||
const img = findImageByPath(post.image.path);
|
const img = findImageByPath(post.image.path);
|
||||||
const localeDate = formatLocalizedDateString(post.date)
|
const localeDate = new Date(post.date).toLocaleDateString()
|
||||||
---
|
---
|
||||||
|
|
||||||
<div class="wide-container">
|
<div class="wide-container">
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
import { findImageByPath } from "../lib/findImage";
|
import { findImageByPath } from "../lib/findImage";
|
||||||
import { formatLocalizedDateString } from "../lib/formatDate";
|
|
||||||
import type { Post } from "../types/global";
|
import type { Post } from "../types/global";
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
|
|
@ -12,7 +11,7 @@ interface Props {
|
||||||
const { post, url } = Astro.props;
|
const { post, url } = Astro.props;
|
||||||
|
|
||||||
const img = findImageByPath(post.image.path)
|
const img = findImageByPath(post.image.path)
|
||||||
const localeDate = formatLocalizedDateString(post.date)
|
const localeDate = new Date(post.date).toLocaleDateString()
|
||||||
---
|
---
|
||||||
|
|
||||||
<a href={url} class="no-link-link">
|
<a href={url} class="no-link-link">
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@ import BackNav from "../components/BackNav.astro";
|
||||||
import { findImageByPath } from "../lib/findImage";
|
import { findImageByPath } from "../lib/findImage";
|
||||||
import type { Post } from "../types/global";
|
import type { Post } from "../types/global";
|
||||||
import Main from "./Main.astro";
|
import Main from "./Main.astro";
|
||||||
import { formatLocalizedDateString } from "../lib/formatDate";
|
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
frontmatter: Post;
|
frontmatter: Post;
|
||||||
|
|
@ -13,7 +12,7 @@ interface Props {
|
||||||
const { frontmatter } = Astro.props;
|
const { frontmatter } = Astro.props;
|
||||||
|
|
||||||
const titleImg = findImageByPath(frontmatter.image.path);
|
const titleImg = findImageByPath(frontmatter.image.path);
|
||||||
const localeDate = formatLocalizedDateString(frontmatter.date);
|
const localeDate = new Date(frontmatter.date).toLocaleDateString()
|
||||||
---
|
---
|
||||||
|
|
||||||
<Main>
|
<Main>
|
||||||
|
|
@ -37,38 +36,8 @@ const localeDate = formatLocalizedDateString(frontmatter.date);
|
||||||
dienen allein dem Zweck der Information.
|
dienen allein dem Zweck der Information.
|
||||||
</p>
|
</p>
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
<div id="image-backdrop" hidden>
|
|
||||||
<img id="image-preview" class="rounded" src="" alt="" />
|
|
||||||
</div>
|
|
||||||
</Main>
|
</Main>
|
||||||
|
|
||||||
<script>
|
|
||||||
const backdrop = document.querySelector("#image-backdrop");
|
|
||||||
const preview = document.querySelector("#image-preview");
|
|
||||||
|
|
||||||
if (backdrop instanceof HTMLElement && preview instanceof HTMLImageElement) {
|
|
||||||
document.addEventListener("click", (event) => {
|
|
||||||
if (!(event.target instanceof Element)) return;
|
|
||||||
|
|
||||||
if (!backdrop.hidden && backdrop.contains(event.target)) {
|
|
||||||
backdrop.hidden = true;
|
|
||||||
document.body.style.overflow = "";
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
const image = event.target.closest("article img");
|
|
||||||
|
|
||||||
if (!(image instanceof HTMLImageElement)) return;
|
|
||||||
|
|
||||||
preview.src = image.currentSrc || image.src;
|
|
||||||
preview.alt = image.alt;
|
|
||||||
backdrop.hidden = false;
|
|
||||||
document.body.style.overflow = "hidden";
|
|
||||||
});
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
article {
|
article {
|
||||||
max-width: 900px;
|
max-width: 900px;
|
||||||
|
|
@ -78,11 +47,10 @@ const localeDate = formatLocalizedDateString(frontmatter.date);
|
||||||
.markdown-content {
|
.markdown-content {
|
||||||
font-size: 1.5rem;
|
font-size: 1.5rem;
|
||||||
line-height: 1.6;
|
line-height: 1.6;
|
||||||
|
}
|
||||||
|
|
||||||
|
.markdown-content img {
|
||||||
img {
|
width: 100%;
|
||||||
cursor: zoom-in;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#titleImg {
|
#titleImg {
|
||||||
|
|
@ -102,37 +70,4 @@ const localeDate = formatLocalizedDateString(frontmatter.date);
|
||||||
margin: 32px 0 64px 0;
|
margin: 32px 0 64px 0;
|
||||||
font-size: smaller;
|
font-size: smaller;
|
||||||
}
|
}
|
||||||
|
|
||||||
#image-backdrop {
|
|
||||||
position: fixed;
|
|
||||||
inset: 0;
|
|
||||||
z-index: 1000;
|
|
||||||
|
|
||||||
display: grid;
|
|
||||||
place-items: center;
|
|
||||||
|
|
||||||
padding: 24px;
|
|
||||||
background: rgba(0, 0, 0, 0.8);
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
#image-backdrop[hidden] {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
#image-preview {
|
|
||||||
max-width: 90vw;
|
|
||||||
max-height: 90vh;
|
|
||||||
width: auto;
|
|
||||||
height: auto;
|
|
||||||
object-fit: contain;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media only screen and (max-width: 800px) {
|
|
||||||
.markdown-content {
|
|
||||||
font-size: 1.25rem;
|
|
||||||
line-height: 1.4;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
export function formatLocalizedDateString(date: string): string {
|
|
||||||
return new Date(date).toLocaleDateString('de-DE')
|
|
||||||
}
|
|
||||||
|
|
@ -35,12 +35,10 @@ Einschlafen klappt dann aber doch irgendwie. Wenn man hier eins lernt, dann auch
|
||||||
<div style="display: flex; flex-direction: row; gap: 2%;">
|
<div style="display: flex; flex-direction: row; gap: 2%;">
|
||||||
<img src="/blog_img/ostseeurlaub/molly_1.webp"
|
<img src="/blog_img/ostseeurlaub/molly_1.webp"
|
||||||
alt="Chiara und Tim stehen vor der Dampflok Molly."
|
alt="Chiara und Tim stehen vor der Dampflok Molly."
|
||||||
class="rounded"
|
|
||||||
style="max-width: 49%; height: auto;"
|
style="max-width: 49%; height: auto;"
|
||||||
loading="lazy" />
|
loading="lazy" />
|
||||||
<img src="/blog_img/ostseeurlaub/molly_2.webp"
|
<img src="/blog_img/ostseeurlaub/molly_2.webp"
|
||||||
alt="Chiara und Tim stehen neben der Dampflok Molly."
|
alt="Chiara und Tim stehen neben der Dampflok Molly."
|
||||||
class="rounded"
|
|
||||||
style="max-width: 49%; height: auto;"
|
style="max-width: 49%; height: auto;"
|
||||||
loading="lazy" />
|
loading="lazy" />
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -63,8 +61,7 @@ Hier kommen wir schon zu einem meiner Highlights der Woche: Chiara, die das erst
|
||||||
<img src="/blog_img/ostseeurlaub/karls.webp"
|
<img src="/blog_img/ostseeurlaub/karls.webp"
|
||||||
alt="Chiara und Tim stehen vor dem Eingangsschild zum Karls Erlebnisdorf in Rövershagen."
|
alt="Chiara und Tim stehen vor dem Eingangsschild zum Karls Erlebnisdorf in Rövershagen."
|
||||||
style="max-width: 100%; height: auto;"
|
style="max-width: 100%; height: auto;"
|
||||||
loading="lazy"
|
loading="lazy" />
|
||||||
class="rounded"/>
|
|
||||||
|
|
||||||
Nächster Halt ist <a href="https://karls.de/" target="_blank">**Karls Erlebnis-Dorf**</a> in Rövershagen. Eine meiner jüngeren Kindheitserinnerungen.
|
Nächster Halt ist <a href="https://karls.de/" target="_blank">**Karls Erlebnis-Dorf**</a> in Rövershagen. Eine meiner jüngeren Kindheitserinnerungen.
|
||||||
Hier muss ich immer an Tom denken, einen lieben Kollegen. Er hat in seiner Jugend im Karls Erlebnis-Dorf bei Berlin in der Pfannkuchen-Schmiede gearbeitet. Liebe Grüße!<br>
|
Hier muss ich immer an Tom denken, einen lieben Kollegen. Er hat in seiner Jugend im Karls Erlebnis-Dorf bei Berlin in der Pfannkuchen-Schmiede gearbeitet. Liebe Grüße!<br>
|
||||||
|
|
@ -76,7 +73,6 @@ Mit dem Tagesticket können wir jegliche Attraktion fahren. Das machen wir auch!
|
||||||
|
|
||||||
<img src="/blog_img/ostseeurlaub/karls_mais.webp"
|
<img src="/blog_img/ostseeurlaub/karls_mais.webp"
|
||||||
alt="Chiara sizt in einem riesigen Maisbad."
|
alt="Chiara sizt in einem riesigen Maisbad."
|
||||||
class="rounded"
|
|
||||||
style="max-width: 100%; height: auto;"
|
style="max-width: 100%; height: auto;"
|
||||||
loading="lazy" />
|
loading="lazy" />
|
||||||
Chiara wird im Mais verbuddelt.
|
Chiara wird im Mais verbuddelt.
|
||||||
|
|
@ -86,12 +82,10 @@ Besonders freue ich mich auf die Eiswelt. In einer großen Halle stellen Bildhau
|
||||||
<div style="display: flex; flex-direction: row; gap: 2%;">
|
<div style="display: flex; flex-direction: row; gap: 2%;">
|
||||||
<img src="/blog_img/ostseeurlaub/karls_eis_thron.webp"
|
<img src="/blog_img/ostseeurlaub/karls_eis_thron.webp"
|
||||||
alt="Chiara und Tim auf einem Thron aus Eis."
|
alt="Chiara und Tim auf einem Thron aus Eis."
|
||||||
class="rounded"
|
|
||||||
style="max-width: 49%; height: auto;"
|
style="max-width: 49%; height: auto;"
|
||||||
loading="lazy" />
|
loading="lazy" />
|
||||||
<img src="/blog_img/ostseeurlaub/karls_eis_aida.webp"
|
<img src="/blog_img/ostseeurlaub/karls_eis_aida.webp"
|
||||||
alt="Chiara und Tim stehen auf einem kleinen AIDA Bug aus Eis und spielen diese eine Szene aus Titanic nach."
|
alt="Chiara und Tim stehen auf einem kleinen AIDA Bug aus Eis und spielen diese eine Szene aus Titanic nach."
|
||||||
class="rounded"
|
|
||||||
style="max-width: 49%; height: auto;"
|
style="max-width: 49%; height: auto;"
|
||||||
loading="lazy" />
|
loading="lazy" />
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -123,7 +117,6 @@ Spoilern werde ich natürlich nicht. Nur soviel: **So'n großer Feuerball, Junge
|
||||||
<img src="/blog_img/ostseeurlaub/stoertebeker.webp"
|
<img src="/blog_img/ostseeurlaub/stoertebeker.webp"
|
||||||
alt="Chiara sizt in einem riesigen Maisbad."
|
alt="Chiara sizt in einem riesigen Maisbad."
|
||||||
style="max-width: 100%; height: auto;"
|
style="max-width: 100%; height: auto;"
|
||||||
class="rounded"
|
|
||||||
loading="lazy" />
|
loading="lazy" />
|
||||||
Nach der Vorstellung auf dem Weg zum Auto.
|
Nach der Vorstellung auf dem Weg zum Auto.
|
||||||
</br>
|
</br>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue