Skip to content

Commit

Permalink
added logo
Browse files Browse the repository at this point in the history
  • Loading branch information
M-Farmaha committed Jan 19, 2024
1 parent 9d9e536 commit 24c1e75
Show file tree
Hide file tree
Showing 5 changed files with 79 additions and 16 deletions.
17 changes: 3 additions & 14 deletions src/components/AppBar/AppBar-styled.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ export const NavWrap = styled.nav`
height: 100%;
display: flex;
justify-content: space-between;
align-items: baseline;
gap: 10px;
gap: 24px;
`;

export const NavList = styled.ul`
Expand Down Expand Up @@ -56,21 +55,11 @@ export const NavLinkStyled = styled(NavLink)`
transition: var(--main-transition);
&:hover {
color: var(--accent-color);
color: var(--accent-hover-color);
}
&.active {
color: var(--accent-color);
color: var(--accent-hover-color);
cursor: default;
}
`;

export const Logo = styled.h1`
min-width: 120px;
font-family: "Manrope";
font-size: 20px;
font-style: normal;
font-weight: 600;
line-height: 24px;
color: var(--primary-black-color);
`;
6 changes: 4 additions & 2 deletions src/components/AppBar/AppBar.jsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Logo } from "../Logo/Logo";
import {
NavItem,
NavLinkStyled,
NavList,
NavWrap,
Logo,
Header,
} from "./AppBar-styled";

Expand All @@ -12,7 +12,9 @@ export const AppBar = () => {
<>
<Header>
<NavWrap>
<Logo>100 Club</Logo>
<NavLinkStyled to="/">
<Logo />
</NavLinkStyled>
<NavList>
<NavItem>
<NavLinkStyled to="/members">Учасники</NavLinkStyled>
Expand Down
9 changes: 9 additions & 0 deletions src/components/Logo/Logo-styled.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import styled from "styled-components";

export const LogoSvg = styled.svg`
width: 80px;
height: 80px;
fill: currentColor;
`;


12 changes: 12 additions & 0 deletions src/components/Logo/Logo.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import sprite from "../../sprite.svg";
import { LogoSvg } from "./Logo-styled";

export const Logo = () => {
return (
<>
<LogoSvg>
<use href={sprite + "#logo-full"}></use>
</LogoSvg>
</>
);
};
Loading

0 comments on commit 24c1e75

Please sign in to comment.