en / index.html
obaydaa's picture
اريد تصميم تطبيق انرويد لتعيم اللغة الانجليزية من الصفر حتى الاحتراف مع دعم الذكاء الصناعي - Initial Deployment
11a7fc2 verified
Raw History Blame Contribute Delete
13.7 kB
<!DOCTYPE html>
<html lang="en" dir="rtl">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AI English Master</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&display=swap');
body {
font-family: 'Tajawal', sans-serif;
background-color: #f5f7fa;
}
.gradient-bg {
background: linear-gradient(135deg, #6B73FF 0%, #000DFF 100%);
}
.lesson-card {
transition: all 0.3s ease;
}
.lesson-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.chat-bubble {
border-radius: 20px 20px 20px 0;
}
.user-bubble {
border-radius: 20px 20px 0 20px;
}
.progress-ring__circle {
transition: stroke-dashoffset 0.5s ease;
transform: rotate(-90deg);
transform-origin: 50% 50%;
}
.ai-speaking {
animation: pulse 1.5s infinite;
}
@keyframes pulse {
0% { transform: scale(1); }
50% { transform: scale(1.05); }
100% { transform: scale(1); }
}
</style>
</head>
<body class="text-gray-800">
<!-- App Container -->
<div class="max-w-md mx-auto bg-white shadow-lg rounded-lg overflow-hidden h-screen flex flex-col">
<!-- Header -->
<div class="gradient-bg text-white p-4 flex items-center justify-between">
<div class="flex items-center">
<i class="fas fa-robot text-2xl mr-2"></i>
<h1 class="text-xl font-bold">AI English Master</h1>
</div>
<div class="flex items-center space-x-3">
<button class="p-1 rounded-full bg-blue-800 bg-opacity-30">
<i class="fas fa-user text-sm"></i>
</button>
<button class="p-1 rounded-full bg-blue-800 bg-opacity-30">
<i class="fas fa-cog text-sm"></i>
</button>
</div>
</div>
<!-- Main Content - Tab Container -->
<div class="flex-1 overflow-y-auto">
<div class="p-4">
<!-- Progress Section -->
<div class="bg-white rounded-xl shadow-sm p-4 mb-6 flex items-center">
<div class="relative w-16 h-16 mr-4">
<svg class="w-full h-full" viewBox="0 0 36 36">
<path
d="M18 2.0845
a 15.9155 15.9155 0 0 1 0 31.831
a 15.9155 15.9155 0 0 1 0 -31.831"
fill="none"
stroke="#e6e6e6"
stroke-width="3"
/>
<path
class="progress-ring__circle"
d="M18 2.0845
a 15.9155 15.9155 0 0 1 0 31.831
a 15.9155 15.9155 0 0 1 0 -31.831"
fill="none"
stroke="#3B82F6"
stroke-width="3"
stroke-dasharray="75, 100"
/>
</svg>
<div class="absolute inset-0 flex items-center justify-center">
<span class="text-sm font-bold">75%</span>
</div>
</div>
<div>
<h3 class="font-bold text-gray-700">مستواك: متوسط</h3>
<p class="text-sm text-gray-500">لقد أكملت 23 من 30 درسًا</p>
<div class="w-full bg-gray-200 rounded-full h-2 mt-2">
<div class="bg-blue-500 h-2 rounded-full" style="width: 75%"></div>
</div>
</div>
</div>
<!-- Daily Goal -->
<div class="bg-blue-50 rounded-xl p-4 mb-6 flex justify-between items-center">
<div>
<h3 class="font-bold text-gray-700">الهدف اليومي</h3>
<p class="text-sm text-gray-500">15 دقيقة يوميًا</p>
</div>
<div class="flex items-center">
<div class="flex space-x-1 mr-3">
<div class="w-3 h-3 rounded-full bg-blue-500"></div>
<div class="w-3 h-3 rounded-full bg-blue-500"></div>
<div class="w-3 h-3 rounded-full bg-blue-300"></div>
</div>
<span class="text-sm font-bold">10/15 د</span>
</div>
</div>
<!-- AI Assistant Section -->
<div class="bg-white rounded-xl shadow-sm p-4 mb-6">
<div class="flex items-center justify-between mb-3">
<h3 class="font-bold text-gray-700">مساعد الذكاء الاصطناعي</h3>
<span class="text-xs bg-green-100 text-green-800 px-2 py-1 rounded-full">متصل</span>
</div>
<!-- AI Chat Example -->
<div class="space-y-2 mb-3">
<div class="flex">
<div class="bg-blue-100 text-gray-800 p-3 chat-bubble max-w-xs">
مرحبا! أنا مساعدك لتعلم الإنجليزية. هل لديك أي سؤال؟
</div>
</div>
<div class="flex justify-end">
<div class="bg-blue-500 text-white p-3 user-bubble max-w-xs">
كيف أقول "أريد تعلم الإنجليزية"؟
</div>
</div>
<div class="flex">
<div class="bg-blue-100 text-gray-800 p-3 chat-bubble max-w-xs">
"I want to learn English"
<button class="ml-2 text-blue-500">
<i class="fas fa-volume-up"></i>
</button>
</div>
</div>
</div>
<div class="relative">
<input
type="text"
placeholder="اسأل المساعد..."
class="w-full border border-gray-300 rounded-full py-2 px-4 pr-10 focus:outline-none focus:ring-2 focus:ring-blue-500"
>
<button class="absolute right-3 top-2 text-blue-500">
<i class="fas fa-paper-plane"></i>
</button>
</div>
</div>
<!-- Categories Section -->
<h3 class="font-bold text-gray-700 mb-3">الدروس المصنفة</h3>
<div class="grid grid-cols-2 gap-3 mb-6">
<div class="bg-red-50 rounded-xl p-4 flex items-center">
<div class="bg-red-100 p-3 rounded-full mr-3">
<i class="fas fa-book text-red-500"></i>
</div>
<span class="font-medium">القواعد</span>
</div>
<div class="bg-green-50 rounded-xl p-4 flex items-center">
<div class="bg-green-100 p-3 rounded-full mr-3">
<i class="fas fa-headphones text-green-500"></i>
</div>
<span class="font-medium">الاستماع</span>
</div>
<div class="bg-yellow-50 rounded-xl p-4 flex items-center">
<div class="bg-yellow-100 p-3 rounded-full mr-3">
<i class="fas fa-comments text-yellow-500"></i>
</div>
<span class="font-medium">المحادثة</span>
</div>
<div class="bg-purple-50 rounded-xl p-4 flex items-center">
<div class="bg-purple-100 p-3 rounded-full mr-3">
<i class="fas fa-pen-fancy text-purple-500"></i>
</div>
<span class="font-medium">الكتابة</span>
</div>
</div>
<!-- Recent Lessons -->
<h3 class="font-bold text-gray-700 mb-3">دروسك الأخيرة</h3>
<div class="space-y-3 mb-6">
<div class="lesson-card bg-white rounded-xl shadow-sm p-4 flex items-center justify-between">
<div class="flex items-center">
<div class="bg-blue-100 p-3 rounded-full mr-3">
<i class="fas fa-flag text-blue-500"></i>
</div>
<div>
<h4 class="font-medium">الأفعال الشائعة</h4>
<p class="text-xs text-gray-500">المبتدئين • 12 دقيقة</p>
</div>
</div>
<i class="fas fa-play-circle text-blue-500 text-xl"></i>
</div>
<div class="lesson-card bg-white rounded-xl shadow-sm p-4 flex items-center justify-between">
<div class="flex items-center">
<div class="bg-green-100 p-3 rounded-full mr-3">
<i class="fas fa-shopping-cart text-green-500"></i>
</div>
<div>
<h4 class="font-medium">التسوق</h4>
<p class="text-xs text-gray-500">المتوسطين • 18 دقيقة</p>
</div>
</div>
<i class="fas fa-play-circle text-blue-500 text-xl"></i>
</div>
</div>
</div>
</div>
<!-- Bottom Navigation -->
<div class="bg-white border-t border-gray-200 p-2 flex justify-around">
<button class="p-2 text-blue-500 rounded-full">
<i class="fas fa-home text-xl"></i>
</button>
<button class="p-2 text-gray-500 rounded-full">
<i class="fas fa-book-open text-xl"></i>
</button>
<button class="p-2 text-gray-500 rounded-full relative">
<i class="fas fa-comment-dots text-xl"></i>
<span class="absolute -top-1 -right-1 bg-red-500 text-white text-xs rounded-full h-4 w-4 flex items-center justify-center">3</span>
</button>
<button class="p-2 text-gray-500 rounded-full">
<i class="fas fa-chart-line text-xl"></i>
</button>
<button class="p-2 text-gray-500 rounded-full">
<i class="fas fa-user text-xl"></i>
</button>
</div>
</div>
<script>
// Simple interactions
document.addEventListener('DOMContentLoaded', function() {
// Add click event to lesson cards
const lessonCards = document.querySelectorAll('.lesson-card');
lessonCards.forEach(card => {
card.addEventListener('click', function() {
alert('سيتم فتح الدرس: ' + this.querySelector('h4').textContent);
});
});
// AI Assistant speaking animation
const aiSpeakingButton = document.querySelector('.fa-volume-up').parentElement;
aiSpeakingButton.addEventListener('click', function() {
const bubble = this.closest('.chat-bubble');
bubble.classList.add('ai-speaking');
setTimeout(() => {
bubble.classList.remove('ai-speaking');
}, 1500);
});
});
</script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=obaydaa/en" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>