From 984a9da2f40e121ebba4a247e2c56c9691e28810 Mon Sep 17 00:00:00 2001 From: RimmaBuzuluk Date: Tue, 17 Sep 2024 13:11:44 +0300 Subject: [PATCH 1/3] add cart layout --- src/App.tsx | 7 +- src/components/Header/Header.scss | 36 ++++-- src/components/Header/Header.tsx | 22 +++- .../Header/NavHeader/NavHeader.scss | 2 +- src/img/arrowActive/ArrowLeft.png | Bin 215 -> 309 bytes src/img/imageIphone.png | Bin 0 -> 16783 bytes src/pages/CartPage/CartItem/CartItem.scss | 80 ++++++++++++++ src/pages/CartPage/CartItem/CartItem.tsx | 34 ++++++ src/pages/CartPage/CartPage.scss | 78 +++++++++++++ src/pages/CartPage/CartPage.tsx | 103 +++++++++++++++++- src/pages/MainPage/MainPage.tsx | 4 +- src/pages/NotFoundPage/NotFoundPage.scss | 4 +- src/styles/base/buttons.scss | 9 ++ src/styles/main.scss | 4 + src/styles/utils/_mixins.scss | 82 ++++++++++---- src/styles/utils/_variables.scss | 2 +- src/type/Cart.ts | 7 ++ 17 files changed, 430 insertions(+), 44 deletions(-) create mode 100644 src/img/imageIphone.png create mode 100644 src/pages/CartPage/CartItem/CartItem.scss create mode 100644 src/pages/CartPage/CartItem/CartItem.tsx create mode 100644 src/pages/CartPage/CartPage.scss create mode 100644 src/styles/base/buttons.scss create mode 100644 src/type/Cart.ts diff --git a/src/App.tsx b/src/App.tsx index e035bc7..e2cf031 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,13 +1,13 @@ import { Header } from './components/Header'; import { Footer } from './components/Footer'; import { Navigate, Route, Routes } from 'react-router-dom'; -import { MainPage } from './pages/MainPage'; + import { PhonesPage } from './pages/PhonesPage/PhonesPage'; import { TabletsPage } from './pages/TabletspPage/TabletsPage'; import { AccessoriesPage } from './pages/AccessoriesPage/AccessoriesPage'; import { NotFoundPage } from './pages/NotFoundPage'; import { CartPage } from './pages/CartPage/CartPage'; -// import { MainPage } from './pages/MainPage'; +import { MainPage } from './pages/MainPage'; export const App = () => { return ( @@ -22,6 +22,9 @@ export const App = () => { } /> } /> } /> + {/* }> + } /> + */}