Skip to content

Commit

Permalink
deploy : deploy merge modify
Browse files Browse the repository at this point in the history
  • Loading branch information
jsl0149 committed Dec 2, 2021
2 parents b4035ae + a0354c3 commit 650a47c
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 19 deletions.
Empty file modified .gitignore
100644 β†’ 100755
Empty file.
Empty file modified .prettierrc
100644 β†’ 100755
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,21 @@ const MusicSearchItem = ({ name, singer, thumbnail, description, selected, onCli
};

return (
<SearchResultItem selected={selected} length={name.length} isOverflow={isOverflow()} onClick={onClick}>
<Image src={thumbnail} alt="thumbnail" />
<TextWrapper>
<Title ref={item}>{name}</Title>
<Singer>{singer}</Singer>
</TextWrapper>
<DescriptionIcon onMouseEnter={onDetail} onMouseLeave={onDetailOut}>
{detail ? (
<Description>
<p>{description}</p>
</Description>
) : null}
</DescriptionIcon>
</SearchResultItem>
<>
<SearchResultItem selected={selected} length={name.length} isOverflow={isOverflow()} onClick={onClick}>
<Image src={thumbnail} alt="thumbnail" />
<TextWrapper>
<Title ref={item}>{name}</Title>
<Singer>{singer}</Singer>
</TextWrapper>
<DescriptionIcon onMouseEnter={onDetail} onMouseLeave={onDetailOut} />
</SearchResultItem>
{detail ? (
<Description>
<p>{description}</p>
</Description>
) : null}
</>
);
};

Expand Down Expand Up @@ -150,16 +151,15 @@ const DescriptionIcon = styled.div`
`;

const Description = styled.div`
position: fixed;
width: 8rem;
width: 14.5rem;
font-size: 0.8rem;
border: 1px solid #cacfd2;
background-color: #f7f9f9;
box-shadow: rgb(0 0 0 / 20%) 0px 10px 25px;
color: #969696;
border-radius: 0.5rem;
padding: 0.8rem;
text-align: justify;
display: flex;
justify-content: center;
`;

export default MusicSearchItem;
9 changes: 8 additions & 1 deletion frontend/src/pages/Room.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,14 @@ const Room = ({ history }: { history: RouteComponentProps['history'] }) => {
}, [userList]);

if (userList[0] === 'bad') {
return <div>잘λͺ»λœ μš”μ²­μž…λ‹ˆλ‹€.</div>;
return (
<div className="main-wrap room-empty-notice">
<svg xmlns="http://www.w3.org/2000/svg" height="10rem" viewBox="0 0 24 24" width="10rem" fill="#beaee2">
<path d="M0 0h24v24H0V0z" fill="none" opacity=".87"/>
<path d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm3.59-13L12 10.59 8.41 7 7 8.41 10.59 12 7 15.59 8.41 17 12 13.41 15.59 17 17 15.59 13.41 12 17 8.41z"/></svg>
<h2 className="text-center">잘λͺ»λœ μš”μ²­μž…λ‹ˆλ‹€.</h2>
</div>
);
}

return (
Expand Down
4 changes: 4 additions & 0 deletions frontend/src/stylesheets/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
text-align: start;
}

.text-center {
text-align: center;
}

.room-empty-notice {
width: 100%;
height: 100%;
Expand Down

0 comments on commit 650a47c

Please sign in to comment.