├── public ├── robots.txt ├── favicon.ico ├── assets │ └── main.png.jpg └── index.html ├── src ├── redux │ ├── reducer │ │ ├── index.js │ │ └── handleCart.js │ ├── store.js │ └── action │ │ └── index.js ├── components │ ├── index.js │ ├── Footer.jsx │ ├── main.jsx │ ├── Navbar.jsx │ └── Products.jsx ├── pages │ ├── Home.jsx │ ├── Products.jsx │ ├── index.js │ ├── PageNotFound.jsx │ ├── Login.jsx │ ├── ContactPage.jsx │ ├── Register.jsx │ ├── AboutPage.jsx │ ├── Product.jsx │ ├── Cart.jsx │ └── Checkout.jsx └── index.js ├── .gitignore ├── README.md └── package.json /public/robots.txt: -------------------------------------------------------------------------------- 1 | # https://www.robotstxt.org/robotstxt.html 2 | User-agent: * 3 | Disallow: 4 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Crypto27dev/react_eCommerce/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /public/assets/main.png.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Crypto27dev/react_eCommerce/HEAD/public/assets/main.png.jpg -------------------------------------------------------------------------------- /src/redux/reducer/index.js: -------------------------------------------------------------------------------- 1 | import handleCart from './handleCart' 2 | import { combineReducers } from "redux"; 3 | const rootReducers = combineReducers({ 4 | handleCart, 5 | }) 6 | export default rootReducers -------------------------------------------------------------------------------- /src/components/index.js: -------------------------------------------------------------------------------- 1 | export { default as Navbar } from './Navbar'; 2 | export { default as Main } from './main'; 3 | export { default as Product } from './Products'; 4 | export { default as Footer } from './Footer'; -------------------------------------------------------------------------------- /src/redux/store.js: -------------------------------------------------------------------------------- 1 | import {configureStore} from '@reduxjs/toolkit'; 2 | import rootReducers from './reducer'; 3 | const store = configureStore({ 4 | reducer: rootReducers, 5 | 6 | }) 7 | 8 | export default store; 9 | -------------------------------------------------------------------------------- /src/pages/Home.jsx: -------------------------------------------------------------------------------- 1 | import { Navbar, Main, Product, Footer } from "../components"; 2 | 3 | function Home() { 4 | return ( 5 | <> 6 | 7 |
8 | 9 |