Skip to content

Commit

Permalink
(#72) ๐ŸŽจ design: ๋ฃจํ‚ค ํ™”์ดํŠธ ๋ฆฌ์ŠคํŠธ ๊ผฌ๋ž‘์ง€ ๋งํ’์„  ์ œ์ž‘
Browse files Browse the repository at this point in the history
  • Loading branch information
inaemon committed Nov 27, 2024
1 parent 009df1b commit ab912ae
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ interface Props {
messageList: string[]
}

// ์ฑ—๋ด‡ ์ปค์Šคํ…€ ๋งํ’์„  ์ปดํฌ๋„ŒํŠธ
// ์ฑ—๋ด‡ ์ปค์Šคํ…€ ๋งํ’์„  ์ปดํฌ๋„ŒํŠธ (๊ผฌ๋ž‘์ง€๊ฐ€ ๋ถ™์€ ๋ฒ„์ ผ)
// /n(new line) ๋“ฑ์ด ๋ฐ˜์˜๋˜๋„๋ก whitespace-pre-wrap ์Šคํƒ€์ผ ์ ์šฉํ•œ ๋งํ’์„ 
const RookiePreformattedMessage = ({messageList}: Props) => {
return (
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import React from "react";
import Image from "next/image";
import tailIcon from "@/src/assets/webp/chatbot_message_left_tail_white_big.webp"; // ๊ผฌ๋ž‘์ง€

interface Props {
messageList: string[]
}

// ์ฑ—๋ด‡ ์ปค์Šคํ…€ ๋งํ’์„  ์ปดํฌ๋„ŒํŠธ (๊ผฌ๋ž‘์ง€๊ฐ€ ๋ถ™์€ ๋ฒ„์ ผ)
// ๋ฉ”์‹œ์ง€๋ฅผ ๋ฆฌ์ŠคํŠธ๋กœ ์ถœ๋ ฅ
const RookieWhiteListMessageWithTail = ({messageList}: Props) => {
return (
<div className="relative bg-main-0 p-3 rounded-lg text-xs font-regular text-grayscale-90 max-w-xs">
{/* ๋งํ’์„  ๊ผฌ๋ž‘์ง€ */}
<Image src={tailIcon} alt="๊ผฌ๋ž‘์ง€" className="absolute left-[-12px] top-2 w-5 h-5"/>

{/** ๋ฉ”์‹œ์ง€ 1์ค„ ์ด์ƒ ๋ฐฐ์—ด๋กœ ๋ฐ›์•„์„œ ์—ฌ๋Ÿฌ li ํƒœ๊ทธ๋กœ ๋ฉ”์‹œ์ง€ ์ถœ๋ ฅํ•˜๊ธฐ */}
<ul className="space-y-1.5">
{messageList.map((message, index) => (
<li
key={index}
className="px-2 text-xs min-w-[180px] w-full text-left font-regular text-grayscale-90 rounded-md"
>
{message}
</li>
))}
</ul>
</div>
);
};

export default RookieWhiteListMessageWithTail;

0 comments on commit ab912ae

Please sign in to comment.