@@ -19,35 +19,34 @@ function BlogSection() {
1919 let PostThumbnail = ""
2020 if ( Post . Thumbnail ) {
2121 PostThumbnail = `
22- <img src="./images/${ Post . Thumbnail } " writea="post.entry.thumbnail" class="rounded-top-4 object-fit-cover" height="140px " width="100%"/>
22+ <img src="./images/${ Post . Thumbnail } " writea="post.entry.thumbnail" class="rounded-top-4 object-fit-cover" height="110px " width="100%"/>
2323 `
2424 }
2525
2626 Posts = `
2727 ${ Posts }
2828
29- <div writea="post.entry" class="col-12 col-md-6 col-lg-4 mb-4">
29+ <div writea="post.entry" class="col-12 mb-4">
3030 <a href="#read/${ Post . Content . replace ( '.md' , '' ) } " class="text-decoration-none text-body">
31- <div class="rounded-4 bg-dark-subtle position-relative h-100 shadow-sm " style="--mdc-ripple-hover-opacity: .02; --mdc-ripple-focus-opacity: .02; --mdc-ripple-press-opacity: .05; transition: transform 0.2s ease, box-shadow 0.2s ease;" onmouseover="this.style.transform='translateY(-2px)'; this.style.boxShadow='0 4px 12px rgba(0,0,0,0.15)'" onmouseout="this.style.transform='translateY(0)'; this.style.boxShadow='0 1px 3px rgba(0,0,0,0.1)' ">
31+ <div class="rounded-4 bg-dark-subtle position-relative" style="--mdc-ripple-hover-opacity: .02; --mdc-ripple-focus-opacity: .02; --mdc-ripple-press-opacity: .05;">
3232 ${ PostThumbnail }
33- <div class="p-4 d-flex flex-column h-100 ">
34- <div class="flex-grow-1 ">
35- <span writea="post.entry.info" class="d-block text-primary-emphasis mb-2 small fw-medium ">
36- <i class="bi bi-tag-fill me-1"></i> ${ Post . Topic || "post" }
37- <span class="text-muted ms-2 "><i class="bi bi-calendar3 me-1 "></i>${ Post . Content } </span>
33+ <div class="row d-flex p-4 ">
34+ <div class="col-auto col-sm-10 me-auto ">
35+ <span writea="post.entry.info" class="d-block text-primary-emphasis mb-1 ">
36+ ${ Post . Topic || "post" }
37+ <span class="text-dark "><i class="bi bi-dot "></i> ${ Post . Content } </span>
3838 </span>
39- <h4 writea="post.entry.title" class="h5 fw-bold mb-3 text-dark ">
39+ <span writea="post.entry.title" class="h5 fw-bold">
4040 ${ Post . Title || "No title available" }
41- </h4 >
42- <p writea="post.entry.description" class="text-muted mb-3 lh-sm ">
41+ </span >
42+ <span writea="post.entry.description" class="d-block ">
4343 ${ Post . Description || "No description available" }
44- </p>
44+ </span>
45+ </div>
46+ <div class="col-auto my-auto d-none d-sm-block">
47+ <button type="button" class="btn shadow-none text-primary-emphasis"><i class="bi bi-chevron-right"></i></button>
4548 </div>
46- <div class="d-flex justify-content-between align-items-center mt-auto">
47- <span class="text-primary-emphasis small fw-medium">Read more</span>
48- <i class="bi bi-arrow-right-circle text-primary-emphasis"></i>
4949 </div>
50- </div>
5150 <span class="ripple-surface"></span>
5251 </div>
5352 </a>
@@ -57,24 +56,12 @@ function BlogSection() {
5756 } catch { }
5857 return `
5958 ${ NavigationBarElement ( ) }
60- <div class="container-fluid">
61- <div class="row pt-4">
62- <div class="col-12 mb-4">
63- <h2 class="h3 fw-bold text-dark mb-1">Latest Posts</h2>
64- <p class="text-muted">Discover our latest articles and insights</p>
65- </div>
66- </div>
67- <div class="row">
68- ${ Posts || `
69- <div class="col-12 text-center py-5">
70- <div class="bg-light rounded-4 p-5">
71- <i class="bi bi-journal-text text-muted" style="font-size: 3rem;"></i>
72- <h4 class="mt-3 text-muted">No posts yet</h4>
73- <p class="text-muted">Check back later for new content!</p>
74- </div>
75- </div>
76- ` }
77- </div>
59+ <div class="row pt-2">
60+ ${ Posts || `
61+ <p>
62+ There haven't been any posts yet, check back later!
63+ </p>
64+ ` }
7865 </div>
7966 ${ FooterElement ( ) }
8067 `
0 commit comments