Skip to content

Commit

Permalink
feat: bottomsheet 스위칭
Browse files Browse the repository at this point in the history
  • Loading branch information
thewoowon committed Jun 26, 2024
1 parent 62a1eb5 commit db17fc5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
14 changes: 12 additions & 2 deletions components/bottomSheet/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,12 +147,13 @@ const BottomSheet = () => {
{open ? "괜찮아요" : "구독하기"}
</button>
<div className="absolute w-full h-full flex justify-center items-center transition-all">
<svg
<Svg
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
onClick={() => setOpen(!open)}
>
{open ? (
<path
Expand All @@ -165,7 +166,7 @@ const BottomSheet = () => {
fill="#F8F9FE"
/>
)}
</svg>
</Svg>
</div>
</div>
<Box
Expand Down Expand Up @@ -385,3 +386,12 @@ const Content = styled.div`
color: #f8f9fe;
position: relative;
`;

const Svg = styled.svg`
cursor: pointer;
transition: all 0.3s ease-in-out;
&:hover {
opacity: 0.8;
}
`;
2 changes: 1 addition & 1 deletion public/sw.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit db17fc5

Please sign in to comment.