forked from amer2004/SweetHome
Added translation to all site with edit style
This commit is contained in:
@ -3,8 +3,10 @@
|
||||
import { motion } from 'framer-motion';
|
||||
import Link from 'next/link';
|
||||
import { Home, Building, Briefcase, ArrowLeft } from 'lucide-react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
export default function ChooseRolePage() {
|
||||
const { t, i18n } = useTranslation();
|
||||
const containerVariants = {
|
||||
hidden: { opacity: 0 },
|
||||
visible: {
|
||||
@ -35,7 +37,7 @@ export default function ChooseRolePage() {
|
||||
};
|
||||
|
||||
return (
|
||||
<div className="min-h-screen bg-gradient-to-br from-gray-950 via-gray-900 to-gray-950 flex items-center justify-center p-4 relative overflow-hidden">
|
||||
<div dir={i18n.language === 'ar' ? 'rtl' : 'ltr'} className="min-h-screen bg-gradient-to-br from-gray-950 via-gray-900 to-gray-950 flex items-center justify-center p-4 relative overflow-hidden">
|
||||
<div className="absolute inset-0 overflow-hidden">
|
||||
{[...Array(20)].map((_, i) => (
|
||||
<motion.div
|
||||
@ -77,7 +79,7 @@ export default function ChooseRolePage() {
|
||||
<motion.div whileHover={{ x: -5 }}>
|
||||
<ArrowLeft className="w-4 h-4" />
|
||||
</motion.div>
|
||||
<span>العودة للرئيسية</span>
|
||||
<span>{t('backToHome')}</span>
|
||||
</Link>
|
||||
</motion.div>
|
||||
|
||||
@ -89,10 +91,10 @@ export default function ChooseRolePage() {
|
||||
className="text-4xl md:text-5xl font-bold text-white mb-4"
|
||||
animate={floatingAnimation}
|
||||
>
|
||||
مرحباً بك في SweetHome
|
||||
{t('chooseRole.welcomeToSweetHome')}
|
||||
</motion.h1>
|
||||
<p className="text-xl text-gray-400">
|
||||
اختر نوع الحساب المناسب لك
|
||||
{t('chooseRole.subtitle')}
|
||||
</p>
|
||||
</motion.div>
|
||||
|
||||
@ -123,23 +125,23 @@ export default function ChooseRolePage() {
|
||||
<Building className="w-10 h-10 text-white" />
|
||||
</motion.div>
|
||||
|
||||
<h2 className="text-3xl font-bold mb-3">صاحب عقار</h2>
|
||||
<h2 className="text-3xl font-bold mb-3">{t('chooseRole.owner')}</h2>
|
||||
<p className="text-amber-100 mb-6">
|
||||
تريد عرض عقار للإيجار أو البيع؟ انضم كمالك عقار وابدأ الآن
|
||||
{t('chooseRole.ownerDesc')}
|
||||
</p>
|
||||
|
||||
<ul className="space-y-2 text-sm text-amber-100">
|
||||
<li className="flex items-center gap-2">
|
||||
<span className="w-1.5 h-1.5 bg-white rounded-full" />
|
||||
إضافة عقارات غير محدودة
|
||||
{t('chooseRole.ownerFeature1')}
|
||||
</li>
|
||||
<li className="flex items-center gap-2">
|
||||
<span className="w-1.5 h-1.5 bg-white rounded-full" />
|
||||
إدارة الحجوزات بسهولة
|
||||
{t('chooseRole.ownerFeature2')}
|
||||
</li>
|
||||
<li className="flex items-center gap-2">
|
||||
<span className="w-1.5 h-1.5 bg-white rounded-full" />
|
||||
تواصل مباشر مع المستأجرين
|
||||
{t('chooseRole.ownerFeature3')}
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
@ -148,7 +150,7 @@ export default function ChooseRolePage() {
|
||||
whileHover={{ scale: 1.02 }}
|
||||
whileTap={{ scale: 0.98 }}
|
||||
>
|
||||
إنشاء حساب مالك
|
||||
{t('chooseRole.createOwnerAccount')}
|
||||
</motion.button>
|
||||
</div>
|
||||
</div>
|
||||
@ -181,23 +183,23 @@ export default function ChooseRolePage() {
|
||||
<Home className="w-10 h-10 text-white" />
|
||||
</motion.div>
|
||||
|
||||
<h2 className="text-3xl font-bold mb-3">مستأجر / مشتري</h2>
|
||||
<h2 className="text-3xl font-bold mb-3">{t('chooseRole.tenant')}</h2>
|
||||
<p className="text-blue-100 mb-6">
|
||||
تبحث عن عقار للإيجار أو الشراء؟ انضم كعميل وابحث عن منزل أحلامك
|
||||
{t('chooseRole.tenantDesc')}
|
||||
</p>
|
||||
|
||||
<ul className="space-y-2 text-sm text-blue-100">
|
||||
<li className="flex items-center gap-2">
|
||||
<span className="w-1.5 h-1.5 bg-white rounded-full" />
|
||||
آلاف العقارات المتاحة
|
||||
{t('chooseRole.tenantFeature1')}
|
||||
</li>
|
||||
<li className="flex items-center gap-2">
|
||||
<span className="w-1.5 h-1.5 bg-white rounded-full" />
|
||||
بحث متقدم بفلاتر ذكية
|
||||
{t('chooseRole.tenantFeature2')}
|
||||
</li>
|
||||
<li className="flex items-center gap-2">
|
||||
<span className="w-1.5 h-1.5 bg-white rounded-full" />
|
||||
حجز وإستئجار فوري
|
||||
{t('chooseRole.tenantFeature3')}
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
@ -206,7 +208,7 @@ export default function ChooseRolePage() {
|
||||
whileHover={{ scale: 1.02 }}
|
||||
whileTap={{ scale: 0.98 }}
|
||||
>
|
||||
إنشاء حساب مستأجر
|
||||
{t('chooseRole.createTenantAccount')}
|
||||
</motion.button>
|
||||
</div>
|
||||
</div>
|
||||
@ -239,23 +241,23 @@ export default function ChooseRolePage() {
|
||||
<Briefcase className="w-10 h-10 text-white" />
|
||||
</motion.div>
|
||||
|
||||
<h2 className="text-3xl font-bold mb-3">وكيل عقاري</h2>
|
||||
<h2 className="text-3xl font-bold mb-3">{t('chooseRole.agent')}</h2>
|
||||
<p className="text-purple-100 mb-6">
|
||||
تدير عقارات للغير؟ انضم كوسيط عقاري واحصل على فرص مميزة
|
||||
{t('chooseRole.agentDesc')}
|
||||
</p>
|
||||
|
||||
<ul className="space-y-2 text-sm text-purple-100">
|
||||
<li className="flex items-center gap-2">
|
||||
<span className="w-1.5 h-1.5 bg-white rounded-full" />
|
||||
إدارة عقارات العملاء
|
||||
{t('chooseRole.agentFeature1')}
|
||||
</li>
|
||||
<li className="flex items-center gap-2">
|
||||
<span className="w-1.5 h-1.5 bg-white rounded-full" />
|
||||
عمولات وأرباح مضمونة
|
||||
{t('chooseRole.agentFeature2')}
|
||||
</li>
|
||||
<li className="flex items-center gap-2">
|
||||
<span className="w-1.5 h-1.5 bg-white rounded-full" />
|
||||
لوحة تحكم متكاملة
|
||||
{t('chooseRole.agentFeature3')}
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
@ -264,7 +266,7 @@ export default function ChooseRolePage() {
|
||||
whileHover={{ scale: 1.02 }}
|
||||
whileTap={{ scale: 0.98 }}
|
||||
>
|
||||
إنشاء حساب وكيل
|
||||
{t('chooseRole.createAgentAccount')}
|
||||
</motion.button>
|
||||
</div>
|
||||
</div>
|
||||
@ -276,12 +278,12 @@ export default function ChooseRolePage() {
|
||||
variants={itemVariants}
|
||||
className="text-center text-gray-400 mt-8"
|
||||
>
|
||||
لديك حساب بالفعل؟{' '}
|
||||
{t('chooseRole.alreadyHaveAccount')}{' '}
|
||||
<Link
|
||||
href="/login"
|
||||
className="text-amber-400 hover:text-amber-300 font-medium transition-colors"
|
||||
>
|
||||
تسجيل الدخول
|
||||
{t('login')}
|
||||
</Link>
|
||||
</motion.p>
|
||||
</motion.div>
|
||||
|
||||
Reference in New Issue
Block a user