diff --git a/app/components/ContentThumbnailTemplate.js b/app/components/ContentThumbnailTemplate.js index 972a863..3e7acfb 100644 --- a/app/components/ContentThumbnailTemplate.js +++ b/app/components/ContentThumbnailTemplate.js @@ -46,14 +46,14 @@ const ContentThumbnailTemplate = ({ href={`/blog/${post.slug}`} className={`block transition-transform duration-200 hover:scale-[1.02] ${className}`} > -
- {/* Background SVG - sized to fit the 260x390 container exactly */} +
+ {/* Background SVG - fills container with maintained aspect */}
{/* eslint-disable-next-line @next/next/no-img-element */} {`Background {/* Gradient overlay for better text readability */}
diff --git a/app/learn/page.js b/app/learn/page.js index 1c0eb05..f03c63c 100644 --- a/app/learn/page.js +++ b/app/learn/page.js @@ -30,7 +30,8 @@ export default function LearnPage() {
-
+ {/* Horizontal list (below smd) */} +
{allPosts.slice(0, 3).map((post, index) => ( + {/* smd and up: 2x3 grid of vertical thumbnails, repeat posts as needed */} +
+ {Array.from({ length: 6 }).map((_, i) => { + const post = allPosts[i % allPosts.length]; + return ( + + ); + })} +
+
); diff --git a/app/tailwind.css b/app/tailwind.css index 1f790d3..81846dc 100644 --- a/app/tailwind.css +++ b/app/tailwind.css @@ -20,7 +20,7 @@ --breakpoint-xsm: 429px; --breakpoint-sm: 430px; --breakpoint-sm2: 440px; - --breakpoint-smd: 540px; + --breakpoint-smd: 530px; --breakpoint-md: 640px; --breakpoint-xmd: 768px; --breakpoint-lg: 1024px;