-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
34 additions
and
2 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,16 @@ | ||
import { TextArea } from './components'; | ||
import DownArrow from '@/assets/down-arrow.svg?react'; | ||
|
||
export const ChatPanel = () => { | ||
return ( | ||
<article className="flex flex-col items-center gap-5 rounded-md bg-white p-7"> | ||
<article className="flex flex-col gap-5 rounded-md bg-white p-7"> | ||
<h2 className="display-medium20 text-center">채팅</h2> | ||
<TextArea /> | ||
<hr className="bg-light-gray h-px w-full divide-y border-0"></hr> | ||
<div className="border-light-gray flex items-center justify-end gap-1 border-b-2 pb-2"> | ||
<p className="display-medium12 text-dark-gray">최신순</p> | ||
<DownArrow className="cursor-pointer" /> | ||
</div> | ||
<section className="flex flex-col gap-5"></section> | ||
</article> | ||
); | ||
}; |
24 changes: 24 additions & 0 deletions
24
packages/frontend/src/pages/stock-detail/components/ChatMessage.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import Like from '@/assets/like.svg?react'; | ||
|
||
interface ChatMessageProps { | ||
name: string; | ||
contents: string; | ||
like: number; | ||
} | ||
|
||
export const ChatMessage = ({ name, contents, like }: ChatMessageProps) => { | ||
return ( | ||
<div className="flex"> | ||
<p className="display-bold12 text-dark-gray mr-3 w-12 flex-shrink-0"> | ||
{name} | ||
</p> | ||
<div> | ||
<p className="display-medium12 text-dark-gray">{contents}</p> | ||
<div className="flex items-center gap-1"> | ||
<Like className="fill-gray hover:fill-orange cursor-pointer" /> | ||
<span className="display-medium12 text-gray">{like}</span> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; |