Skip to content

Commit

Permalink
๐Ÿ’„ui: ์ปค์Šคํ…€ ์นด๋“œ ๊ธ€์ž ์ œํ•œ
Browse files Browse the repository at this point in the history
  • Loading branch information
ch9968 committed Dec 3, 2024
1 parent 531bbb6 commit 25ae37d
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 13 deletions.
8 changes: 4 additions & 4 deletions bookduck/src/components/MainPage/BookDisplay.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,22 +46,22 @@ const BookDisplay = ({
{type === "BOOK_WITH_SONG" || display ? (
<>
<div className="relative flex flex-row justify-between ">
<span className="text-c1 text-gray-500 mr-1">
<span className="text-c1 text-gray-500 mr-1 line-clamp-2">
{text3 || "์ฑ… ์ œ๋ชฉ"}
</span>
<img src={music} alt="Music Icon" />
</div>
<div className="relative flex flex-col items-end">
<span className="text-gray-500 text-b1 font-semibold">
<span className="text-gray-500 text-b1 font-semibold line-clamp-2">
{text2 || "๋…ธ๋ž˜ ์ œ๋ชฉ"}
</span>
<span className="text-right text-gray-800 text-c1 bg-gray-10 w-[8.8125rem]">
<span className="text-right text-gray-800 text-c1 bg-gray-10 w-full line-clamp-1">
by {text1 || "๊ฐ€์ˆ˜๋ช…"}
</span>
</div>
</>
) : (
<p className="text-gray-800 text-c1 bg-gray-10 w-full">
<p className="text-gray-800 text-c1 bg-gray-10 w-full line-clamp-5">
{text1 || "๋ฉ”๋ชจ"}
</p>
)}
Expand Down
30 changes: 21 additions & 9 deletions bookduck/src/components/MainPage/OneBookCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -174,13 +174,16 @@ const OneBookCard = ({
>
{cardType === "BOOK_WITH_SONG" ? (
<>
<div className="relative flex flex-row justify-between ">
<input
<div className={`relative flex flex-row justify-between`}>
<textarea
type="text"
value={bookTitle}
name="์ฑ…์ œ๋ชฉ"
placeholder="์ฑ… ์ œ๋ชฉ"
className="text-left text-gray-800 text-c1 bg-gray-10 w-[8.8125rem]"
className={`text-left text-gray-800 text-c1 bg-gray-10 ${
bookNumber === 1 ? "w-[12.4375rem]" : "w-[8.8125rem]"
} resize-none focus:outline-none`}
maxLength={21}
onChange={handleChange}
/>
<img src={music} alt="Music Icon" />
Expand All @@ -191,7 +194,10 @@ const OneBookCard = ({
value={song}
name="๋…ธ๋ž˜์ œ๋ชฉ"
placeholder=""
className="text-b1 text-right text-gray-800 font-semibold bg-gray-10 w-[8.8125rem]"
className={`text-b1 text-right text-gray-800 font-semibold bg-gray-10 ${
bookNumber === 1 ? "w-[14.4375rem]" : "w-[8.8125rem]"
}`}
maxLength={20}
onChange={handleChange}
/>
{!song && (
Expand All @@ -204,14 +210,19 @@ const OneBookCard = ({
</span>
</div>
)}
<p className="flex flex-row justify-end">
<p
className={`flex flex-row justify-end ${
bookNumber === 2 && "w-[9rem]"
}`}
>
<span className="text-c1 text-gray-500 mr-1">by</span>
<input
type="text"
value={singer}
name="๊ฐ€์ˆ˜๋ช…"
placeholder=""
className="text-right text-c1 text-gray-500 font-semibold bg-gray-10 focus:outline-none"
className={`text-right text-c1 text-gray-500 font-semibold bg-gray-10 focus:outline-none `}
maxLength={20}
onChange={handleChange}
style={{
width: `${Math.max(singer.length * 1.4, 2)}ch`,
Expand All @@ -231,12 +242,13 @@ const OneBookCard = ({
</div>
</>
) : (
<input
<textarea
type="text"
value={memo}
name="๋ฉ”๋ชจ"
placeholder="๊ธ€์„ ๋ฉ”๋ชจํ•ด๋ณด์„ธ์š”"
className="text-gray-800 text-c1 bg-gray-10 w-full"
placeholder="์ž์œ ๋กญ๊ฒŒ ๋ฉ”๋ชจํ•ด๋ณด์„ธ์š”! (80์ž)"
className="text-gray-800 text-c1 bg-gray-10 w-full h-full resize-none focus:outline-none"
maxLength={80}
onChange={handleChange}
/>
)}
Expand Down

0 comments on commit 25ae37d

Please sign in to comment.