├── .firebaserc ├── public ├── favicon.ico ├── logo192.png ├── logo512.png ├── robots.txt ├── assets │ └── carosel2 copy.jpg ├── manifest.json └── index.html ├── src ├── assets │ ├── crown.png │ ├── google.png │ ├── carosel1.jpg │ ├── carosel2.jpg │ ├── carousel.jpg │ └── searchIcon.png ├── components │ ├── UI │ │ ├── Spinner.js │ │ ├── Card.js │ │ ├── Spinner.css │ │ └── Card.css │ ├── Main │ │ ├── MainShops.css │ │ ├── MainShop.js │ │ ├── MainShop.css │ │ ├── Main.css │ │ ├── MainProduct.js │ │ ├── MainProduct.css │ │ ├── PopularProduct.js │ │ ├── PopularProducts.css │ │ ├── Carousel.js │ │ ├── Main.js │ │ ├── PopularProduct.css │ │ ├── MainShops.js │ │ ├── MainProducts.js │ │ └── PopularProducts.js │ ├── Comment │ │ ├── Comments.css │ │ ├── Comment.js │ │ ├── Comment.css │ │ ├── AddComment.css │ │ ├── AddComment.js │ │ └── Comments.js │ ├── Header │ │ ├── Orders │ │ │ ├── Orders.js │ │ │ ├── OrderDetail.js │ │ │ ├── OrderShow.js │ │ │ ├── Orders.css │ │ │ ├── OrderShow.css │ │ │ ├── OrdersDetail.css │ │ │ ├── OrderDetail.css │ │ │ ├── OrdersDetail.js │ │ │ ├── OrdersShow.js │ │ │ └── OrdersShow.css │ │ ├── Cart │ │ │ ├── CartButton.js │ │ │ ├── CartButton.css │ │ │ ├── CartInfo.js │ │ │ ├── Cart.css │ │ │ ├── Cart.js │ │ │ └── CartInfo.css │ │ ├── Account │ │ │ ├── Account.js │ │ │ └── Account.css │ │ ├── Header.css │ │ ├── Header.js │ │ └── Searchbar │ │ │ ├── Searchbar.css │ │ │ └── Searchbar.js │ └── Footer │ │ ├── Footer.css │ │ └── Footer.js ├── store │ ├── orderSlice.js │ ├── AuthContext │ │ ├── authContext.js │ │ └── reducer.js │ ├── index.js │ ├── uiSlice.js │ ├── productApiSlice.js │ └── cartSlice.js ├── App.css ├── reportWebVitals.js ├── index.css ├── pages │ ├── Payment │ │ ├── PaymentProduct.js │ │ ├── PaymentProduct.css │ │ ├── PaymentRight.js │ │ ├── PaymentRight.css │ │ ├── Payment.css │ │ └── Payment.js │ ├── Product │ │ ├── Product.js │ │ ├── Product.css │ │ ├── ProductDetail.js │ │ ├── Products.js │ │ └── ProductDetail.css │ └── Login │ │ ├── Login.css │ │ └── Login.js ├── firebase.js ├── index.js └── App.js ├── firebase.json ├── .gitignore ├── package.json ├── .firebase └── hosting.YnVpbGQ.cache └── README.md /.firebaserc: -------------------------------------------------------------------------------- 1 | { 2 | "projects": { 3 | "default": "e-commerce-e76f2" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MertCankaya/e-commerce/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /public/logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MertCankaya/e-commerce/HEAD/public/logo192.png -------------------------------------------------------------------------------- /public/logo512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MertCankaya/e-commerce/HEAD/public/logo512.png -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | # https://www.robotstxt.org/robotstxt.html 2 | User-agent: * 3 | Disallow: 4 | -------------------------------------------------------------------------------- /src/assets/crown.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MertCankaya/e-commerce/HEAD/src/assets/crown.png -------------------------------------------------------------------------------- /src/assets/google.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MertCankaya/e-commerce/HEAD/src/assets/google.png -------------------------------------------------------------------------------- /src/assets/carosel1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MertCankaya/e-commerce/HEAD/src/assets/carosel1.jpg -------------------------------------------------------------------------------- /src/assets/carosel2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MertCankaya/e-commerce/HEAD/src/assets/carosel2.jpg -------------------------------------------------------------------------------- /src/assets/carousel.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MertCankaya/e-commerce/HEAD/src/assets/carousel.jpg -------------------------------------------------------------------------------- /src/assets/searchIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MertCankaya/e-commerce/HEAD/src/assets/searchIcon.png -------------------------------------------------------------------------------- /public/assets/carosel2 copy.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MertCankaya/e-commerce/HEAD/public/assets/carosel2 copy.jpg -------------------------------------------------------------------------------- /src/components/UI/Spinner.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import "./Spinner.css" 3 | 4 | const Spinner = () => { 5 | return
; 6 | }; 7 | 8 | export default Spinner; 9 | -------------------------------------------------------------------------------- /src/components/Main/MainShops.css: -------------------------------------------------------------------------------- 1 | .mainShops{ 2 | width: 100%; 3 | } 4 | 5 | .mainShops__container { 6 | display: flex; 7 | justify-content: space-between; 8 | margin: 1.2rem 0; 9 | 10 | } 11 | -------------------------------------------------------------------------------- /src/components/UI/Card.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import "./Card.css"; 3 | 4 | const Card = (props) => { 5 | returnItems ({totalItem}):
15 |{allItemsPrice}
16 |Shipping:
19 |USD {shipping === "standard" ? "$0.00" : "$15.99"}
20 |Discount:
24 |USD $15
25 |Something went wrong
44 | )} 45 | {data && ( 46 |Your Products
44 | )} 45 | {cartItems.length === 0 &&there isnt
} 46 | {cartItems.map((item) => ( 47 |