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; +}