Skip to content

Commit

Permalink
#21 [chore]: react-youtube 라이브러리 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
hjlee2778 committed Oct 1, 2024
2 parents 5b9723e + 640fd14 commit 9e8aed6
Show file tree
Hide file tree
Showing 14 changed files with 895 additions and 34 deletions.
88 changes: 88 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 @@ -14,6 +14,7 @@
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router-dom": "^6.26.2",
"react-youtube": "^10.1.0",
"styled-components": "^6.1.13"
},
"devDependencies": {
Expand Down
4 changes: 1 addition & 3 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,12 @@ const App = () => {
<Navigation />
</div>
<Container>
{/* 네비게이션 버튼 */}

<Nav>
<NavLink to="/login">로그인</NavLink>
<NavLink to="/signup">회원가입</NavLink>
<NavLink to="/dashboard">대시보드</NavLink>
</Nav>

{/* 페이지 라우팅 */}
<Routes>
<Route path="/" element={<Login />} />
<Route path="/login" element={<Login />} />
Expand Down
Binary file added src/assets/icons/play-button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/icons/stop-button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/icons/youtube-music-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/auth/Login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const Login = () => {
localStorage.setItem('token', token);
localStorage.setItem('user', JSON.stringify(user));
console.log('로그인 성공:', user);
console.log('로그인 성공:', token);
navigate('/dashboard');
} catch (error) {
console.error('로그인 실패:', error);
Expand Down
Loading

0 comments on commit 9e8aed6

Please sign in to comment.