├── src ├── App.css ├── lib │ └── firebase.entities.js ├── index.css ├── Components │ ├── card │ │ └── Card.jsx │ ├── FileInput │ │ └── FileInput.jsx │ ├── TextInput │ │ └── TextInput.jsx │ ├── Button │ │ └── Button.jsx │ ├── ImageActions │ │ └── ImageActions.jsx │ ├── ImageDisplay │ │ └── ImageDisplay.jsx │ ├── InputField │ │ └── InputField.jsx │ ├── ProductListing │ │ ├── components │ │ │ └── product │ │ │ │ └── ProductCard.jsx │ │ └── ProductListing.jsx │ └── Navbar.jsx ├── Pages │ ├── Dashborad │ │ ├── Dashboard.jsx │ │ ├── AddProduct.jsx │ │ └── AddProductForm.jsx │ ├── Home.jsx │ ├── SinglePage │ │ └── SinglePage.jsx │ └── registration │ │ ├── Signup.jsx │ │ └── Login.jsx ├── Router │ ├── protectRoute │ │ ├── DashboardProtect.jsx │ │ └── ProtectedRoute.jsx │ └── NavigationRouter.jsx ├── App.jsx ├── main.jsx ├── Firebase │ └── firebaseConfig.js └── services │ └── products.service.js ├── postcss.config.js ├── vite.config.js ├── tailwind.config.js ├── .gitignore ├── index.html ├── README.md ├── .env ├── .eslintrc.cjs └── package.json /src/App.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/lib/firebase.entities.js: -------------------------------------------------------------------------------- 1 | export const productEntity = 'products' -------------------------------------------------------------------------------- /src/index.css: -------------------------------------------------------------------------------- 1 | @tailwind base; 2 | @tailwind components; 3 | @tailwind utilities; -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- 1 | export default { 2 | plugins: { 3 | tailwindcss: {}, 4 | autoprefixer: {}, 5 | }, 6 | } 7 | -------------------------------------------------------------------------------- /src/Components/card/Card.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | 3 | function Card() { 4 | return ( 5 |
Name: {name}
8 |Price: {price}
9 |{price}
10 | view 11 |{productData[1]}
34 |{productData[2]}
35 |{productData[3]}
36 |{productData[4]}
37 |{productData[5]}
38 | {/* Add other product details rendering here */} 39 |