diff --git a/blog/src/components/PostPreviewLarge.astro b/blog/src/components/PostPreviewLarge.astro index 03ea2c3..4a1ac47 100644 --- a/blog/src/components/PostPreviewLarge.astro +++ b/blog/src/components/PostPreviewLarge.astro @@ -11,27 +11,29 @@ interface Props { const { post } = Astro.props; const img = findImageByPath(post.image.path); -const localeDate = formatLocalizedDateString(post.date) +const localeDate = formatLocalizedDateString(post.date); ---
-
+ -
+
+
+ NEU! + {localeDate} + | + Autor: {post.author} + | + Lesezeit: {post.time2read} min +

{post.title}

{post.subtitle} -
- {localeDate} - - Autor: {post.author} - - Lesezeit: {post.time2read} min -
+

{post.description}

@@ -40,23 +42,24 @@ const localeDate = formatLocalizedDateString(post.date) .wide-container { display: flex; gap: 32px; - padding: 0 32px; - min-width: 80%; - max-width: 90%; - margin-bottom: 64px; - } + padding: 64px; + width: 100%; + background-image: linear-gradient( + to bottom, + var(--primary-dark), + var(--primary-color) + ); - .col { - width: 50%; - box-sizing: border-box; - min-width: 0; - min-height: 0; + * { + color: white; + } } .text-col { + width: 40%; + display: flex; flex-direction: column; - justify-content: flex-start; - margin: 32px 0; + justify-content: center; } h2 { @@ -64,17 +67,19 @@ const localeDate = formatLocalizedDateString(post.date) } .image-col { + width: 60%; position: relative; overflow: hidden; } .image-col img { - position: absolute; - inset: 0; width: 100%; height: 100%; + max-height: 250px; object-fit: cover; object-position: center; + border: 2px solid white; + border-radius: 12px; } .top-info { @@ -84,6 +89,12 @@ const localeDate = formatLocalizedDateString(post.date) color: lightslategray; } + #new { + color: var(--accent-color); + margin-right: 12px; + font-weight: bolder; + } + .vertical-line { color: #789; border-right-width: 2px;