feat: change selected blogs to switch to card form on small screens
This commit is contained in:
@@ -17,7 +17,7 @@ interface Props {
|
||||
|
||||
const { title, subTitle, primaryBtn, primaryBtnURL, secondaryBtn, secondaryBtnURL, src, alt } = Astro.props;
|
||||
|
||||
const roundedClasses = Astro.props.rounded ? "rounded-xl" : null;
|
||||
const roundedClasses = Astro.props.rounded ? "rounded-2xl" : null;
|
||||
---
|
||||
|
||||
<section class="mx-auto grid max-w-340 gap-4 px-4 py-14 sm:px-6 md:grid-cols-2 md:items-center md:gap-8 lg:px-8 2xl:max-w-full">
|
||||
|
||||
@@ -11,7 +11,7 @@ interface Props {
|
||||
const { posts } = Astro.props;
|
||||
---
|
||||
|
||||
<section class="smooth-reveal">
|
||||
<section class="smooth-reveal flex flex-col gap-4">
|
||||
{posts.map((post, index) => index % 2 === 0 ? (
|
||||
<LargeBlogLeftCard
|
||||
title={post.title}
|
||||
|
||||
Reference in New Issue
Block a user