Skip to content

Commit

Permalink
Design: NavBar에 로고 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
extinctmule committed Sep 10, 2024
1 parent d7e049a commit 312a857
Show file tree
Hide file tree
Showing 2 changed files with 126 additions and 7 deletions.
120 changes: 120 additions & 0 deletions src/assets/icons/AntHelper_logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 6 additions & 7 deletions src/components/NavBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { useAuth } from '../contexts/AuthContext';
import { ReactComponent as NotificationIcon } from '../assets/icons/notifications.svg';
import { ReactComponent as AccountIcon } from '../assets/icons/account_circle.svg';
import Search from './Search';
import AntHelper_logo from '../assets/icons/AntHelper_logo.svg';

const NavBar = () => {
const { signedIn, userInfo, logout } = useAuth();
Expand All @@ -29,7 +30,10 @@ const NavBar = () => {
return (
<Wrapper>
<NavBarContainer>
<Logo href={'/'}>Ant Helper</Logo>
<Logo href={'/'}>
{' '}
<img src={AntHelper_logo}></img> Ant Helper
</Logo>
<NavLinks>
<Link to="/"></Link>
<Link to="/account">내 계좌</Link>
Expand Down Expand Up @@ -87,6 +91,7 @@ const NavBarContainer = styled.nav`
`;

const Logo = styled.a`
display: inline-flex;
font-size: 24px;
font-weight: bold;
`;
Expand All @@ -104,12 +109,6 @@ const NavLinks = styled.div`
}
`;

// const SearchBar = styled.input`
// padding: 8px;
// border-radius: 20px;
// border: 1px solid #ddd;
// `;

const UserMenu = styled.div`
display: flex;
align-items: center;
Expand Down

0 comments on commit 312a857

Please sign in to comment.