diff --git a/.env b/.env new file mode 100644 index 00000000..49d2ddb9 --- /dev/null +++ b/.env @@ -0,0 +1,3 @@ +NODE_ENV=development +PORT=5000 +MONGO_URI=mongodb://localhost:27017/ \ No newline at end of file diff --git a/client/public/bg.png b/client/public/bg.png new file mode 100644 index 00000000..4ad073d8 Binary files /dev/null and b/client/public/bg.png differ diff --git a/client/src/asset/brand/logo.png b/client/public/logo.png similarity index 100% rename from client/src/asset/brand/logo.png rename to client/public/logo.png diff --git a/client/src/app/App.js b/client/src/app/App.js index de73873c..a69bee9c 100644 --- a/client/src/app/App.js +++ b/client/src/app/App.js @@ -1,6 +1,5 @@ -import { BrowserRouter as Router, Route, Routes } from 'react-router-dom'; +import { BrowserRouter as Router, Route, Routes, useLocation } from 'react-router-dom'; import { useState, useEffect } from "react"; - import Loader from "../components/Loader/loader.js"; import './App.css'; import 'bootstrap/dist/css/bootstrap.min.css'; @@ -19,7 +18,10 @@ import Login from '../components/Authentication/Login/Login'; import Register from '../components/Authentication/Register/Register'; import Wishlist from '../components/Wishlist'; import WishItemsProvider from '../Context/WishItemsProvider'; +<<<<<<< HEAD +======= // import Checkout from '../components/Checkout/Checkout'; +>>>>>>> upstream/main import SearchProvider from '../Context/SearchProvider'; import Toaster from '../components/Toaster/toaster'; import { ThemeProvider } from '../Context/ThemeContext'; @@ -31,8 +33,77 @@ import ShippingPage from '../Pages/Footer/Shipping/Shipping.js'; import TermsConditions from '../components/Legal/TermsConditions/TermsConditions'; import PrivacyPolicy from '../components/Legal/PrivacyPolicy/PrivacyPolicy'; +<<<<<<< HEAD +// Minimal Header for login/register (logo left aligned) +const MinimalHeader = () => ( +
+ {/* Make sure logo.png is in public folder */} + TrendHora Logo +
+); + +function AppContent() { + const location = useLocation(); + + // Detect if we are on login or register page + const isAuthPage = + location.pathname.startsWith("/account/login") || + location.pathname.startsWith("/account/register"); + + return ( +
+ {/* Show minimal header on auth pages, full header elsewhere */} + {isAuthPage ? :
} + +
+ + } /> + + } /> + } /> + } /> + } /> + } /> + + } /> + + } /> + + + + } /> + + + } /> + + + } /> + + + } /> + + + } /> + } /> + } /> + } /> + } /> + } /> + } /> + } /> + } /> + +
+ + {/* Footer visible on all pages */} +
+ ); +} +======= // ✅ Import RecentlyViewedSection import RecentlyViewedSection from '../components/RecentlyViewedSection'; +>>>>>>> upstream/main function App() { const [loading, setLoading] = useState(true); @@ -70,6 +141,9 @@ function App() { +<<<<<<< HEAD + +=======
} /> @@ -105,6 +179,7 @@ function App() {