Added bottom navbar

This commit is contained in:
Rahaf
2026-06-04 22:54:34 +03:00
parent d11f105dfc
commit 9fdeadaa61
2 changed files with 71 additions and 11 deletions

View File

@ -7,7 +7,7 @@ import Image from "next/image";
import { NavLink, MobileNavLink } from "./components/NavLinks";
import { FavoritesProvider } from '@/app/contexts/FavoritesContext';
import { NotificationsProvider } from '@/app/contexts/NotificationsContext';
import FloatingSidebar from '@/app/components/FloatingSidebar';
import BottomNav from './components/BottomNav';
import {
Globe,
LogIn,
@ -162,7 +162,7 @@ export default function ClientLayout({ children }) {
return (
<>
{!isAuthPage && (
{!isAuthPage && !isAuthenticated && (
<nav className="fixed top-0 left-0 right-0 bg-white/95 backdrop-blur-sm border-b border-gray-200 z-50 transition-all duration-300 shadow-sm">
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div
@ -806,16 +806,19 @@ export default function ClientLayout({ children }) {
</nav>
)}
<main
className={`${!isAuthPage && !isProfilePage ? "pt-20" : ""} min-h-screen bg-gradient-to-b from-gray-50 to-white ${currentLanguage === "ar" ? "text-right" : "text-left"}`}
>
<NotificationsProvider>
<FavoritesProvider>
<NotificationsProvider>
<FavoritesProvider>
<main
className={`${!isAuthPage && !isProfilePage && !isAuthenticated ? "pt-20" : ""} min-h-screen bg-gradient-to-b from-gray-50 to-white ${currentLanguage === "ar" ? "text-right" : "text-left"}`}
>
{children}
<FloatingSidebar isRTL={currentLanguage === 'ar'} isAdmin={isAdmin} />
</FavoritesProvider>
</NotificationsProvider>
</main>
</main>
{isAuthenticated && !isAuthPage && (
<BottomNav isOwner={isOwner} />
)}
</FavoritesProvider>
</NotificationsProvider>
{!isAuthPage && !isProfilePage && (
<footer className="bg-gray-900 text-white py-12">