Skip to content

Commit bbc969c

Browse files
authored
Merge pull request #187 from part3-4team-Taskify/minji
[Refactor, Style] mypage, edit: 뒤로가기 버튼 분리, 여백 통일 / landing: 반응형 디자인 일부 수정
2 parents 9defe69 + e3d0120 commit bbc969c

File tree

15 files changed

+71
-88
lines changed

15 files changed

+71
-88
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import React from "react";
2+
import Image from "next/image";
3+
4+
const BackButton = () => {
5+
return (
6+
<div className="flex gap-[8px]">
7+
<Image
8+
onClick={() => history.back()}
9+
src="/svgs/arrow-backward-black.svg"
10+
alt="돌아가기"
11+
width={20}
12+
height={20}
13+
className="cursor-pointer"
14+
/>
15+
<button
16+
onClick={() => history.back()}
17+
className="flex justify-start text-black3 text-[14px] sm:text-[16px] font-medium cursor-pointer"
18+
>
19+
돌아가기
20+
</button>
21+
</div>
22+
);
23+
};
24+
25+
export default BackButton;

src/components/card/ChangePassword.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export default function ChangePassword() {
4949

5050
return (
5151
<div
52-
className="flex flex-col w-[284px] sm:w-[548px] md:w-[672px] min:h-[454px] sm:min-h-[466px]
52+
className="flex flex-col w-[284px] sm:w-[544px] lg:w-[620px] min:h-[454px] sm:min-h-[466px]
5353
bg-white rounded-[16px] p-[24px]"
5454
>
5555
<h2 className="text-black3 text-[18px] sm:text-[24px] font-bold mb-4">

src/components/card/Profile.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export default function ProfileCard() {
7676
}, []);
7777

7878
return (
79-
<div className="flex flex-col w-[284px] sm:w-[548px] md:w-[672px] h-[496px] sm:h-[366px] bg-white rounded-[16px] p-[24px]">
79+
<div className="flex flex-col w-[284px] sm:w-[544px] lg:w-[620px] h-[496px] sm:h-[366px] bg-white rounded-[16px] p-[24px]">
8080
{/* 프로필 제목 */}
8181
<h2 className="text-black3 text-[18px] sm:text-[24px] font-bold mb-4">
8282
프로필
@@ -109,7 +109,7 @@ export default function ProfileCard() {
109109
</div>
110110

111111
{/* 입력 폼 */}
112-
<div className="flex flex-col sm:ml-[-15px] sm:mt-0 mt-5 w-[252px] sm:w-[276px] md:w-[400px] gap-4">
112+
<div className="flex flex-col sm:ml-[-15px] sm:mt-0 mt-5 w-[252px] sm:w-[272px] lg:w-[348px] gap-4">
113113
<Input
114114
type="email"
115115
name="email"
@@ -129,7 +129,7 @@ export default function ProfileCard() {
129129
className="text-black4"
130130
/>
131131
<button
132-
className="cursor-pointer w-[252px] sm:w-[276px] md:w-[400px] h-[54px] bg-[var(--primary)] text-white rounded-[8px] text-lg font-medium mt-3"
132+
className="cursor-pointer w-[252px] sm:w-[272px] lg:w-[348px] h-[54px] bg-[var(--primary)] text-white rounded-[8px] text-lg font-medium mt-3"
133133
onClick={handleSave}
134134
>
135135
저장

src/components/landing/LandingMain.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default function LandingMain() {
99
<Section1 />
1010

1111
{/* Section2와 Section3 영역 */}
12-
<div className="mt-[184px] mb-[160px] w-full max-w-[1200px] flex flex-col items-center">
12+
<div className="md:mt-[180px] mt-[80px] md:mb-[160px] mb-[80px] w-full max-w-[1200px] flex flex-col items-center">
1313
{/* Section2: 우선순위 & 해야 할 일 등록 */}
1414
<Section2 />
1515

src/components/landing/Section1.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ export default function Section1() {
3232
</div>
3333

3434
{/* 메인 타이틀 */}
35-
<div className="mt-[48px] sm:mt-[26px]">
36-
<span className="text-[56px] font-bold leading-[72px] tracking-[-2px] sm:text-[40px] sm:leading-[48px]">
35+
<div className="mt-[26px] sm:mt-[60px] text-center">
36+
<span className="text-[40px] sm:text-[56px] md:text-[76px] font-bold leading-[48px] sm:leading-[72px] tracking-[-2px]">
3737
새로운 일정 관리{" "}
3838
</span>
39-
<span className="text-[70px] font-bold leading-[70px] tracking-[-1px] text-[var(--primary)] sm:text-[42px] sm:leading-[51px]">
39+
<span className="text-[42px] sm:text-[70px] md:text-[90px] font-bold leading-[51px] sm:leading-[70px] tracking-[-1px] text-[var(--primary)]">
4040
Taskify
4141
</span>
4242
</div>

src/components/landing/Section2.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import Image from "next/image";
22

33
export default function Section2() {
44
return (
5-
<section className="flex flex-col items-center w-full px-4 gap-[80px]">
5+
<section className="flex flex-col items-center w-full px-4 sm:gap-[80px] gap-[60px]">
66
{/* 카드 1 */}
7-
<div className="w-full max-w-[1200px] h-[600px] bg-[var(--color-black3)] rounded-lg relative flex flex-col md:flex-row gap-[40px] overflow-hidden">
7+
<div className="w-full max-w-[1200px] h-[600px] bg-[var(--color-black2)] rounded-lg relative flex flex-col md:flex-row gap-[40px] overflow-hidden">
88
{/* 텍스트 왼쪽 */}
99
<div className="w-full md:w-1/2 flex flex-col justify-center px-[40px] text-center md:text-left z-10">
10-
<p className="text-[16px] md:text-[22px] text-[var(--color-gray3)] mb-[40px] md:mb-[100px]">
10+
<p className="text-[16px] md:text-[22px] text-[var(--color-gray2)] mb-[40px] md:mb-[100px] md:mt-0 mt-[50px]">
1111
Point 1
1212
</p>
1313
<div className="text-[32px] md:text-[48px] font-bold leading-[44px] md:leading-[64px] text-[var(--color-white)]">
@@ -29,10 +29,10 @@ export default function Section2() {
2929
</div>
3030

3131
{/* 카드 2 */}
32-
<div className="w-full max-w-[1200px] h-[600px] bg-[var(--color-black3)] rounded-lg relative flex flex-col md:flex-row-reverse gap-[40px] overflow-hidden">
32+
<div className="w-full max-w-[1200px] h-[600px] bg-[var(--color-black2)] rounded-lg relative flex flex-col md:flex-row-reverse gap-[40px] overflow-hidden">
3333
{/* 텍스트 */}
3434
<div className="w-full md:w-1/2 flex flex-col justify-center px-[40px] text-center md:text-left z-10">
35-
<p className="text-[14px] md:text-[16px] text-[var(--color-gray3)] mb-[40px] md:mb-[100px]">
35+
<p className="text-[14px] md:text-[16px] text-[var(--color-gray2)] mb-[40px] md:mb-[100px] md:mt-0 mt-[50px]">
3636
Point 2
3737
</p>
3838
<div className="text-[32px] md:text-[48px] font-bold leading-[44px] md:leading-[64px] text-[var(--color-white)]">

src/components/landing/Section3.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default function Section3({
2929
{/* 상단 이미지 영역 */}
3030
<div
3131
className={clsx(
32-
"bg-[var(--color-black3)] flex justify-center items-center min-h-[180px]",
32+
"bg-[var(--color-black4)] flex justify-center items-center min-h-[180px]",
3333
paddingClasses
3434
)}
3535
>

src/components/modal/ChangeBebridge.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,14 @@ const ChangeBebridge = () => {
7171

7272
return (
7373
<div className="lg:w-[620px] lg:h-[344px] sm:w-[544px] sm:h-[344px] w-[284px] h-[312px] bg-white sm:rounded-[16px] rounded-[8px] p-[24px] flex flex-col">
74-
<h2 className="text-sm sm:text-[24px] font-bold">
74+
<h2 className="text-black3 text-[20px] sm:text-[24px] font-bold">
7575
{dashboardDetail.title}
7676
</h2>
7777
<Input
7878
type="text"
7979
onChange={setTitle}
8080
label="대시보드 이름"
81-
labelClassName="text-[16px] sm:text-[18px] text-black3 mt-6"
81+
labelClassName="text-black3 text-[16px] sm:text-[18px] font-medium mt-6"
8282
placeholder="뉴프로젝트"
8383
className="max-w-[620px] mb-1"
8484
/>

src/components/table/InviteRecords.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ const InviteRecords = ({ dashboardId }: { dashboardId: string }) => {
103103
<div className="lg:w-[620px] w-[284px] sm:w-[544px] min:h-[337px] sm:h-[430px] relative p-6 rounded-lg bg-white">
104104
<div className="flex justify-between items-start sm:items-center">
105105
{/* 제목 */}
106-
<p className="md:text-[24px] text-[20px] text-xl font-bold">
106+
<p className="text-black3 text-[20px] sm:text-[24px] font-bold">
107107
초대 내역
108108
</p>
109109

src/components/table/invited/InvitedDashBoard.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ function InvitedList({
104104
)}
105105

106106
{/* 리스트 */}
107-
<div className="scroll-area h-[150vw] max-h-[570px] sm:max-h-[320px] lg:max-h-[400px] overflow-y-auto overflow-x-hidden">
107+
<div className="scroll-area h-[150vw] max-h-[570px] sm:max-h-[320px] lg:max-h-[280px] overflow-y-auto overflow-x-hidden">
108108
{filteredData.length > 0 ? (
109109
filteredData.map((invite, index) => (
110110
<div
@@ -274,7 +274,7 @@ export default function InvitedDashBoard() {
274274
{invitationArray.length === 0 ? (
275275
<EmptyInvitations />
276276
) : (
277-
<div className="relative bg-white rounded-lg shadow-md w-[260px] sm:w-[504px] lg:w-[1022px] h-[770px] sm:h-[592px] lg:h-[620px] max-w-none">
277+
<div className="relative bg-white rounded-lg shadow-md w-[260px] sm:w-[504px] lg:w-[1022px] h-[770px] sm:h-[592px] lg:h-[500px] max-w-none">
278278
<div className="flex flex-col p-6 w-full h-[104px]">
279279
<div className="flex flex-col w-full sm:w-[448px] lg:w-[966px] gap-[24px]">
280280
<p className="text-black3 text-[16px] sm:text-[20px] font-bold">

0 commit comments

Comments
 (0)