@@ -80,30 +80,6 @@ const posts = (await getCollection("blog"))
8080 </div >
8181 <div class = " books-grid" >
8282 { bookItems .map ((book ) => {
83- // Assign separate styles based on the book
84- const isMaths = book .slug .includes (" maths-2" );
85- const isStats = book .slug .includes (" stats-2" );
86-
87- let pattern: " circles" | " grid" | " waves" | " dots" =
88- " circles" ;
89- let fontStyle:
90- | " serif"
91- | " sans"
92- | " display"
93- | " handwritten" = " serif" ;
94- let layoutStyle: " classic" | " minimal" | " modern" =
95- " classic" ;
96-
97- if (isMaths ) {
98- pattern = " grid" ;
99- fontStyle = " sans" ;
100- layoutStyle = " modern" ;
101- } else if (isStats ) {
102- pattern = " waves" ;
103- fontStyle = " serif" ;
104- layoutStyle = " classic" ;
105- }
106-
10783 return (
10884 <BookCard
10985 title = { book .data .title
@@ -112,9 +88,9 @@ const posts = (await getCollection("blog"))
11288 subtitle = { book .data .description }
11389 href = { ` /education/${book .slug } ` }
11490 coverColor = { book .data .cardColor || " #3b82f6" }
115- pattern = { pattern }
116- fontStyle = { fontStyle }
117- layoutStyle = { layoutStyle }
91+ pattern = " circles "
92+ fontStyle = " serif "
93+ layoutStyle = " classic "
11894 />
11995 );
12096 })}
@@ -287,20 +263,15 @@ const posts = (await getCollection("blog"))
287263 <div class="card-header">
288264 <div class="institution-badge">
289265 <span class="institution">${data.institution || "Unknown Institution"}</span>
266+ <span class="separator">•</span>
290267 <span class="course-type" style="color: ${categoryColor}">${data.courseType || "Course"}</span>
291268 </div>
292269 </div>
293270 <div class="card-body">
294271 <h3 class="title">${data.title}</h3>
295272 <p class="description">${data.description}</p>
296- <div class="tags">
297- ${(data.tags || [])
298- .slice(0, 3)
299- .map(
300- (tag) =>
301- `<span class="tag">${tag}</span>`,
302- )
303- .join("")}
273+ <div class="card-footer">
274+ <span class="view-course">View Course →</span>
304275 </div>
305276 </div>
306277 </a>
0 commit comments