회원가입 추가

This commit is contained in:
SR07 2025-05-26 11:52:37 +09:00
parent ab04b7e19f
commit c18f705286
4 changed files with 16 additions and 3 deletions

BIN
public/guild.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 MiB

View File

@ -4,6 +4,7 @@ import { BrowserRouter as Router, Routes, Route } from 'react-router-dom'
import { useAuth } from './contexts/AuthContext'
import Layout from './components/Layout'
import Home from './pages/Home'
import Signup from './pages/Signup'
import LoginPage from './pages/Login'
import RegisterCharacter from './pages/RegisterCharacter'
import RegisterHomework from './pages/RegisterHomework'
@ -11,7 +12,6 @@ import CharacterList from './pages/CharacterList'
import HomeworkList from './pages/HomeworkList'
import CharacterHomeworkSelect from './pages/CharacterHomeworkSelect' // 정확한 경로로 수정
import Dashboard from './pages/Dashboard'
import Signup from './pages/Signup'
const darkTheme = createTheme({
palette: {
@ -29,6 +29,7 @@ function App() {
<Layout key={isLoggedIn ? 'in' : 'out'}>
<Routes>
<Route path="/" element={<Home />} />
<Route path="/signup" element={<Signup />} />
<Route path="/login" element={<LoginPage />} />
<Route path="/characters/register" element={<RegisterCharacter />} />
<Route path="/characters" element={<CharacterList />} />

View File

@ -65,7 +65,10 @@ export default function Layout({ children }: { children: React.ReactNode }) {
<Button color="inherit" onClick={handleLogout}></Button>
</>
) : (
<Button component={Link} to="/login" color="inherit"></Button>
<>
<Button component={Link} to="/signup" color="inherit"></Button>
<Button component={Link} to="/login" color="inherit"></Button>
</>
)
return (

View File

@ -22,7 +22,16 @@ export default function Home() {
// ✅ 로그인 상태일 때 "컨텐츠 들어갈 자리"만 출력
return (
<Box sx={{ p: 4 }}>
<Typography variant="h5" gutterBottom> </Typography>
<Typography variant="h5" gutterBottom> '노인정' . ?</Typography>
{/* ✅ 이미지 추가 */}
<Box sx={{ mt: 4, textAlign: 'center' }}>
<img
src="/guild.png"
alt="노인정길드"
style={{ maxWidth: '100%', height: 'auto', borderRadius: '16px' }}
/>
</Box>
</Box>
)
}