bith / index.html
adamhrsm's picture
رائع — أعطيك فكرة تطبيق **مشابِه لـ Bith.ai** لكن **مجانياً تماماً** (مُصمّم ليخدم صانعي المحتوى العرب) — مع خطة تنفيذية عملية، قائمة ميزات واضحة، اقتراحات لتقنية البنية التحتية، ونماذج تحقيق دخل تُبقي التطبيق مجاني للمستخدمين.
20339a9 verified
<!DOCTYPE html>
<html lang="ar" dir="rtl">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>صانع مجاني - أنشئ فيديوهات احترافية مجاناً</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<style>
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;900&display=swap');
* {
font-family: 'Tajawal', sans-serif;
}
.gradient-bg {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.glass-effect {
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
}
.feature-card {
transition: all 0.3s ease;
}
.feature-card:hover {
transform: translateY(-10px);
box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.floating {
animation: float 3s ease-in-out infinite;
}
@keyframes float {
0%, 100% { transform: translateY(0px); }
50% { transform: translateY(-20px); }
}
.pulse-button {
animation: pulse 2s infinite;
}
@keyframes pulse {
0% { box-shadow: 0 0 0 0 rgba(147, 51, 234, 0.7); }
70% { box-shadow: 0 0 0 20px rgba(147, 51, 234, 0); }
100% { box-shadow: 0 0 0 0 rgba(147, 51, 234, 0); }
}
.text-gradient {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.hero-pattern {
background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
</style>
</head>
<body class="bg-gray-50">
<!-- Navigation -->
<nav class="fixed top-0 w-full z-50 glass-effect">
<div class="container mx-auto px-4 py-4">
<div class="flex justify-between items-center">
<div class="flex items-center space-x-reverse space-x-2">
<div class="w-10 h-10 bg-purple-600 rounded-lg flex items-center justify-center">
<i data-feather="video" class="w-6 h-6 text-white"></i>
</div>
<span class="text-xl font-bold text-white">صانع مجاني</span>
</div>
<div class="hidden md:flex space-x-reverse space-x-8">
<a href="#features" class="text-white hover:text-purple-200 transition">الميزات</a>
<a href="#templates" class="text-white hover:text-purple-200 transition">القوالب</a>
<a href="#pricing" class="text-white hover:text-purple-200 transition">الأسعار</a>
<a href="#contact" class="text-white hover:text-purple-200 transition">تواصل</a>
</div>
<button class="md:hidden text-white" onclick="toggleMobileMenu()">
<i data-feather="menu" class="w-6 h-6"></i>
</button>
</div>
</div>
<!-- Mobile Menu -->
<div id="mobileMenu" class="hidden md:hidden glass-effect">
<div class="px-4 py-4 space-y-4">
<a href="#features" class="block text-white hover:text-purple-200">الميزات</a>
<a href="#templates" class="block text-white hover:text-purple-200">القوالب</a>
<a href="#pricing" class="block text-white hover:text-purple-200">الأسعار</a>
<a href="#contact" class="block text-white hover:text-purple-200">تواصل</a>
</div>
</div>
</nav>
<!-- Hero Section -->
<section class="gradient-bg hero-pattern min-h-screen flex items-center pt-20">
<div class="container mx-auto px-4">
<div class="grid md:grid-cols-2 gap-12 items-center">
<div>
<h1 class="text-5xl md:text-6xl font-bold text-white mb-6">
أنشئ فيديوهات <br>
<span class="text-yellow-300">بمجرد نص</span>
</h1>
<p class="text-xl text-purple-100 mb-8">
تطبيق مجاني بالكامل لصناعة المحتوى العربي. حوّل أفكارك إلى فيديوهات احترافية بالذكاء الاصطناعي.
</p>
<div class="flex flex-col sm:flex-row gap-4">
<button onclick="showVideoCreator()" class="pulse-button bg-yellow-400 text-purple-900 px-8 py-4 rounded-lg font-bold text-lg hover:bg-yellow-300 transition transform hover:scale-105">
ابدأ الآن مجاناً
</button>
<button onclick="playDemo()" class="glass-effect text-white px-8 py-4 rounded-lg font-bold text-lg hover:bg-white hover:bg-opacity-20 transition flex items-center justify-center gap-2">
<i data-feather="play-circle" class="w-5 h-5"></i>
شاهد التجربة
</button>
</div>
<div class="mt-8 flex gap-8 text-white">
<div>
<div class="text-3xl font-bold text-yellow-300">100K+</div>
<div class="text-purple-200">منشئ محتوى</div>
</div>
<div>
<div class="text-3xl font-bold text-yellow-300">2M+</div>
<div class="text-purple-200">فيديو منشور</div>
</div>
<div>
<div class="text-3xl font-bold text-yellow-300">100%</div>
<div class="text-purple-200">مجاني</div>
</div>
</div>
</div>
<div class="relative">
<div class="floating">
<img src="https://static.photos/technology/640x360/42" alt="Video Creation" class="rounded-2xl shadow-2xl">
</div>
<div class="absolute -bottom-6 -left-6 bg-white p-4 rounded-xl shadow-xl">
<div class="flex items-center gap-3">
<div class="w-12 h-12 bg-green-100 rounded-full flex items-center justify-center">
<i data-feather="check-circle" class="w-6 h-6 text-green-600"></i>
</div>
<div>
<div class="font-bold">تم الإنشاء</div>
<div class="text-sm text-gray-600">في 30 ثانية</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Features Section -->
<section id="features" class="py-20">
<div class="container mx-auto px-4">
<div class="text-center mb-16">
<h2 class="text-4xl font-bold mb-4">
<span class="text-gradient">ميزات تفيض بالإبداع</span>
</h2>
<p class="text-xl text-gray-600">كل ما تحتاجه لصناعة محتوى فيديو احترافي</p>
</div>
<div class="grid md:grid-cols-2 lg:grid-cols-3 gap-8">
<div class="feature-card bg-white p-8 rounded-2xl shadow-lg">
<div class="w-16 h-16 bg-purple-100 rounded-xl flex items-center justify-center mb-6">
<i data-feather="type" class="w-8 h-8 text-purple-600"></i>
</div>
<h3 class="text-2xl font-bold mb-4">نص إلى فيديو</h3>
<p class="text-gray-600">حول أي نص إلى فيديو جذاب مع قوالب جاهزة ومشاهد مقترحة تلقائياً</p>
</div>
<div class="feature-card bg-white p-8 rounded-2xl shadow-lg">
<div class="w-16 h-16 bg-blue-100 rounded-xl flex items-center justify-center mb-6">
<i data-feather="mic" class="w-8 h-8 text-blue-600"></i>
</div>
<h3 class="text-2xl font-bold mb-4">صوت بالعربية</h3>
<p class="text-gray-600">أصوات طبيعية باللهجات العربية المختلفة والفصحى بتقنية الذكاء الاصطناعي</p>
</div>
<div class="feature-card bg-white p-8 rounded-2xl shadow-lg">
<div class="w-16 h-16 bg-green-100 rounded-xl flex items-center justify-center mb-6">
<i data-feather="globe" class="w-8 h-8 text-green-600"></i>
</div>
<h3 class="text-2xl font-bold mb-4">ترجمة وترجمة</h3>
<p class="text-gray-600">ترجمة تلقائية وترجمة صوتية بدقة عالية مع ضبط التوقيت</p>
</div>
<div class="feature-card bg-white p-8 rounded-2xl shadow-lg">
<div class="w-16 h-16 bg-yellow-100 rounded-xl flex items-center justify-center mb-6">
<i data-feather="edit-3" class="w-8 h-8 text-yellow-600"></i>
</div>
<h3 class="text-2xl font-bold mb-4">محرر سهل</h3>
<p class="text-gray-600">محرر مرئي مبسط لقص ودمج وتعديل المشاهد بسحب وإفلات</p>
</div>
<div class="feature-card bg-white p-8 rounded-2xl shadow-lg">
<div class="w-16 h-16 bg-red-100 rounded-xl flex items-center justify-center mb-6">
<i data-feather="music" class="w-8 h-8 text-red-600"></i>
</div>
<h3 class="text-2xl font-bold mb-4">موسيقى مجانية</h3>
<p class="text-gray-600">مكتبة ضخمة من الموسيقى المرخصة للاستخدام التجاري</p>
</div>
<div class="feature-card bg-white p-8 rounded-2xl shadow-lg">
<div class="w-16 h-16 bg-indigo-100 rounded-xl flex items-center justify-center mb-6">
<i data-feather="cloud" class="w-8 h-8 text-indigo-600"></i>
</div>
<h3 class="text-2xl font-bold mb-4">تخزين سحابي</h3>
<p class="text-gray-600">مساحة تخزين مجانية 5GB مع إمكانية النشر المباشر للمنصات</p>
</div>
</div>
</div>
</section>
<!-- Templates Section -->
<section id="templates" class="py-20 bg-gray-100">
<div class="container mx-auto px-4">
<div class="text-center mb-16">
<h2 class="text-4xl font-bold mb-4">قوالب جاهزة لكل منصة</h2>
<p class="text-xl text-gray-600">اختر القالب المناسب وابدأ الإبداع فوراً</p>
</div>
<div class="grid md:grid-cols-4 gap-6">
<div class="bg-white rounded-xl overflow-hidden shadow-lg hover:shadow-2xl transition cursor-pointer">
<div class="aspect-video bg-gradient-to-br from-pink-400 to-purple-600 flex items-center justify-center">
<i data-feather="smartphone" class="w-12 h-12 text-white"></i>
</div>
<div class="p-4">
<h4 class="font-bold text-lg">Stories</h4>
<p class="text-sm text-gray-600">9:16 لانستغرام وفيسبوك</p>
</div>
</div>
<div class="bg-white rounded-xl overflow-hidden shadow-lg hover:shadow-2xl transition cursor-pointer">
<div class="aspect-video bg-gradient-to-br from-blue-400 to-cyan-600 flex items-center justify-center">
<i data-feather="video" class="w-12 h-12 text-white"></i>
</div>
<div class="p-4">
<h4 class="font-bold text-lg">TikTok</h4>
<p class="text-sm text-gray-600">9:16 للفيديوهات القصيرة</p>
</div>
</div>
<div class="bg-white rounded-xl overflow-hidden shadow-lg hover:shadow-2xl transition cursor-pointer">
<div class="aspect-video bg-gradient-to-br from-green-400 to-teal-600 flex items-center justify-center">
<i data-feather="youtube" class="w-12 h-12 text-white"></i>
</div>
<div class="p-4">
<h4 class="font-bold text-lg">YouTube</h4>
<p class="text-sm text-gray-600">16:9 للفيديوهات الطويلة</p>
</div>
</div>
<div class="bg-white rounded-xl overflow-hidden shadow-lg hover:shadow-2xl transition cursor-pointer">
<div class="aspect-video bg-gradient-to-br from-orange-400 to-red-600 flex items-center justify-center">
<i data-feather="square" class="w-12 h-12 text-white"></i>
</div>
<div class="p-4">
<h4 class="font-bold text-lg">Feed</h4>
<p class="text-sm text-gray-600">1:1 للمنشورات</p>
</div>
</div>
</div>
</div>
</section>
<!-- How It Works -->
<section class="py-20">
<div class="container mx-auto px-4">
<div class="text-center mb-16">
<h2 class="text-4xl font-bold mb-4">كيف يعمل؟</h2>
<p class="text-xl text-gray-600">ثلاث خطوات بسيطة لإنشاء فيديو احترافي</p>
</div>
<div class="grid md:grid-cols-3 gap-8">
<div class="text-center">
<div class="w-20 h-20 bg-purple-600 rounded-full flex items-center justify-center mx-auto mb-6 text-white text-3xl font-bold">
1
</div>
<h3 class="text-xl font-bold mb-4">اكتب النص</h3>
<p class="text-gray-600">أدخل سكربتك أو الفكرة التي تريد تحويلها لفيديو</p>
</div>
<div class="text-center">
<div class="w-20 h-20 bg-purple-600 rounded-full flex items-center justify-center mx-auto mb-6 text-white text-3xl font-bold">
2
</div>
<h3 class="text-xl font-bold mb-4">اختر القالب</h3>
<p class="text-gray-600">اختر من بين القوالب الجاهزة والأبعاد المناسبة لمنصتك</p>
</div>
<div class="text-center">
<div class="w-20 h-20 bg-purple-600 rounded-full flex items-center justify-center mx-auto mb-6 text-white text-3xl font-bold">
3
</div>
<h3 class="text-xl font-bold mb-4">انشر مباشرة</h3>
<p class="text-gray-600">صدر الفيديو وانشره مباشرة على جميع منصات التواصل</p>
</div>
</div>
</div>
</section>
<!-- Pricing Section -->
<section id="pricing" class="py-20 bg-gray-100">
<div class="container mx-auto px-4">
<div class="text-center mb-16">
<h2 class="text-4xl font-bold mb-4">الأسعار</h2>
<p class="text-xl text-gray-600">مجاني دائماً مع خيارات لتحسين التجربة</p>
</div>
<div class="grid md:grid-cols-3 gap-8 max-w-5xl mx-auto">
<div class="bg-white rounded-2xl shadow-lg p-8">
<h3 class="text-2xl font-bold mb-4">مجاني</h3>
<div class="text-4xl font-bold text-purple-600 mb-6">0$<span class="text-lg text-gray-600">/شهرياً</span></div>
<ul class="space-y-3 mb-8">
<li class="flex items-center gap-2">
<i data-feather="check" class="w-5 h-5 text-green-500"></i>
<span>5GB تخزين سحابي</span>
</li>
<li class="flex items-center gap-2">
<i data-feather="check" class="w-5 h-5 text-green-500"></i>
<span>720p جودة تصدير</span>
</li>
<li class="flex items-center gap-2">
<i data-feather="check" class="w-5 h-5 text-green-500"></i>
<span>كل الميزات الأساسية</span>
</li>
<li class="flex items-center gap-2">
<i data-feather="check" class="w-5 h-5 text-green-500"></i>
<span>موسيقى مجانية</span>
</li>
</ul>
<button class="w-full bg-purple-600 text-white py-3 rounded-lg font-bold hover:bg-purple-700 transition">
ابدأ الآن
</button>
</div>
<div class="bg-gradient-to-br from-purple-600 to-purple-800 rounded-2xl shadow-xl p-8 text-white transform scale-105">
<div class="bg-yellow-400 text-purple-900 text-sm font-bold px-3 py-1 rounded-full inline-block mb-4">
الأكثر شعبية
</div>
<h3 class="text-2xl font-bold mb-4">داعم</h3>
<div class="text-4xl font-bold mb-6">5$<span class="text-lg opacity-80">/شهرياً</span></div>
<ul class="space-y-3 mb-8">
<li class="flex items-center gap-2">
<i data-feather="check" class="w-5 h-5"></i>
<span>كل مزايا المجاني</span>
</li>
<li class="flex items-center gap-2">
<i data-feather="check" class="w-5 h-5"></i>
<span>50GB تخزين سحابي</span>
</li>
<li class="flex items-center gap-2">
<i data-feather="check" class="w-5 h-5"></i>
<span>4K جودة تصدير</span>
</li>
<li class="flex items-center gap-2">
<i data-feather="check" class="w-5 h-5"></i>
<span>أولوية في المعالجة</span>
</li>
</ul>
<button class="w-full bg-yellow-400 text-purple-900 py-3 rounded-lg font-bold hover:bg-yellow-300 transition">
ادعم المشروع
</button>
</div>
<div class="bg-white rounded-2xl shadow-lg p-8">
<h3 class="text-2xl font-bold mb-4">مؤسسات</h3>
<div class="text-4xl font-bold text-purple-600 mb-6">49$<span class="text-lg text-gray-600">/شهرياً</span></div>
<ul class="space-y-3 mb-8">
<li class="flex items-center gap-2">
<i data-feather="check" class="w-5 h-5 text-green-500"></i>
<span>كل مزايا الداعم</span>
</li>
<li class="flex items-center gap-2">
<i data-feather="check" class="w-5 h-5 text-green-500"></i>
<span>مخزون غير محدود</span>
</li>
<li class="flex items-center gap-2">
<i data-feather="check" class="w-5 h-5 text-green-500"></i>
<span>API متقدم</span>
</li>
<li class="flex items-center gap-2">
<i data-feather="check" class="w-5 h-5 text-green-500"></i>
<span>دعم فني مخصص</span>
</li>
</ul>
<button class="w-full bg-gray-800 text-white py-3 rounded-lg font-bold hover:bg-gray-900 transition">
تواصل معنا
</button>
</div>
</div>
</div>
</section>
<!-- Video Creator Modal -->
<div id="videoCreatorModal" class="fixed inset-0 bg-black bg-opacity-50 z-50 hidden flex items-center justify-center p-4">
<div class="bg-white rounded-2xl max-w-2xl w-full max-h-[90vh] overflow-y-auto">
<div class="p-6 border-b">
<div class="flex justify-between items-center">
<h3 class="text-2xl font-bold">إنشاء فيديو جديد</h3>
<button onclick="closeVideoCreator()" class="text-gray-500 hover:text-gray-700">
<i data-feather="x" class="w-6 h-6"></i>
</button>
</div>
</div>
<div class="p-6">
<div class="mb-6">
<label class="block text-sm font-bold mb-2">عنوان الفيديو</label>
<input type="text" class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-purple-600" placeholder="أدخل عنوان الفيديو">
</div>
<div class="mb-6">
<label class="block text-sm font-bold mb-2">النص أو السكربت</label>
<textarea class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-purple-600 h-32" placeholder="اكتب النص الذي تريد تحويله لفيديو..."></textarea>
</div>
<div class="mb-6">
<label class="block text-sm font-bold mb-2">حجم الفيديو</label>
<div class="grid grid-cols-3 gap-4">
<button class="p-4 border-2 border-purple-600 rounded-lg hover:bg-purple-50 transition">
<div class="aspect-[9/16] bg-purple-100 rounded mb-2"></div>
<div class="text-sm">Stories</div>
</button>
<button class="p-4 border rounded-lg hover:bg-purple-50 transition">
<div class="aspect-square bg-gray-100 rounded mb-2"></div>
<div class="text-sm">Feed</div>
</button>
<button class="p-4 border rounded-lg hover:bg-purple-50 transition">
<div class="aspect-[16/9] bg-gray-100 rounded mb-2"></div>
<div class="text-sm">YouTube</div>
</button>
</div>
</div>
<div class="mb-6">
<label class="block text-sm font-bold mb-2">الصوت</label>
<select class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-purple-600">
<option>صوت ذكوري (فصحى)</option>
<option>صوت انثائي (فصحى)</option>
<option>صوت ذكوري (مصري)</option>
<option>صوت انثائي (خليجي)</option>
</select>
</div>
<div class="flex gap-4">
<button onclick="generateVideo()" class="flex-1 bg-purple-600 text-white py-3 rounded-lg font-bold hover:bg-purple-700 transition">
إنشاء الفيديو
</button>
<button onclick="closeVideoCreator()" class="flex-1 bg-gray-200 text-gray-800 py-3 rounded-lg font-bold hover:bg-gray-300 transition">
إلغاء
</button>
</div>
</div>
</div>
</div>
<!-- Footer -->
<footer class="bg-gray-900 text-white py-12">
<div class="container mx-auto px-4">
<div class="grid md:grid-cols-4 gap-8 mb-8">
<div>
<div class="flex items-center space-x-reverse space-x-2 mb-4">
<div class="w-10 h-10 bg-purple-600 rounded-lg flex items-center justify-center">
<i data-feather="video" class="w-6 h-6 text-white"></i>
</div>
<span class="text-xl font-bold">صانع مجاني</span>
</div>
<p class="text-gray-400">أداة مجانية لصانعي المحتوى العرب لإنشاء فيديوهات احترافية بالذكاء الاصطناعي</p>
</div>
<div>
<h4 class="font-bold mb-4">المنتج</h4>
<ul class="space-y-2 text-gray-400">
<li><a href="#" class="hover:text-white transition">الميزات</a></li>
<li><a href="#" class="hover:text-white transition">القوالب</a></li>
<li><a href="#" class="hover:text-white transition">الأسعار</a></li>
<li><a href="#" class="hover:text-white transition">API</a></li>
</ul>
</div>
<div>
<h4 class="font-bold mb-4">الشركة</h4>
<ul class="space-y-2 text-gray-400">
<li><a href="#" class="hover:text-white transition">عننا</a></li>
<li><a href="#" class="hover:text-white transition">المدونة</a></li>
<li><a href="#" class="hover:text-white transition">وظائف</a></li>
<li><a href="#" class="hover:text-white transition">اتصل بنا</a></li>
</ul>
</div>
<div>
<h4 class="font-bold mb-4">تابعنا</h4>
<div class="flex gap-4">
<a href="#" class="w-10 h-10 bg-gray-800 rounded-full flex items-center justify-center hover:bg-gray-700 transition">
<i data-feather="facebook" class="w-5 h-5"></i>
</a>
<a href="#" class="w-10 h-10 bg-gray-800 rounded-full flex items-center justify-center hover:bg-gray-700 transition">
<i data-feather="twitter" class="w-5 h-5"></i>
</a>
<a href="#" class="w-10 h-10 bg-gray-800 rounded-full flex items-center justify-center hover:bg-gray-700 transition">
<i data-feather="instagram" class="w-5 h-5"></i>
</a>
<a href="#" class="w-10 h-10 bg-gray-800 rounded-full flex items-center justify-center hover:bg-gray-700 transition">
<i data-feather="youtube" class="w-5 h-5"></i>
</a>
</div>
</div>
</div>
<div class="border-t border-gray-800 pt-8 text-center text-gray-400">
<p>&copy; 2024 صانع مجاني. جميع الحقوق محفوظة.</p>
</div>
</div>
</footer>
<script>
// Initialize Feather Icons
feather.replace();
// Mobile Menu Toggle
function toggleMobileMenu() {
const menu = document.getElementById('mobileMenu');
menu.classList.toggle('hidden');
}
// Show Video Creator Modal
function showVideoCreator() {
document.getElementById('videoCreatorModal').classList.remove('hidden');
feather.replace();
}
// Close Video Creator Modal
function closeVideoCreator() {
document.getElementById('videoCreatorModal').classList.add('hidden');
}
// Generate Video (Simulation)
function generateVideo() {
// Simulate video generation
closeVideoCreator();
// Show loading notification
const notification = document.createElement('div');
notification.className = 'fixed top-20 right-4 bg-green-500 text-white px-6 py-4 rounded-lg shadow-lg z-50 flex items-center gap-3';
notification.innerHTML = `
<div class="animate-spin">
<i data-feather="loader" class="w-5 h-5"></i>
</div>
<span>جاري إنشاء الفيديو...</span>
`;
document.body.appendChild(notification);
feather.replace();
// Simulate completion after 3 seconds
setTimeout(() => {
notification.innerHTML = `
<i data-feather="check-circle" class="w-5 h-5"></i>
<span>تم إنشاء الفيديو بنجاح!</span>
`;
feather.replace();
setTimeout(() => {
notification.remove();
}, 3000);
}, 3000);
}
// Play Demo (Simulation)
function playDemo() {
const modal = document.createElement('div');
modal.className = 'fixed inset-0 bg-black bg-opacity-50 z-50 flex items-center justify-center p-4';
modal.innerHTML = `
<div class="bg-white rounded-2xl max-w-3xl w-full p-6">
<div class="flex justify-between items-center mb-4">
<h3 class="text-2xl font-bold">تجربة المنتج</h3>
<button onclick="this.closest('.fixed').remove()" class="text-gray-500 hover:text-gray-700">
<i data-feather="x" class="w-6 h-6"></i>
</button>
</div>
<div class="aspect-video bg-gray-100 rounded-lg flex items-center justify-center">
<div class="text-center">
<i data-feather="play-circle" class="w-16 h-16 text-gray-400 mx-auto mb-4"></i>
<p class="text-gray-600">فيديو تجريبي</p>
</div>
</div>
</div>
`;
document.body.appendChild(modal);
feather.replace();
}
// Smooth Scroll
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
const target = document.querySelector(this.getAttribute('href'));
if (target) {
target.scrollIntoView({
behavior: 'smooth',
block: 'start'
});
}
});
});
// Scroll animations
const observerOptions = {
threshold: 0.1,
rootMargin: '0px 0px -50px 0px'
};
const observer = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.style.opacity = '1';
entry.target.style.transform = 'translateY(0)';
}
});
}, observerOptions);
// Apply scroll animations to feature cards
document.querySelectorAll('.feature-card').forEach(card => {
card.style.opacity = '0';
card.style.transform = 'translateY(20px)';
card.style.transition = 'opacity 0.6s ease, transform 0.6s ease';
observer.observe(card);
});
</script>
</body>
</html>