Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIRE-332-fe-캐릭터-위에-채팅-구현 #65

Merged
merged 1 commit into from
Jul 20, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions src/components/room/SingleScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@ export default function SingleScreen({
};
return (
<Container onClick={OpenModal}>
<ChatContainer>
<ChatInner>
<Chats>Lorem ipsum dolor sit amet,</Chats>
<Chats>Vestibulum sit amet tellus suscipit</Chats>
<Chats>
Fusce eget lacus eu magna finibus interdum vel vel felis.
</Chats>
<Chats>Last Chat</Chats>
</ChatInner>
</ChatContainer>
<AvatarPosition>
<MyAvatar num={Number(avatar)} />
<NameContainer>{nickname}</NameContainer>
Expand All @@ -25,6 +35,36 @@ export default function SingleScreen({
);
}

const ChatInner = styled.div`
display: flex;
flex-direction: column;
align-items: center;
position: absolute;
bottom: 0;
gap: 1rem;
`;

const ChatContainer = styled.div`
width: calc(100% - 3rem);
height: calc(95% - 3rem);
position: absolute;
bottom: calc(5% + 3rem);
overflow: hidden;
margin-left: 1.2rem;
`;

const Chats = styled.div`
align-self: flex-start;
padding: 1.6rem;
background-color: rgba(53, 69, 122, 0.8);
font-family: IBMPlexSansKRRegular;
font-weight: 400;
border-radius: 0.8rem;
font-size: 15px;
line-height: 22px;
color: #ffffff;
`;

const NameContainer = styled.div`
padding: 1%;
display: flex;
Expand Down