From 95d78c22eba92463d42e8685bb2ed96e268bac07 Mon Sep 17 00:00:00 2001 From: Jeffrey Hales Date: Tue, 16 Jun 2026 17:29:23 -0700 Subject: [PATCH] refactor(ar): replace Hero with HomeHero on Arabic homepage and delete Hero.astro Co-Authored-By: Claude Sonnet 4.6 --- www/src/components/Hero.astro | 24 ------------------------ www/src/pages/ar/index.astro | 4 ++-- 2 files changed, 2 insertions(+), 26 deletions(-) delete mode 100644 www/src/components/Hero.astro diff --git a/www/src/components/Hero.astro b/www/src/components/Hero.astro deleted file mode 100644 index 40aac64..0000000 --- a/www/src/components/Hero.astro +++ /dev/null @@ -1,24 +0,0 @@ ---- -interface Props { title: string; eyebrow?: string; description?: string; image?: string; alt?: string; } -const { title, eyebrow, description, image, alt = '' } = Astro.props; ---- -
-
-
- {eyebrow &&

{eyebrow}

} -

{title}

- {description &&

{description}

} - Get Started -
- {image && {alt}} -
-
- - diff --git a/www/src/pages/ar/index.astro b/www/src/pages/ar/index.astro index 6dfc18a..d86428e 100644 --- a/www/src/pages/ar/index.astro +++ b/www/src/pages/ar/index.astro @@ -1,11 +1,11 @@ --- import { getCollection } from 'astro:content'; import BaseLayout from '../../layouts/BaseLayout.astro'; -import Hero from '../../components/Hero.astro'; +import HomeHero from '../../components/home/HomeHero.astro'; import BlogCard from '../../components/BlogCard.astro'; const posts = (await getCollection('blog', ({ data }) => data.lang === 'ar' && !data.draft)).slice(0, 3); --- - +

المكتبة

{posts.map((post) => )}