Added translation to all site with edit style
All checks were successful
Build frontend / build (push) Successful in 1m40s
All checks were successful
Build frontend / build (push) Successful in 1m40s
This commit is contained in:
@ -157,7 +157,7 @@ export default function ClientLayout({ children }) {
|
||||
<div className="min-h-screen flex items-center justify-center">
|
||||
<div className="text-center">
|
||||
<div className="w-16 h-16 border-4 border-amber-500 border-t-transparent rounded-full animate-spin mx-auto mb-4"></div>
|
||||
<p className="text-gray-600">جاري التحميل...</p>
|
||||
<p className="text-gray-600" suppressHydrationWarning>{t("loading")}</p>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
@ -202,7 +202,7 @@ export default function ClientLayout({ children }) {
|
||||
<path d="M11 2a3 3 0 0 0-3 3v6.5a.5.5 0 0 0 1 0V5a2 2 0 1 1 4 0v6.5a.5.5 0 0 0 1 0V5a3 3 0 0 0-3-3z"/>
|
||||
<path d="M1.5 12.5A1.5 1.5 0 0 0 3 14h10a1.5 1.5 0 0 0 0-3H3a1.5 1.5 0 0 0-1.5 1.5z"/>
|
||||
</svg>
|
||||
<span className="text-sm font-semibold">تحميل التطبيق</span>
|
||||
<span className="text-sm font-semibold">{t("downloadApp")}</span>
|
||||
<svg className="w-4 h-4 transition-transform group-hover:rotate-180" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" d="M19 9l-7 7-7-7"/></svg>
|
||||
</button>
|
||||
<div className="absolute right-0 mt-2 w-64 bg-white rounded-xl shadow-xl border border-gray-200 overflow-hidden z-50 opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-200 translate-y-2 group-hover:translate-y-0">
|
||||
@ -215,8 +215,8 @@ export default function ClientLayout({ children }) {
|
||||
</svg>
|
||||
</div>
|
||||
<div>
|
||||
<p className="font-semibold text-gray-900 text-sm">Android</p>
|
||||
<p className="text-xs text-green-600">تحميل APK</p>
|
||||
<p className="font-semibold text-gray-900 text-sm">{t("android")}</p>
|
||||
<p className="text-xs text-green-600">{t("downloadAPK")}</p>
|
||||
</div>
|
||||
</a>
|
||||
<div className="flex items-center gap-3 px-4 py-3 rounded-lg opacity-50 cursor-not-allowed">
|
||||
@ -226,16 +226,16 @@ export default function ClientLayout({ children }) {
|
||||
</svg>
|
||||
</div>
|
||||
<div>
|
||||
<p className="font-semibold text-gray-400 text-sm">iOS</p>
|
||||
<p className="text-xs text-gray-400">قريباً</p>
|
||||
<p className="font-semibold text-gray-400 text-sm">{t("ios")}</p>
|
||||
<p className="text-xs text-gray-400">{t("comingSoon")}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<NavLink light={isHomePage} href="/">الرئيسية</NavLink>
|
||||
<NavLink light={isHomePage} href="/properties">عقاراتنا</NavLink>
|
||||
<NavLink light={isHomePage} href="/">{t("home")}</NavLink>
|
||||
<NavLink light={isHomePage} href="/properties">{t("ourProperties")}</NavLink>
|
||||
|
||||
|
||||
{isOwner && (
|
||||
@ -243,25 +243,19 @@ export default function ClientLayout({ children }) {
|
||||
<NavLink light={isHomePage} href="/owner/properties">
|
||||
<span className="flex items-center gap-2">
|
||||
<Building className="w-4 h-4" />
|
||||
عقاراتي
|
||||
{t("myProperties")}
|
||||
</span>
|
||||
</NavLink>
|
||||
<NavLink light={isHomePage} href="/owner/reservations">
|
||||
<span className="flex items-center gap-2">
|
||||
<Calendar className="w-4 h-4" />
|
||||
الحجوزات
|
||||
{t("reservations")}
|
||||
</span>
|
||||
</NavLink>
|
||||
{/* <NavLink light={isHomePage} href="/owner/calendar">
|
||||
<span className="flex items-center gap-2">
|
||||
<CalendarDays className="w-4 h-4" />
|
||||
التقويم
|
||||
</span>
|
||||
</NavLink> */}
|
||||
<NavLink light={isHomePage} href="/owner/profits">
|
||||
<span className="flex items-center gap-2">
|
||||
<TrendingUp className="w-4 h-4" />
|
||||
الأرباح
|
||||
{t("profits")}
|
||||
</span>
|
||||
</NavLink>
|
||||
</>
|
||||
@ -272,13 +266,13 @@ export default function ClientLayout({ children }) {
|
||||
<NavLink light={isHomePage} href="/login">
|
||||
<span className="flex items-center gap-2">
|
||||
<LogIn className="w-4 h-4" />
|
||||
تسجيل الدخول
|
||||
{t("login")}
|
||||
</span>
|
||||
</NavLink>
|
||||
<NavLink light={isHomePage} href="/auth/choose-role">
|
||||
<span className="flex items-center gap-2">
|
||||
<UserPlus className="w-4 h-4" />
|
||||
إنشاء حساب
|
||||
{t("createAccount")}
|
||||
</span>
|
||||
</NavLink>
|
||||
</>
|
||||
@ -322,14 +316,14 @@ export default function ClientLayout({ children }) {
|
||||
</div>
|
||||
<div>
|
||||
<p className="font-bold">
|
||||
{user?.name || "مستخدم"}
|
||||
{user?.name || t("userLabel")}
|
||||
</p>
|
||||
<p className="text-xs text-amber-100">
|
||||
{user?.email || ""}
|
||||
</p>
|
||||
<p className="text-xs text-amber-100 mt-1">
|
||||
{UserRoleLabels[user?.role] || 'زائر'}
|
||||
</p>
|
||||
<p className="text-xs text-amber-100 mt-1">
|
||||
{t(UserRoleLabels[user?.role] ? `userRole.${user?.role.toLowerCase()}` : 'visitor')}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -342,9 +336,9 @@ export default function ClientLayout({ children }) {
|
||||
>
|
||||
<UserCircle className="w-5 h-5 text-amber-500" />
|
||||
<div>
|
||||
<p className="font-medium">الملف الشخصي</p>
|
||||
<p className="font-medium">{t("profile")}</p>
|
||||
<p className="text-xs text-gray-500">
|
||||
عرض وتعديل معلوماتك
|
||||
{t("viewAndEditInfo")}
|
||||
</p>
|
||||
</div>
|
||||
</Link>
|
||||
@ -356,9 +350,9 @@ export default function ClientLayout({ children }) {
|
||||
>
|
||||
<Heart className="w-5 h-5 text-amber-500" />
|
||||
<div>
|
||||
<p className="font-medium">المفضلة</p>
|
||||
<p className="font-medium">{t("favorites")}</p>
|
||||
<p className="text-xs text-gray-500">
|
||||
العقارات المحفوظة
|
||||
{t("savedProperties")}
|
||||
</p>
|
||||
</div>
|
||||
</Link>
|
||||
@ -370,9 +364,9 @@ export default function ClientLayout({ children }) {
|
||||
>
|
||||
<CalendarDays className="w-5 h-5 text-amber-500" />
|
||||
<div>
|
||||
<p className="font-medium">عقاراتي المحجوزة</p>
|
||||
<p className="font-medium">{t("myBookedProperties")}</p>
|
||||
<p className="text-xs text-gray-500">
|
||||
عرض وتقييم العقارات المحجوزة
|
||||
{t("viewAndRateBooked")}
|
||||
</p>
|
||||
</div>
|
||||
</Link>
|
||||
@ -384,9 +378,9 @@ export default function ClientLayout({ children }) {
|
||||
>
|
||||
<Star className="w-5 h-5 text-amber-500" />
|
||||
<div>
|
||||
<p className="font-medium">تقييماتي</p>
|
||||
<p className="font-medium">{t("myRatings")}</p>
|
||||
<p className="text-xs text-gray-500">
|
||||
التقييمات التي تلقيتها
|
||||
{t("ratingsReceived")}
|
||||
</p>
|
||||
</div>
|
||||
</Link>
|
||||
@ -398,9 +392,9 @@ export default function ClientLayout({ children }) {
|
||||
>
|
||||
<Settings className="w-5 h-5 text-amber-500" />
|
||||
<div>
|
||||
<p className="font-medium">الإعدادات</p>
|
||||
<p className="font-medium">{t("settings")}</p>
|
||||
<p className="text-xs text-gray-500">
|
||||
إعدادات الحساب والأمان
|
||||
{t("accountAndSecurity")}
|
||||
</p>
|
||||
</div>
|
||||
</Link>
|
||||
@ -416,9 +410,9 @@ export default function ClientLayout({ children }) {
|
||||
>
|
||||
<Building className="w-5 h-5 text-amber-500" />
|
||||
<div>
|
||||
<p className="font-medium">عقاراتي</p>
|
||||
<p className="font-medium">{t("myProperties")}</p>
|
||||
<p className="text-xs text-gray-500">
|
||||
إدارة عقاراتك
|
||||
{t("manageYourProperties")}
|
||||
</p>
|
||||
</div>
|
||||
</Link>
|
||||
@ -430,9 +424,9 @@ export default function ClientLayout({ children }) {
|
||||
>
|
||||
<PlusCircle className="w-5 h-5 text-amber-500" />
|
||||
<div>
|
||||
<p className="font-medium">إضافة عقار</p>
|
||||
<p className="font-medium">{t("addProperty")}</p>
|
||||
<p className="text-xs text-gray-500">
|
||||
أضف عقاراً جديداً
|
||||
{t("addNewProperty")}
|
||||
</p>
|
||||
</div>
|
||||
</Link>
|
||||
@ -444,9 +438,9 @@ export default function ClientLayout({ children }) {
|
||||
>
|
||||
<Calendar className="w-5 h-5 text-amber-500" />
|
||||
<div>
|
||||
<p className="font-medium">الحجوزات</p>
|
||||
<p className="font-medium">{t("reservations")}</p>
|
||||
<p className="text-xs text-gray-500">
|
||||
إدارة حجوزاتك
|
||||
{t("manageReservations")}
|
||||
</p>
|
||||
</div>
|
||||
</Link>
|
||||
@ -458,9 +452,9 @@ export default function ClientLayout({ children }) {
|
||||
>
|
||||
<CalendarDays className="w-5 h-5 text-amber-500" />
|
||||
<div>
|
||||
<p className="font-medium">التقويم</p>
|
||||
<p className="font-medium">{t("calendar")}</p>
|
||||
<p className="text-xs text-gray-500">
|
||||
جدول توفر العقارات
|
||||
{t("propertyAvailability")}
|
||||
</p>
|
||||
</div>
|
||||
</Link>
|
||||
@ -472,9 +466,9 @@ export default function ClientLayout({ children }) {
|
||||
>
|
||||
<TrendingUp className="w-5 h-5 text-amber-500" />
|
||||
<div>
|
||||
<p className="font-medium">الأرباح</p>
|
||||
<p className="font-medium">{t("profits")}</p>
|
||||
<p className="text-xs text-gray-500">
|
||||
إحصائيات وأرباح
|
||||
{t("statisticsAndProfits")}
|
||||
</p>
|
||||
</div>
|
||||
</Link>
|
||||
@ -486,9 +480,9 @@ export default function ClientLayout({ children }) {
|
||||
>
|
||||
<DollarSign className="w-5 h-5 text-amber-500" />
|
||||
<div>
|
||||
<p className="font-medium">دفتر الحسابات</p>
|
||||
<p className="font-medium">{t("accountBook")}</p>
|
||||
<p className="text-xs text-gray-500">
|
||||
سجل المعاملات المالية
|
||||
{t("financialRecords")}
|
||||
</p>
|
||||
</div>
|
||||
</Link>
|
||||
@ -506,9 +500,9 @@ export default function ClientLayout({ children }) {
|
||||
>
|
||||
<Calendar className="w-5 h-5 text-amber-500" />
|
||||
<div>
|
||||
<p className="font-medium">حجوزاتي</p>
|
||||
<p className="font-medium">{t("myBookings")}</p>
|
||||
<p className="text-xs text-gray-500">
|
||||
عرض حجوزاتك
|
||||
{t("viewBookings")}
|
||||
</p>
|
||||
</div>
|
||||
</Link>
|
||||
@ -520,9 +514,9 @@ export default function ClientLayout({ children }) {
|
||||
>
|
||||
<CalendarDays className="w-5 h-5 text-amber-500" />
|
||||
<div>
|
||||
<p className="font-medium">عقاراتي المحجوزة</p>
|
||||
<p className="font-medium">{t("myBookedProperties")}</p>
|
||||
<p className="text-xs text-gray-500">
|
||||
عرض وتقييم العقارات المحجوزة
|
||||
{t("viewAndRateBooked")}
|
||||
</p>
|
||||
</div>
|
||||
</Link>
|
||||
@ -534,9 +528,9 @@ export default function ClientLayout({ children }) {
|
||||
>
|
||||
<Star className="w-5 h-5 text-amber-500" />
|
||||
<div>
|
||||
<p className="font-medium">تقييماتي</p>
|
||||
<p className="font-medium">{t("myRatings")}</p>
|
||||
<p className="text-xs text-gray-500">
|
||||
التقييمات التي تلقيتها
|
||||
{t("ratingsReceived")}
|
||||
</p>
|
||||
</div>
|
||||
</Link>
|
||||
@ -548,9 +542,9 @@ export default function ClientLayout({ children }) {
|
||||
>
|
||||
<FileText className="w-5 h-5 text-amber-500" />
|
||||
<div>
|
||||
<p className="font-medium">البلاغات</p>
|
||||
<p className="font-medium">{t("reports")}</p>
|
||||
<p className="text-xs text-gray-500">
|
||||
تقديم ومتابعة البلاغات
|
||||
{t("submitAndTrackReports")}
|
||||
</p>
|
||||
</div>
|
||||
</Link>
|
||||
@ -565,9 +559,9 @@ export default function ClientLayout({ children }) {
|
||||
>
|
||||
<LogOut className="w-5 h-5" />
|
||||
<div>
|
||||
<p className="font-medium">تسجيل الخروج</p>
|
||||
<p className="font-medium">{t("logout")}</p>
|
||||
<p className="text-xs text-red-400">
|
||||
إنهاء الجلسة الحالية
|
||||
{t("endSession")}
|
||||
</p>
|
||||
</div>
|
||||
</button>
|
||||
@ -642,19 +636,19 @@ export default function ClientLayout({ children }) {
|
||||
|
||||
{/* Download App - Mobile */}
|
||||
<div className={`border-t my-2 ${isHomePage ? "border-white/10" : "border-gray-200"}`}></div>
|
||||
<p className={`px-3 py-1 text-xs font-medium ${isHomePage ? "text-white/50" : "text-gray-400"}`}>تحميل التطبيق</p>
|
||||
<p className={`px-3 py-1 text-xs font-medium ${isHomePage ? "text-white/50" : "text-gray-400"}`}>{t("downloadApp")}</p>
|
||||
<a href="/files/SweetHome.apk" download onClick={closeMobileMenu}
|
||||
className={`flex items-center gap-2 px-3 py-2 rounded-md transition-colors ${isHomePage ? "text-green-400 hover:bg-white/10" : "text-green-600 hover:bg-green-50"}`}>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="currentColor" viewBox="0 0 16 16">
|
||||
<path d="M2.76 3.061a.5.5 0 0 1 .679.2l1.283 2.352A8.9 8.9 0 0 1 8 5a8.9 8.9 0 0 1 3.278.613l1.283-2.352a.5.5 0 1 1 .878.478l-1.252 2.295C14.475 7.266 16 9.477 16 12H0c0-2.523 1.525-4.734 3.813-5.966L2.56 3.74a.5.5 0 0 1 .2-.678ZM5 10a1 1 0 1 0 0-2 1 1 0 0 0 0 2m6 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2"/>
|
||||
</svg>
|
||||
<span className="text-sm font-medium">Android - تحميل APK</span>
|
||||
<span className="text-sm font-medium">{t("android")} - {t("downloadAPK")}</span>
|
||||
</a>
|
||||
<div className="flex items-center gap-2 px-3 py-2 rounded-md text-gray-400 cursor-not-allowed opacity-50">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
|
||||
<path d="M11.182.008C11.148-.03 9.923.023 8.857 1.18c-1.066 1.156-.902 2.482-.878 2.516.024.034 1.52.087 2.475-1.258.955-1.345.762-2.391.728-2.43Zm3.314 11.733c-.048-.096-2.325-1.234-2.113-3.422.212-2.189 1.675-2.789 1.698-2.854.023-.065-.597-.79-1.254-1.157a3.692 3.692 0 0 0-1.563-.434c-.108-.003-.483-.095-1.254.116-.508.139-1.653.589-1.968.607-.316.018-1.256-.522-2.267-.665-.647-.125-1.333.131-1.824.328-.49.196-1.422.754-2.074 2.237-.652 1.482-.311 3.83-.067 4.56.244.729.625 1.924 1.273 2.796.576.984 1.34 1.667 1.659 1.899.319.232 1.219.385 1.843.067.502-.308 1.408-.485 1.766-.472.357.013 1.061.154 1.782.539.571.197 1.111.115 1.652-.105.541-.221 1.324-1.059 2.238-2.758.347-.79.505-1.217.473-1.282Z"/>
|
||||
</svg>
|
||||
<span className="text-sm">iOS - قريباً</span>
|
||||
<span className="text-sm">{t("ios")} - {t("comingSoon")}</span>
|
||||
</div>
|
||||
<div className={`border-t my-2 ${isHomePage ? "border-white/10" : "border-gray-200"}`}></div>
|
||||
|
||||
@ -665,7 +659,7 @@ export default function ClientLayout({ children }) {
|
||||
>
|
||||
<span className="flex items-center gap-2">
|
||||
<Building className="w-4 h-4" />
|
||||
عقاراتي
|
||||
{t("myProperties")}
|
||||
</span>
|
||||
</MobileNavLink>
|
||||
<MobileNavLink light={isHomePage}
|
||||
@ -674,7 +668,7 @@ export default function ClientLayout({ children }) {
|
||||
>
|
||||
<span className="flex items-center gap-2">
|
||||
<Calendar className="w-4 h-4" />
|
||||
الحجوزات
|
||||
{t("reservations")}
|
||||
</span>
|
||||
</MobileNavLink>
|
||||
<MobileNavLink light={isHomePage}
|
||||
@ -683,7 +677,7 @@ export default function ClientLayout({ children }) {
|
||||
>
|
||||
<span className="flex items-center gap-2">
|
||||
<CalendarDays className="w-4 h-4" />
|
||||
التقويم
|
||||
{t("calendar")}
|
||||
</span>
|
||||
</MobileNavLink>
|
||||
<MobileNavLink light={isHomePage}
|
||||
@ -692,7 +686,7 @@ export default function ClientLayout({ children }) {
|
||||
>
|
||||
<span className="flex items-center gap-2">
|
||||
<TrendingUp className="w-4 h-4" />
|
||||
الأرباح
|
||||
{t("profits")}
|
||||
</span>
|
||||
</MobileNavLink>
|
||||
</>
|
||||
@ -704,7 +698,7 @@ export default function ClientLayout({ children }) {
|
||||
<MobileNavLink light={isHomePage} href="/login" onClick={closeMobileMenu}>
|
||||
<span className="flex items-center gap-2">
|
||||
<LogIn className="w-4 h-4" />
|
||||
تسجيل الدخول
|
||||
{t("login")}
|
||||
</span>
|
||||
</MobileNavLink>
|
||||
<MobileNavLink light={isHomePage}
|
||||
@ -713,7 +707,7 @@ export default function ClientLayout({ children }) {
|
||||
>
|
||||
<span className="flex items-center gap-2">
|
||||
<UserPlus className="w-4 h-4" />
|
||||
إنشاء حساب
|
||||
{t("createAccount")}
|
||||
</span>
|
||||
</MobileNavLink>
|
||||
</>
|
||||
@ -740,18 +734,18 @@ export default function ClientLayout({ children }) {
|
||||
<main
|
||||
className={`${!isAuthPage && !isProfilePage && !isAuthenticated ? "pt-20" : ""} flex-1 flex flex-col ${isHomePage ? "bg-transparent" : "bg-gray-50"} ${currentLanguage === "ar" ? "text-right" : "text-left"} ${isHomePage ? "relative" : ""} ${isAuthenticated && !isAuthPage ? "pb-20" : ""}`}
|
||||
>
|
||||
{!isAuthPage && (
|
||||
{!isAuthPage && isAuthenticated && (
|
||||
<div className={`flex items-center justify-between px-4 py-2 sticky top-0 z-20 bg-transparent backdrop-blur-3xl ${isHomePage ? "" : "border-b border-gray-200/20"}`}>
|
||||
<div className="flex items-center gap-2">
|
||||
<span className={`text-sm font-semibold px-3 py-1 rounded-lg ${!isAuthenticated ? (isHomePage ? 'bg-white/20 text-white' : 'bg-gray-200 text-gray-600') : isOwner ? (isHomePage ? 'bg-amber-500/30 text-amber-200' : 'bg-amber-100 text-amber-700') : (isHomePage ? 'bg-blue-500/30 text-blue-200' : 'bg-blue-100 text-blue-700')}`}>
|
||||
{!isAuthenticated ? 'زائر' : isOwner ? 'مالك' : 'عميل'}
|
||||
{!isAuthenticated ? t('visitor') : isOwner ? t('owner') : t('customer')}
|
||||
</span>
|
||||
</div>
|
||||
<div className="flex items-center gap-3">
|
||||
<Link href="/favorites" className={`relative group flex items-center justify-center w-9 h-9 rounded-full transition-colors hover:bg-white/10 ${pathname === '/favorites' ? 'text-amber-400' : 'nav-icon'}`}>
|
||||
<Heart className="w-5 h-5" />
|
||||
<div className="absolute -bottom-8 left-1/2 -translate-x-1/2 bg-gray-800 text-white text-xs rounded-lg px-2 py-1 opacity-0 group-hover:opacity-100 transition-opacity whitespace-nowrap pointer-events-none shadow-lg">
|
||||
المفضلة
|
||||
{t("favorites")}
|
||||
</div>
|
||||
</Link>
|
||||
<Link href="/notifications" className={`relative group flex items-center justify-center w-9 h-9 rounded-full transition-colors hover:bg-white/10 ${pathname === '/notifications' ? 'text-amber-400' : 'nav-icon'}`}>
|
||||
@ -762,19 +756,25 @@ export default function ClientLayout({ children }) {
|
||||
</div>
|
||||
)}
|
||||
<div className="absolute -bottom-8 left-1/2 -translate-x-1/2 bg-gray-800 text-white text-xs rounded-lg px-2 py-1 opacity-0 group-hover:opacity-100 transition-opacity whitespace-nowrap pointer-events-none shadow-lg">
|
||||
الإشعارات
|
||||
{t("notifications")}
|
||||
</div>
|
||||
</Link>
|
||||
<Link href="/settings" className={`relative group flex items-center justify-center w-9 h-9 rounded-full transition-colors hover:bg-white/10 ${pathname === '/settings' ? 'text-amber-400' : 'nav-icon'}`}>
|
||||
<Settings className="w-5 h-5" />
|
||||
<div className="absolute -bottom-8 left-1/2 -translate-x-1/2 bg-gray-800 text-white text-xs rounded-lg px-2 py-1 opacity-0 group-hover:opacity-100 transition-opacity whitespace-nowrap pointer-events-none shadow-lg">
|
||||
الإعدادات
|
||||
{t("settings")}
|
||||
</div>
|
||||
</Link>
|
||||
<button onClick={toggleTheme} className="relative group flex items-center justify-center w-9 h-9 rounded-full transition-colors hover:bg-white/10 nav-icon">
|
||||
{theme === 'dark' ? <Sun className="w-5 h-5" /> : <Moon className="w-5 h-5" />}
|
||||
<div className="absolute -bottom-8 left-1/2 -translate-x-1/2 bg-gray-800 text-white text-xs rounded-lg px-2 py-1 opacity-0 group-hover:opacity-100 transition-opacity whitespace-nowrap pointer-events-none shadow-lg">
|
||||
{theme === 'dark' ? 'وضع نهاري' : 'وضع ليلي'}
|
||||
{theme === 'dark' ? t('lightMode') : t('darkMode')}
|
||||
</div>
|
||||
</button>
|
||||
<button onClick={() => changeLanguage(currentLanguage === 'ar' ? 'en' : 'ar')} className="relative group flex items-center justify-center w-9 h-9 rounded-full transition-colors hover:bg-white/10 nav-icon">
|
||||
<Globe className="w-5 h-5" />
|
||||
<div className="absolute -bottom-8 left-1/2 -translate-x-1/2 bg-gray-800 text-white text-xs rounded-lg px-2 py-1 opacity-0 group-hover:opacity-100 transition-opacity whitespace-nowrap pointer-events-none shadow-lg">
|
||||
{currentLanguage === 'ar' ? t('switchToEnglish') : t('switchToArabic')}
|
||||
</div>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user