Skip to content

Commit cd2ce1f

Browse files
authored
fix: mentor/mypage ui polish and notice emphasis (#469)
1 parent 897e995 commit cd2ce1f

5 files changed

Lines changed: 20 additions & 18 deletions

File tree

apps/web/src/app/community/[boardCode]/[postId]/modify/PostModifyForm.tsx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,9 @@ const PostModifyForm = ({
9393
);
9494
};
9595

96-
const notice =
97-
"글 작성 시 유의사항\n\n인종, 성별, 출신, 지역, 이념 관련 차별 관련 발언 및 타인에게 불쾌감을 유발할 수 있는 글은 삭제될 수 있습니다.\n\n솔리드 커넥션은 홍보 행위를 철저히 금지합니다.";
96+
const noticeTitle = "[글 작성 시 유의사항]";
97+
const noticeContent =
98+
"인종, 성별, 출신, 지역, 이념 관련 차별 관련 발언 및 타인에게 불쾌감을 유발할 수 있는 글은 삭제될 수 있습니다.\n\n솔리드 커넥션은 홍보 행위를 철저히 금지합니다.";
9899

99100
return (
100101
<>
@@ -147,10 +148,10 @@ const PostModifyForm = ({
147148
onChange={(e) => setContent(e.target.value)}
148149
/>
149150
</div>
150-
<div
151-
className="px-5 pt-2.5 text-gray-100 typo-regular-4"
152-
dangerouslySetInnerHTML={{ __html: notice.replace(/\n/g, "<br />") }}
153-
/>
151+
<div className="px-5 pt-2.5">
152+
<p className="text-gray-250/87 typo-sb-9">{noticeTitle}</p>
153+
<p className="mt-2 whitespace-pre-line text-gray-100 typo-regular-4">{noticeContent}</p>
154+
</div>
154155
</div>
155156
</>
156157
);

apps/web/src/app/community/[boardCode]/create/PostForm.tsx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,9 @@ const PostForm = ({ boardCode }: PostFormProps) => {
6363
);
6464
};
6565

66-
const notice =
67-
"글 작성 시 유의사항\n\n인종, 성별, 출신, 지역, 이념 관련 차별 관련 발언 및 타인에게 불쾌감을 유발할 수 있는 글은 삭제될 수 있습니다.\n\n솔리드 커넥션은 홍보 행위를 철저히 금지합니다.";
66+
const noticeTitle = "[글 작성 시 유의사항]";
67+
const noticeContent =
68+
"인종, 성별, 출신, 지역, 이념 관련 차별 관련 발언 및 타인에게 불쾌감을 유발할 수 있는 글은 삭제될 수 있습니다.\n\n솔리드 커넥션은 홍보 행위를 철저히 금지합니다.";
6869

6970
return (
7071
<>
@@ -126,10 +127,10 @@ const PostForm = ({ boardCode }: PostFormProps) => {
126127
onChange={(e) => setContent(e.target.value)}
127128
/>
128129
</div>
129-
<div
130-
className="px-5 pt-2.5 text-gray-100 typo-regular-4"
131-
dangerouslySetInnerHTML={{ __html: notice.replace(/\n/g, "<br />") }}
132-
/>
130+
<div className="px-5 pt-2.5">
131+
<p className="text-gray-250/87 typo-sb-9">{noticeTitle}</p>
132+
<p className="mt-2 whitespace-pre-line text-gray-100 typo-regular-4">{noticeContent}</p>
133+
</div>
133134
</div>
134135
</>
135136
);

apps/web/src/app/mentor/[id]/_ui/MentorDetialContent/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ const MentorDetialContent = ({ mentorId }: MentorDetailContentProps) => {
7272
<p className="mb-7 text-k-500 typo-regular-2">{introduction}</p>
7373

7474
{/* 멘토 채널 */}
75-
<h3 className="mb-2 text-secondary typo-regular-1">멘토 한마디</h3>
75+
<h3 className="mb-2 text-secondary typo-regular-1">멘토 채널</h3>
7676
<div className="mb-7">
7777
<div
7878
className={`grid gap-2 ${

apps/web/src/app/my/_ui/MyProfileContent/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ const MyProfileContent = () => {
7070
<p>{nickname}님은</p>
7171
<p>
7272
현재{" "}
73-
<span className="text-primary typo-medium-2">
73+
<span className={`text-primary ${profileData.role === UserRole.MENTEE ? "typo-sb-4" : "typo-medium-2"}`}>
7474
{profileData.role === UserRole.ADMIN ? "어드민" : isMentor ? "멘토" : "멘티"}
7575
</span>{" "}
7676
솔커예요.

apps/web/src/components/ui/LinkedTextWithIcon/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,19 +58,19 @@ const Content = ({ icon, text, subText, textColor = "text-k-700" }: ContentProps
5858
{/* 왼쪽 아이콘 + 텍스트 */}
5959
<div className="flex flex-1 items-center gap-1">
6060
{icon ? (
61-
<div className="flex h-8 w-5 items-center justify-center rounded-full">
62-
<span className="h-5 w-5">{icon}</span>
61+
<div className="flex h-8 w-8 items-center justify-center rounded-full [&>svg]:h-5 [&>svg]:w-5 [&>svg]:shrink-0">
62+
{icon}
6363
</div>
6464
) : (
65-
<div className="h-8" />
65+
<div className="h-8 w-8" />
6666
)}
6767
<span className={clsx("typo-medium-2", textColor)}>{text}</span>
6868
</div>
6969

7070
{/* 오른쪽 subText + 아이콘 */}
7171
<div className="flex shrink-0 items-center gap-1">
7272
{subText && <span className="text-k-600 typo-regular-2">{subText}</span>}
73-
<span className="h-5 w-5">
73+
<span className="flex h-5 w-5 items-center justify-center [&>svg]:h-5 [&>svg]:w-5">
7474
<IconDirectionRight />
7575
</span>
7676
</div>

0 commit comments

Comments
 (0)