jalil.arfaoui.net/src/pages/ar/index.astro
Jalil Arfaoui 8148d2c954 Refonte page d'accueil : bloc code élargi, couleurs charte Tiqa, palette harmonisée
- Renommé « Développeur » en « Conception logicielle » (FR/EN/AR)
- Bloc code pleine largeur avec mission en cours, projets featured et compteur de recommandations
- Théâtre et Photographie en 2 colonnes en dessous
- Palette tiqa (#4b1862) dans tailwind.config.mjs, appliquée au bloc code et bouton CTA
- Bloc théâtre en amber, bloc photo en slate
- Corrigé typo couleur facette code dans le layout (#4b1762 → #4b1862)
2026-02-23 01:50:46 +01:00

207 lines
13 KiB
Text

---
import { Image } from "astro:assets";
import { getCollection } from "astro:content";
import Layout from "../../layouts/main.astro";
import jalilPhoto from "../../assets/images/jalil-2.jpg";
const currentMission = (await getCollection("experiences"))
.filter((e) => e.data.lang === "ar" && !e.data.draft && !e.data.endDate)
.sort((a, b) => (b.data.startDate > a.data.startDate ? 1 : -1))[0];
const featuredProjects = (await getCollection("projects"))
.filter((p) => p.data.lang === "ar" && !p.data.draft && p.data.category === "dev" && p.data.featured)
.sort((a, b) => b.data.date.getTime() - a.data.date.getTime())
.slice(0, 2);
const recommendationCount = (await getCollection("recommendations")).length;
---
<Layout
title="جليل عرفاوي - حِرَفي برمجة • ممثل ارتجالي • مصوّر"
description="جليل عرفاوي: مطوّر مستقل (Software Craftsmanship، TDD، DDD)، ممثل ارتجالي ومصوّر مقيم في ألبي، فرنسا."
>
<!-- Hero Section -->
<div dir="rtl" lang="ar" class="relative z-20 w-full max-w-6xl mx-auto mt-16 px-7 md:mt-24 lg:mt-32 xl:px-0">
<div class="flex flex-col items-center md:flex-row-reverse">
<div class="relative w-full md:w-1/2">
<h1 class="mb-5 text-5xl font-bold leading-tight md:text-6xl lg:text-7xl dark:text-white">
جليل عرفاوي
</h1>
<h2 class="mb-6 text-xl font-medium text-neutral-600 dark:text-neutral-300 md:text-2xl">
حِرَفي برمجة • ممثل ارتجالي • مصوّر
</h2>
<p class="mb-8 text-lg text-neutral-600 dark:text-neutral-400 leading-relaxed">
أكتب الكود من أجل عالم أكثر عدلًا، وأصعد على الخشبة لأجل الباقي. أو العكس.
</p>
<div class="flex flex-wrap gap-4">
<a href="/ar/برمجة" class="inline-flex items-center px-6 py-3 text-sm font-semibold text-white bg-tiqa-600 rounded-full hover:bg-tiqa-700 transition-colors duration-200">
اكتشف أعمالي
</a>
<a href="/ar/نبذة-عني" class="inline-flex items-center px-6 py-3 text-sm font-semibold text-neutral-700 bg-neutral-100 dark:bg-neutral-800 dark:text-neutral-200 rounded-full hover:bg-neutral-200 dark:hover:bg-neutral-700 transition-colors duration-200">
تعرّف عليّ أكثر
</a>
</div>
</div>
<div class="relative justify-end w-full mt-12 md:flex md:pr-10 md:w-1/2 md:mt-0">
<div class="relative z-50 w-full max-w-sm mx-auto">
<div class="relative z-30 p-1 bg-gradient-to-br from-blue-500 via-purple-500 to-pink-500 rounded-3xl">
<div class="bg-white dark:bg-neutral-950 rounded-3xl p-4">
<Image
src={jalilPhoto}
alt="جليل عرفاوي"
loading="eager"
decoding="auto"
class="w-full aspect-square object-cover rounded-2xl"
/>
</div>
</div>
</div>
</div>
</div>
</div>
<div dir="rtl" lang="ar" class="relative z-20 w-full max-w-6xl mx-auto mt-24 px-7 xl:px-0">
<div class="space-y-8">
<a href="/ar/برمجة" class="group relative overflow-hidden bg-gradient-to-br from-tiqa-50 to-tiqa-100 dark:from-tiqa-800/30 dark:to-tiqa-900/30 rounded-3xl p-8 hover:scale-[1.02] transition-all duration-300 border border-tiqa-200/50 dark:border-tiqa-600/30 block no-underline">
<div class="absolute top-4 left-4 text-4xl opacity-20 group-hover:opacity-40 transition-opacity">💻</div>
<div class="relative z-10">
<h3 class="text-2xl font-bold text-tiqa-900 dark:text-tiqa-100 mb-4">
تصميم البرمجيات
</h3>
<div class="md:flex md:flex-row-reverse md:gap-8">
<div class="md:flex-1">
<p class="text-tiqa-600 dark:text-tiqa-300 mb-3 leading-relaxed">
أكثر من 20 سنة في تصميم وبناء البرمجيات. كمطوّر أول، أو قائد تقني، أو مدرب تقني، أرافق الفرق التي تريد تقديم كود تفتخر به.
</p>
<p class="text-tiqa-600 dark:text-tiqa-300 mb-4 leading-relaxed">
أفضّل البرمجيات الحرّة والمشاريع ذات الفائدة الحقيقية. ما يميّزني ربّما: أهتمّ بجودة الكود بقدر اهتمامي بالتحيّزات التي ندرجها فيه دون أن ندري.
</p>
</div>
<div class="md:w-64 flex-shrink-0 space-y-4 mb-4 md:mb-0">
{currentMission && (
<div>
<p class="text-xs font-semibold text-tiqa-400 dark:text-tiqa-400 uppercase tracking-wider mb-1.5">المهمة الحالية</p>
<p class="text-sm font-medium text-tiqa-900 dark:text-tiqa-100">{currentMission.data.role}</p>
<p class="text-xs text-tiqa-500 dark:text-tiqa-300">{currentMission.data.company}</p>
</div>
)}
{featuredProjects.length > 0 && (
<div>
<p class="text-xs font-semibold text-tiqa-400 dark:text-tiqa-400 uppercase tracking-wider mb-1.5">المشاريع</p>
{featuredProjects.map((p) => (
<div class="mb-1.5 last:mb-0">
<p class="text-sm font-medium text-tiqa-900 dark:text-tiqa-100">{p.data.title}</p>
<p class="text-xs text-tiqa-500 dark:text-tiqa-300 line-clamp-1">{p.data.description}</p>
</div>
))}
</div>
)}
<div>
<p class="text-xs font-semibold text-tiqa-400 dark:text-tiqa-400 uppercase tracking-wider mb-1.5">التوصيات</p>
<p class="text-sm text-tiqa-600 dark:text-tiqa-300">{recommendationCount} توصية</p>
</div>
</div>
</div>
<span class="text-tiqa-500 dark:text-tiqa-300 group-hover:text-tiqa-700 dark:group-hover:text-tiqa-100 font-medium">
← المسار، المشاريع والتوصيات
</span>
</div>
</a>
<div class="grid grid-cols-1 md:grid-cols-2 gap-8">
<a href="/ar/مسرح" class="group relative overflow-hidden bg-gradient-to-br from-amber-50 to-amber-100 dark:from-amber-950/30 dark:to-amber-900/20 rounded-3xl p-8 hover:scale-105 transition-all duration-300 border border-amber-200/50 dark:border-amber-800/30 block no-underline">
<div class="absolute top-4 left-4 text-4xl opacity-20 group-hover:opacity-40 transition-opacity">🎭</div>
<div class="relative z-10">
<h3 class="text-2xl font-bold text-amber-900 dark:text-amber-100 mb-3">
المسرح
</h3>
<p class="text-amber-700 dark:text-amber-300 mb-6 leading-relaxed">
ممثل ارتجالي منذ 2008، من ضواحي باريس إلى المغرب قبل تأسيس فرقة Les Particules في ألبي. اليوم أخوض أيضًا غمار المسرح المكتوب.
</p>
<span class="text-amber-600 dark:text-amber-400 group-hover:text-amber-800 dark:group-hover:text-amber-200 font-medium">
← المسار الفني
</span>
</div>
</a>
<div class="group relative overflow-hidden bg-gradient-to-br from-slate-100 to-slate-200 dark:from-slate-800/30 dark:to-slate-700/20 rounded-3xl p-8 hover:scale-105 transition-all duration-300 border border-slate-300/50 dark:border-slate-600/30">
<a href="/ar/تصوير" class="absolute inset-0 z-0" aria-label="التصوير"></a>
<div class="absolute top-4 left-4 text-4xl opacity-20 group-hover:opacity-40 transition-opacity">📸</div>
<div class="relative z-10 pointer-events-none">
<h3 class="text-2xl font-bold text-slate-900 dark:text-slate-100 mb-3">
التصوير
</h3>
<p class="text-slate-600 dark:text-slate-300 mb-6 leading-relaxed">
أصوّر كل شيء تقريبًا: وجوه، حفلات، محرّكات، الحياة اليومية. لا تخصّص، مجرّد فضول.
</p>
<div class="space-y-3">
<span class="block text-slate-500 dark:text-slate-400 group-hover:text-slate-800 dark:group-hover:text-slate-200 font-medium">
← معرض الصور
</span>
<a href="/ar/تصوير/مدونة" class="block text-slate-500 dark:text-slate-400 hover:text-slate-800 dark:hover:text-slate-200 font-medium pointer-events-auto relative z-20">
← مُدوّنة الصور
</a>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Blog Section
<div dir="rtl" lang="ar" class="relative z-20 w-full max-w-6xl mx-auto mt-24 px-7 xl:px-0">
<div class="text-center mb-12">
<h2 class="text-3xl font-bold text-neutral-800 dark:text-neutral-200 mb-4">
آخر المقالات
</h2>
<p class="text-neutral-600 dark:text-neutral-400 max-w-2xl mx-auto">
اكتشف أفكاري حول البرمجة والمسرح والتصوير
</p>
</div>
<div class="text-center">
<span
class="inline-flex items-center px-8 py-4 text-lg font-semibold text-white/60 bg-gradient-to-r from-blue-600/50 via-purple-600/50 to-pink-600/50 rounded-full cursor-not-allowed"
title="قيد الإنشاء"
>
اكتشف جميع المقالات
<span class="mr-2">🚧</span>
</span>
</div>
</div>
-->
<!-- Contact Section -->
<div dir="rtl" lang="ar" class="relative z-20 w-full max-w-6xl mx-auto mt-24 mb-16 px-7 xl:px-0">
<div class="bg-gradient-to-r from-neutral-50 to-neutral-100 dark:from-neutral-900 dark:to-neutral-800 rounded-3xl p-12 text-center border border-neutral-200 dark:border-neutral-700">
<h2 class="text-2xl font-bold text-neutral-800 dark:text-neutral-200 mb-4">
مشروع، خشبة مسرح، فكرة؟
</h2>
<p class="text-neutral-600 dark:text-neutral-400 mb-8 max-w-2xl mx-auto">
راسلني.
</p>
<div class="flex justify-center space-x-6 space-x-reverse">
<a href="https://linkedin.com/in/jalil" target="_blank" rel="noopener noreferrer" class="p-3 bg-blue-600 text-white rounded-full hover:bg-blue-700 transition-colors">
<svg class="w-6 h-6" fill="currentColor" viewBox="0 0 24 24">
<path d="M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"/>
</svg>
</a>
<a href="https://github.com/jalilarfaoui" target="_blank" rel="noopener noreferrer" class="p-3 bg-neutral-800 text-white rounded-full hover:bg-neutral-900 transition-colors">
<svg class="w-6 h-6" fill="currentColor" viewBox="0 0 24 24">
<path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"/>
</svg>
</a>
<a href="mailto:jalil@arfaoui.net" class="p-3 bg-green-600 text-white rounded-full hover:bg-green-700 transition-colors">
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 8l7.89 4.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z" />
</svg>
</a>
</div>
</div>
</div>
</Layout>