Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 54 additions & 7 deletions frontend/src/components/LoginAndSignUpForm.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@
.formContainer {
display: flex;
flex-direction: column;
height: 100%;
justify-content: flex-start;
align-items: center;
justify-content: center;

height: 100%;
padding: 64px 42px;
background: white;
/* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
padding: 42px;
width: 473px;
width: 100%;
box-sizing: border-box;
}

.loginForm {
display: flex;
flex-direction: column;

text-align: center;
}

Expand Down Expand Up @@ -53,8 +53,6 @@
.inputGroup label {
display: block;
margin-bottom: 12px;
font-weight: 500;
color: #555;
color: #000;
font-family: Pretendard;
font-size: 14px;
Expand Down Expand Up @@ -175,3 +173,52 @@
.passwordPolicy li.valid {
color: #28a745;
}

.radioGroup {
margin-bottom: 12px;
text-align: left;
}

.radioGroup label {
display: block;
margin-bottom: 12px;
font-family: Pretendard;
font-size: 14px;
font-style: normal;
font-weight: 400;
line-height: normal;
}

.radioOptions {
display: flex;
background-color: #fff;
width: 100%;
padding: 8px;
border: 1px solid #ccc;
border-radius: 8px;
font-size: 16px;
box-sizing: border-box;
accent-color: #007bff;
}
.radioOptions label {
margin: 6px;
}

.signUpButton {
width: 100%;
padding: 12px;
margin: 40px 0;
background-color: #0e1a2c;
color: white;
border: none;
border-radius: 8px;
font-size: 16px;
font-weight: 600;
cursor: pointer;
transition: background-color 0.3s ease;
}

.signUpButton:disabled {
background-color: #d5d5d5;
cursor: not-allowed;
}
3 changes: 1 addition & 2 deletions frontend/src/components/protectedRoute.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import { useAuth } from '../contexts/AuthContext';
const ProtectedRoute = () => {
const { isLoggedIn, loading } = useAuth();

if (loading) return null; // 또는 로딩 스피너

if (loading) return <div>로딩 중...</div>;
if (!isLoggedIn) {
return <Navigate to="/login" replace />;
}
Expand Down
Loading