Skip to content

Commit

Permalink
settings: router
Browse files Browse the repository at this point in the history
  • Loading branch information
0seo8 committed Sep 15, 2022
1 parent 520b345 commit 08c23a1
Show file tree
Hide file tree
Showing 16 changed files with 166 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.env
# Logs
logs
*.log
Expand Down
59 changes: 59 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-redux": "^8.0.2",
"react-router-dom": "^6.4.0",
"swiper": "^8.4.0",
"vite-plugin-svgr": "^2.2.1"
},
Expand Down
24 changes: 23 additions & 1 deletion src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
import { Link, Route, Routes } from 'react-router-dom'
import Home from './pages/Home/Home'
import Like from './pages/Like'
import Onul from './pages/Onul'
import Login from './pages/Login'
import Cart from './pages/Cart'
import MyPage from './pages/MyPage'
import SignIn from './pages/SignIn'

function App() {
return <div className="p-4 text-black text-2xl ">Hello</div>
return (
<>
<Routes>
<Route path="/" element={<Home />} />
<Route path="/category" element={<Home />} />
<Route path="/onul" element={<Onul />} />
<Route path="/like" element={<Like />} />
<Route path="/my" element={<MyPage />} />
<Route path="/login" element={<Login />} />
<Route path="/signin" element={<SignIn />} />
<Route path="/cart" element={<Cart />} />
</Routes>
</>
)
}

export default App
7 changes: 5 additions & 2 deletions src/main.jsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import React from 'react'
import ReactDOM from 'react-dom/client'
import { BrowserRouter } from 'react-router-dom'
import App from './App'
import './index.css'

ReactDOM.createRoot(document.getElementById('root')).render(
<React.StrictMode>
<App />
</React.StrictMode>
<BrowserRouter>
<App />
</BrowserRouter>
</React.StrictMode>,
)
7 changes: 7 additions & 0 deletions src/pages/Cart.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import React from 'react'

const Cart = () => {
return <div>Cart</div>
}

export default Cart
7 changes: 7 additions & 0 deletions src/pages/Home/Home.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import React from 'react'

const Home = () => {
return <div>Home</div>
}

export default Home
7 changes: 7 additions & 0 deletions src/pages/Like.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import React from 'react'

const Like = () => {
return <div>Like</div>
}

export default Like
7 changes: 7 additions & 0 deletions src/pages/Login.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import React from 'react'

const Login = () => {
return <div>Login</div>
}

export default Login
7 changes: 7 additions & 0 deletions src/pages/MyPage.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import React from 'react'

const MyPage = () => {
return <div>MyPage</div>
}

export default MyPage
7 changes: 7 additions & 0 deletions src/pages/Onul.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import React from 'react'

const Onul = () => {
return <div>Onul</div>
}

export default Onul
7 changes: 7 additions & 0 deletions src/pages/Order.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import React from 'react'

const Order = () => {
return <div>Order</div>
}

export default Order
7 changes: 7 additions & 0 deletions src/pages/Prdoucts/ProductDetail.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import React from 'react'

const ProductDetail = () => {
return <div>ProductDetail</div>
}

export default ProductDetail
7 changes: 7 additions & 0 deletions src/pages/Prdoucts/ProductList.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import React from 'react'

const ProductList = () => {
return <div>ProductList</div>
}

export default ProductList
7 changes: 7 additions & 0 deletions src/pages/Search.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import React from 'react'

const Search = () => {
return <div>Search</div>
}

export default Search
7 changes: 7 additions & 0 deletions src/pages/SignIn.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import React from 'react'

const SignIn = () => {
return <div>SignIn</div>
}

export default SignIn

0 comments on commit 08c23a1

Please sign in to comment.