Skip to content

Commit 440143f

Browse files
authored
Merge pull request #94 from wafflestudio/haram
프론트 QA 사항 수정
2 parents cfa8b4a + 33cd248 commit 440143f

12 files changed

Lines changed: 114 additions & 36 deletions

src/pages/auth/Login/Login.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default function Login() {
2727
try {
2828
await login(email, password);
2929
setCheck(true);
30-
navigate("/auth/complete");
30+
navigate("/main");
3131
} catch {
3232
setCheck(false);
3333
}
@@ -75,7 +75,7 @@ export default function Login() {
7575
<span className={styles.loginSignupText}>
7676
회원가입을 하시겠어요?
7777
</span>
78-
<Link to="/auth/signup" className={styles.loginSignupLink}>
78+
<Link to="/auth/signup" className={styles.loginSignupText}>
7979
회원가입
8080
</Link>
8181
</div>

src/pages/auth/Signup/EmailSignUp.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import axios from "axios";
22
import type React from "react";
33
import { useRef, useState } from "react";
4-
import { useSearchParams } from "react-router-dom";
4+
import { Link, useSearchParams } from "react-router-dom";
55
import { useAuth } from "@contexts/AuthProvider";
66
import CompleteSignUp from "../OnBoarding/CompleteSignUp";
77
import Onboarding from "../OnBoarding/Onboarding";
@@ -165,6 +165,12 @@ export default function EmailSignUp() {
165165
계정 생성
166166
</button>
167167
</form>
168+
<div className={styles.loginLink}>
169+
<p className={styles.loginText}>이미 계정이 있으신가요?</p>
170+
<Link to="/auth/login" className={styles.loginText}>
171+
로그인하러 가기
172+
</Link>
173+
</div>
168174
</div>
169175
</div>
170176
);

src/pages/timetable/TimeTableSidebar.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { useNavigate } from "react-router-dom";
44
import { useAuth } from "../../contexts/AuthProvider";
55
import styles from "../../styles/Sidebar.module.css";
66
import type { PatchTimetableRequest, Timetable } from "../../util/types";
7+
import { SidebarLogoutButton } from "../../widgets/SidebarLogoutButton";
78

89
interface TimeTableSidebarProps {
910
timetables: Timetable[];
@@ -109,6 +110,7 @@ export const TimeTableSidebar = ({
109110
<span className={styles.plus} aria-hidden="true">
110111
+
111112
</span>
113+
<span className={styles.toggleText}>새 시간표 추가</span>
112114
</button>
113115
</div>
114116

@@ -220,6 +222,9 @@ export const TimeTableSidebar = ({
220222
/>
221223
<span>시간표</span>
222224
</button>
225+
<div className={styles.timetableSidebarLogout}>
226+
<SidebarLogoutButton />
227+
</div>
223228
</div>
224229
);
225230
};

src/pages/timetable/TimeTableToolbar.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ const TimeTableToolbar = ({
3131
}: TimeTableToolbarProps) => {
3232
const { user } = useAuth();
3333
const navigate = useNavigate();
34+
const displayTimetableName = timetableName.trim() || "나의 시간표";
3435
const yearOptions =
3536
years ??
3637
Array.from({ length: 7 }, (_, i) => new Date().getFullYear() - 3 + i);
@@ -78,6 +79,7 @@ const TimeTableToolbar = ({
7879
</span>
7980
</div>
8081
<p className={styles.dateTitle}>{timetableName}</p>
82+
<p className={styles.mobileTimetableTitle}>{displayTimetableName}</p>
8183
<div className={styles.timetableToggleGroup}>
8284
<span className={styles.timetableToggleLabel}>행사 함께 보기</span>
8385
<button

src/styles/EmailSignUp.module.css

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@
2222

2323
.header {
2424
text-align: center;
25-
margin-bottom: 22px;
25+
margin-bottom: 54px;
2626
}
2727

2828
.title {
2929
margin: 0;
30-
font-size: 20px;
31-
font-weight: 800;
30+
font-size: 28px;
31+
font-weight: 700;
3232
letter-spacing: -0.03em;
3333
color: #111;
3434
}
@@ -138,3 +138,25 @@
138138
transform: translateY(1px);
139139
box-shadow: 0 7px 16px rgba(0, 0, 0, 0.12);
140140
}
141+
142+
143+
.loginLink {
144+
display: flex;
145+
align-items: center;
146+
gap: 8px;
147+
margin-top: 24px;
148+
}
149+
.loginText {
150+
margin: 0;
151+
border: 0;
152+
background: transparent;
153+
color: #8a8a8a;
154+
font-size: 14px;
155+
font-weight: 500;
156+
cursor: pointer;
157+
}
158+
159+
.loginText:active {
160+
color: #666666;
161+
text-decoration: underline;
162+
}

src/styles/Login.module.css

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
/* 타이틀 */
2626
.loginTitle {
27-
margin: 0 0 28px;
27+
margin: 0 0 54px;
2828
font-size: 28px;
2929
font-weight: 700;
3030
letter-spacing: -0.02em;
@@ -99,23 +99,23 @@
9999

100100
/* 회원가입 안내 */
101101
.loginSignup {
102-
margin-top: 10px;
103102
display: flex;
104-
gap: 8px;
105103
align-items: center;
106-
justify-content: center;
104+
gap: 8px;
105+
margin-top: 24px;
107106
}
108107

109108
.loginSignupText {
110-
font-size: 12px;
111-
color: #777;
109+
margin: 0;
110+
border: 0;
111+
background: transparent;
112+
color: #8a8a8a;
113+
font-size: 14px;
114+
font-weight: 500;
115+
cursor: pointer;
112116
}
113117

114-
.loginSignupLink {
115-
font-size: 12px;
116-
font-weight: 600;
117-
color: #000;
118-
cursor: pointer;
119-
text-decoration: underline;
120-
text-underline-offset: 3px;
118+
.loginSignupText:active {
119+
color: #666666;
120+
text-decoration: underline;
121121
}

src/styles/Sidebar.module.css

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,14 +168,14 @@ body::-webkit-scrollbar {
168168
}
169169

170170
.iconBtn {
171-
width: 30px;
171+
width: 100%;
172172
height: 30px;
173-
border-radius: 10px;
174173
border: 0;
175174
background: transparent;
176175
cursor: pointer;
177-
display: grid;
178-
place-items: center;
176+
display: flex;
177+
place-items: left;
178+
gap: 10px;
179179
}
180180

181181
.iconBtn:hover {
@@ -573,6 +573,10 @@ body::-webkit-scrollbar {
573573
cursor: pointer;
574574
}
575575

576+
.timetableSidebarLogout {
577+
margin-top: auto;
578+
}
579+
576580
@media (max-width: 992px) {
577581
.sidebarContainer {
578582
width: 220px;

src/styles/Toolbar.module.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@
109109
padding-left: 5px;
110110
}
111111

112+
.mobileTimetableTitle {
113+
display: none;
114+
}
115+
112116
.navBtnGroup {
113117
display: flex;
114118
align-items: center;
@@ -370,11 +374,17 @@
370374
display: none;
371375
}
372376
.timetableToolbarContainer .dateTitle {
377+
display: none;
378+
}
379+
.timetableToolbarContainer .mobileTimetableTitle {
380+
display: block;
373381
min-width: 0;
382+
margin: 0;
374383
padding-left: 0;
375384
overflow: hidden;
376385
font-size: 18px;
377386
font-weight: 700;
387+
color: #111827;
378388
line-height: 1.25;
379389
text-overflow: ellipsis;
380390
white-space: nowrap;

src/styles/WeekGrid.module.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,3 +190,12 @@
190190
color: #333;
191191
opacity: 0.85;
192192
}
193+
194+
.blockLocation {
195+
overflow: hidden;
196+
text-overflow: ellipsis;
197+
white-space: nowrap;
198+
font-size: 11px;
199+
color: #333;
200+
opacity: 0.85;
201+
}

src/widgets/Sidebar.tsx

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import type { Category } from "@types";
1414
import { useUserData } from "@/contexts/UserDataContext";
1515
import { IoIosClose } from "react-icons/io";
1616
import { CATEGORY_BUTTON_COLORS } from "@/util/constants";
17+
import { SidebarLogoutButton } from "./SidebarLogoutButton";
1718

1819
export const Sidebar = () => {
1920
type FilterType = "status" | "org" | "category";
@@ -26,7 +27,7 @@ export const Sidebar = () => {
2627
globalSetter: React.Dispatch<React.SetStateAction<Category[]>>;
2728
}
2829

29-
const { user, logout } = useAuth();
30+
const { user } = useAuth();
3031
const { excludedKeywords, addExcludedKeyword, deleteExcludedKeyword, excludedKeywordLoading } =
3132
useUserData();
3233
const { categoryGroups, isLoadingMeta } = useFilter();
@@ -366,18 +367,7 @@ export const Sidebar = () => {
366367
/>
367368
<span>시간표</span>
368369
</button>
369-
{user && (
370-
<button
371-
type="button"
372-
onClick={() => {
373-
logout();
374-
ref?.current?.scrollTo(0, 0);
375-
}}
376-
className={styles.logout}
377-
>
378-
로그아웃
379-
</button>
380-
)}
370+
<SidebarLogoutButton onLogout={() => ref.current?.scrollTo(0, 0)} />
381371
</div>
382372
);
383373
};

0 commit comments

Comments
 (0)