Skip to content

Commit

Permalink
Add hover event on the header
Browse files Browse the repository at this point in the history
  • Loading branch information
2093ab committed Oct 2, 2023
1 parent 43d544e commit ebf1b64
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion components/Header.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import styled from "styled-components";
import styled, { css } from "styled-components";
import Link from "next/link";
import { useDispatch, useSelector } from "react-redux";

Expand All @@ -14,7 +14,17 @@ const routes = [
{ title: "후원 및 협업", href: "/sponser" },
];

const zoomInOnHover = css`
transition: transform 0.4s;
&:hover {
transform: scale(1.14);
}
`;

const Logo = styled(LogoSvg)`
${zoomInOnHover}
width: 42px;
height: 28px;
Expand Down Expand Up @@ -122,6 +132,10 @@ const DesktopTopbarItem = styled.div`
padding-right: 0;
}
&:hover {
font-weight: 500;
}
@media ${(props) => props.theme.device.sm} {
display: none;
}
Expand Down

0 comments on commit ebf1b64

Please sign in to comment.