Skip to content

Commit

Permalink
Merge pull request #2 from wowba/feature-login
Browse files Browse the repository at this point in the history
Feat: 로그인 페이지 라우터 추가
  • Loading branch information
wowba authored Sep 12, 2023
2 parents 069c32e + 8285091 commit 8b0acf1
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 18 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@
</table>

## 커밋 컨벤션
| Feat | 새로운 기능 추가 |
| 명칭 | 의미 |
| --- | --- |
| Feat | 새로운 기능 추가 |
| Fix | 버그 수정 |
| Docs | 문서 수정 |
| Style | 코드 포맷팅, 세미콜론 누락 |
Expand Down
31 changes: 14 additions & 17 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,25 @@ import React from 'react';
import { Routes, Route } from 'react-router-dom';
import './App.css';
import { Layout, Home, About, Dashboard, NoMatch } from "./pages/TestPage/Test"


import Login from './pages/LoginPage/Login';

function App() {
return (
<div className="App">
안녕하세요 wikinity 입니다!
<div>
<Routes>
{/* Route는 아래처럼 중첩 라우팅이 가능합니다! */}
<Route path="/" element={<Layout />}>
<Route index element={<Home />} />
<Route path="about" element={<About />} />
<Route path="dashboard" element={<Dashboard />} />
{/* Using path="*"" means "match anything", so this route
<Routes>
{/* *Route 기초* 추후 삭제 예정 */}
{/* Route는 아래처럼 중첩 라우팅이 가능합니다! */}
<Route path="/" element={<Layout />}>
<Route index element={<Home />} />
<Route path="about" element={<About />} />
<Route path="dashboard" element={<Dashboard />} />
{/* Using path="*"" means "match anything", so this route
acts like a catch-all for URLs that we don't have explicit
routes for. */}
<Route path="*" element={<NoMatch />} />
</Route>
</Routes>
</div>
</div>
<Route path="*" element={<NoMatch />} />
</Route>
{/* *Route 기초* */}
<Route path='/login' element={<Login />} />
</Routes>
);
}

Expand Down
11 changes: 11 additions & 0 deletions src/pages/LoginPage/Login.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import React from "react"

function Login() {
return (
<div>
login
</div>
)
}

export default Login

0 comments on commit 8b0acf1

Please sign in to comment.