Skip to content

Commit

Permalink
design(#46): 다크모드 관련 색상 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
uiop5809 committed Aug 21, 2024
1 parent f2fa972 commit 03315f4
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 13 deletions.
8 changes: 5 additions & 3 deletions src/app/board/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ const BoardDetail = () => {
<div className="flex justify-end gap-2.5 mb-5">
<Button
text="수정"
color="PURPLE"
color="LIGHTPURPLE"
size="small"
onClick={() => {
router.push(`/board/${id}/update`)
Expand All @@ -117,9 +117,11 @@ const BoardDetail = () => {
</div>

<div className="flex flex-col gap-1">
<p className="text-title3 font-bold">{boardDetail.title}</p>
<p className="text-title3 font-bold text-maindark">
{boardDetail.title}
</p>
<div
className="text-body text-mainblack"
className="text-body text-maindark"
dangerouslySetInnerHTML={{ __html: boardDetail.content }}
/>
</div>
Expand Down
8 changes: 5 additions & 3 deletions src/app/worry/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const WorryDetail = () => {
<div className="flex justify-end gap-2.5">
<Button
text="수정"
color="PURPLE"
color="LIGHTPURPLE"
size="small"
onClick={() => {
router.push(`/worry/${id}/update`)
Expand Down Expand Up @@ -79,9 +79,11 @@ const WorryDetail = () => {
</div>

<div className="flex flex-col gap-1">
<p className="text-title3 font-bold">{worryDetail.title}</p>
<p className="text-title3 font-bold text-maindark">
{worryDetail.title}
</p>
<div
className="text-body text-mainblack"
className="text-body text-maindark"
dangerouslySetInnerHTML={{ __html: worryDetail.content }}
/>
</div>
Expand Down
5 changes: 3 additions & 2 deletions src/components/board/BoardCreatePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ const BoardCreatePage = () => {
type="text"
value={title}
onChange={(e) => setTitle(e.target.value)}
className="w-full h-10 border border-gray-300 rounded-md p-2 mb-4"
className="w-full h-10 border border-gray-300 rounded-md p-2 mb-4 text-maindark"
/>
<div className="text-headline font-normal text-gray2 mb-5">
내용을 입력해주세요.
Expand All @@ -146,11 +146,12 @@ const BoardCreatePage = () => {
callback(imgUrl, 'image')
},
}}
className="text-maindark"
/>
<div className="flex gap-2.5 justify-end mt-4">
<Button
text="취소하기"
color="PURPLE"
color="LIGHTPURPLE"
size="small"
onClick={() => router.back()}
/>
Expand Down
5 changes: 3 additions & 2 deletions src/components/board/BoardUpdatePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ const BoardUpdatePage = () => {
type="text"
value={title}
onChange={(e) => setTitle(e.target.value)}
className="w-full h-10 border border-gray-300 rounded-md p-2 mb-4"
className="w-full h-10 border border-gray-300 rounded-md p-2 mb-4 text-maindark"
/>
<div className="text-headline font-normal text-gray2 mb-5">
내용을 입력해주세요.
Expand All @@ -165,11 +165,12 @@ const BoardUpdatePage = () => {
callback(imgUrl, 'image')
},
}}
className="text-maindark"
/>
<div className="flex gap-2.5 justify-end mt-4">
<Button
text="취소하기"
color="PURPLE"
color="LIGHTPURPLE"
size="small"
onClick={() => router.back()}
/>
Expand Down
3 changes: 2 additions & 1 deletion src/components/worry/WorryCreatePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ const WorryCreatePage = () => {
type="text"
value={title}
onChange={(e) => setTitle(e.target.value)}
className="w-full h-10 border border-gray-300 rounded-md p-2 mb-4"
className="w-full h-10 border border-gray-300 rounded-md p-2 mb-4 text-maindark"
/>

<div className="text-headline font-normal text-gray2 mb-2">
Expand All @@ -166,6 +166,7 @@ const WorryCreatePage = () => {
callback(imgUrl, 'image')
},
}}
className="text-maindark"
/>

<div className="flex gap-2.5 justify-end mt-4">
Expand Down
4 changes: 3 additions & 1 deletion src/components/worry/WorryProfile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ const WorryProfile = ({
</div>

<div className="flex flex-col gap-1">
<div className="text-headline font-semibold">{nickName}</div>
<div className="text-headline font-semibold text-maindark">
{nickName}
</div>
<div className="flex gap-2.5">
<Button text={strFromMbti} color={strFromMbti} size="badge" />
<Image
Expand Down
2 changes: 1 addition & 1 deletion src/components/worry/WorryUpdatePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ const WorryUpdatePage = () => {
type="text"
value={title}
onChange={(e) => setTitle(e.target.value)}
className="w-full h-10 border border-gray-300 rounded-md p-2 mb-4"
className="w-full h-10 border border-gray-300 rounded-md p-2 mb-4 text-maindark"
/>

<div className="text-headline font-normal text-gray2 mb-2">
Expand Down

0 comments on commit 03315f4

Please sign in to comment.