Skip to content

Commit

Permalink
fix: 메뉴 스타일 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
ArpaAP committed Sep 9, 2024
1 parent 5ff213a commit d363e4d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/components/navigation/SideBar.style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ export const SideBarWrapper = styled.div`
width: 100%;
top: -80%;
backdrop-filter: blur(10px);
background-color: rgba(255, 255, 255, 0.7);
position: fixed;
align-items: flex-end;
transition: 0.5s ease;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
&.open {
top: 0;
transition: 0.5s ease;
Expand All @@ -29,6 +31,7 @@ export const Menu = styled.li`
margin: 20px 8px;
list-style-type: none;
cursor: pointer;
&:hover {
color: #37cdcd;
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/navigation/SideBar.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from "react";
import React, { useEffect } from "react";
import { useNavigate } from "react-router-dom";

import closeIcon from "@/assets/icons/close.svg";
Expand All @@ -14,7 +14,7 @@ export const SideBar = ({ isOpen, setIsOpen }: SideBarProps) => {
const outside = React.useRef<HTMLDivElement>(null);
const navigate = useNavigate();

React.useEffect(() => {
useEffect(() => {
document.addEventListener("mousedown", handlerOutside);
return () => {
document.removeEventListener("mousedown", handlerOutside);
Expand Down

0 comments on commit d363e4d

Please sign in to comment.