Skip to content

Commit

Permalink
Merge pull request #65 from SWM-FIRE/FIRE-332-fe-캐릭터-위에-채팅-구현
Browse files Browse the repository at this point in the history
FIRE-332-fe-캐릭터-위에-채팅-구현
  • Loading branch information
071yoon authored Jul 20, 2022
2 parents 2071555 + 6c60bf7 commit f61c824
Showing 1 changed file with 40 additions and 0 deletions.
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

1 comment on commit f61c824

@vercel
Copy link

@vercel vercel bot commented on f61c824 Jul 20, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.