From 752f06f68ffdc444302915d3fad18cc07d152303 Mon Sep 17 00:00:00 2001 From: Stefan Schmidt-Bilkenroth Date: Thu, 16 Nov 2023 12:18:48 +0100 Subject: [PATCH] some fixes --- index.html | 4 ++-- script.js | 5 +++-- styles.css | 7 ++++++- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index 88b522b..d144bab 100644 --- a/index.html +++ b/index.html @@ -11,8 +11,8 @@ - - + + diff --git a/script.js b/script.js index 2368aec..9c51f2f 100644 --- a/script.js +++ b/script.js @@ -125,6 +125,7 @@ const updateCarousel = function(slides, posts) { ` for( let i = 0; i < posts.length; i++ ) { let post = posts[i]; + console.log( post.content ) if ( i == 0 ) { newHTML += ` `; newHTML += ''; diff --git a/styles.css b/styles.css index 48107ef..e3aa32c 100644 --- a/styles.css +++ b/styles.css @@ -1,3 +1,5 @@ +@charset "utf-8"; + /* Add some custom CSS for the cards */ .card { margin-bottom: 20px; @@ -182,10 +184,14 @@ body { .card-img-bottom { max-width: 600px; max-height: 500px; + width: auto; + text-align: center; + aspect-ratio: auto !important; border-top-left-radius: calc(.25rem - 1px); border-top-right-radius:calc(.25rem - 1px); margin-top: 0px !important; margin-bottom: 10px !important; + align-items: center; } .text-muted { @@ -193,4 +199,3 @@ body { font-size: 0.6em; text-align: right; } -