From 3daa7a52e89163206a5c86292421c4dd006e0812 Mon Sep 17 00:00:00 2001 From: isHardCoded Date: Wed, 9 Jul 2025 22:25:03 +0300 Subject: [PATCH] =?UTF-8?q?=D0=92=D1=8B=D0=BD=D0=B5=D1=81=D0=BB=D0=B8=20?= =?UTF-8?q?=D0=BB=D0=BE=D0=B3=D0=B8=D0=BA=D1=83=20=D0=B8=D0=B7=20=D0=BA?= =?UTF-8?q?=D0=BE=D0=BC=D0=BF=D0=BE=D0=BD=D0=B5=D0=BD=D1=82=D0=B0=20App=20?= =?UTF-8?q?=D0=B2=20Catalog.=20=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB?= =?UTF-8?q?=D0=B8=20=D0=BC=D0=B0=D1=80=D1=88=D1=80=D1=83=D1=82=D0=B8=D0=B7?= =?UTF-8?q?=D0=B0=D1=86=D0=B8=D1=8E=20=D0=B2=20main.jsx?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.jsx | 15 --------------- src/App.module.scss | 6 ------ src/main.jsx | 15 ++++++++++----- src/pages/catalog/index.jsx | 12 +++++++++++- src/pages/catalog/index.module.scss | 4 ++++ 5 files changed, 25 insertions(+), 27 deletions(-) delete mode 100644 src/App.jsx delete mode 100644 src/App.module.scss diff --git a/src/App.jsx b/src/App.jsx deleted file mode 100644 index 410e373..0000000 --- a/src/App.jsx +++ /dev/null @@ -1,15 +0,0 @@ -import styles from './App.module.scss' - -import Header from './components/header' -import ProductList from './components/list' - -const App = () => { - return ( -
-
- -
- ) -} - -export default App diff --git a/src/App.module.scss b/src/App.module.scss deleted file mode 100644 index 28d1a98..0000000 --- a/src/App.module.scss +++ /dev/null @@ -1,6 +0,0 @@ -@use './assets/styles/variables' as *; - -.container { - max-width: 1170px; - margin: 0 auto; -} diff --git a/src/main.jsx b/src/main.jsx index f80c915..ca557b2 100644 --- a/src/main.jsx +++ b/src/main.jsx @@ -1,9 +1,14 @@ -import { StrictMode } from 'react' import { createRoot } from 'react-dom/client' -import App from './App.jsx' +import { BrowserRouter as Router, Routes, Route } from 'react-router-dom' + +import Catalog from './pages/catalog' +import Cart from './pages/cart' createRoot(document.getElementById('root')).render( - - - + + + } /> + } /> + + ) diff --git a/src/pages/catalog/index.jsx b/src/pages/catalog/index.jsx index f865f12..fcd91b4 100644 --- a/src/pages/catalog/index.jsx +++ b/src/pages/catalog/index.jsx @@ -1,5 +1,15 @@ +import styles from './index.module.scss' + +import Header from '../../components/header/index' +import ProductList from '../../components/list/index' + const Catalog = () => { - return <> + return ( +
+
+ +
+ ) } export default Catalog diff --git a/src/pages/catalog/index.module.scss b/src/pages/catalog/index.module.scss index e69de29..3d536a3 100644 --- a/src/pages/catalog/index.module.scss +++ b/src/pages/catalog/index.module.scss @@ -0,0 +1,4 @@ +.container { + max-width: 1170px; + margin: 0 auto; +}