feat: add responsive featured events carousel

This commit is contained in:
2026-10-02 14:11:31 +03:30
parent 7da500ed97
commit 44045120b1
4 changed files with 178 additions and 85 deletions

View File

@@ -12,10 +12,9 @@ type HomeProps = {
siteContent: SiteContent;
events: EventListItemSchema[];
posts: PostListSchema[];
isEventArchive: boolean;
};
export default function Home({ content, siteContent, events, posts, isEventArchive }: HomeProps) {
export default function Home({ content, siteContent, events, posts }: HomeProps) {
const heroImage = content.hero_image || siteContent.logo || {
url: "/favicon.ico",
alt: siteContent.short_name || "نشان انجمن",
@@ -76,7 +75,7 @@ export default function Home({ content, siteContent, events, posts, isEventArchi
</div>
</section>
<FeaturedEvents content={content} events={events} isArchive={isEventArchive} />
<FeaturedEvents content={content} events={events} />
<FeaturedPosts content={content} siteContent={siteContent} posts={posts} />
<section className="bg-primary text-primary-foreground" aria-labelledby="home-participation-title">