Skip to content

Commit

Permalink
changed favicon + stats section + appbar
Browse files Browse the repository at this point in the history
  • Loading branch information
M-Farmaha committed Jan 22, 2024
1 parent 9eacbcf commit 35683fe
Show file tree
Hide file tree
Showing 9 changed files with 45 additions and 11 deletions.
Binary file removed public/512logo.png
Binary file not shown.
Binary file modified public/favicon.ico
Binary file not shown.
Binary file modified public/logo192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/logo512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions src/components/AppBar/AppBar-styled.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ export const NavLinkStyled = styled(NavLink)`
line-height: 24px;
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
color: var(--primary-black-color);
Expand Down Expand Up @@ -115,3 +116,9 @@ export const NavLinkStyled = styled(NavLink)`
}
}
`;

export const NavIconSvg = styled.svg`
width: 20px;
height: 20px;
fill: currentColor;
`;
17 changes: 15 additions & 2 deletions src/components/AppBar/AppBar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@ import {
NavWrap,
Header,
HeaderFilter,
NavIconSvg,
} from "./AppBar-styled";

import sprite from "../../sprite.svg";

export const AppBar = () => {
const [flipped, setFlipped] = useState(false);
const { transform } = useSpring({
Expand Down Expand Up @@ -39,11 +42,21 @@ export const AppBar = () => {
</a.div>
<NavList>
<NavItem>
<NavLinkStyled to="/members">Учасники</NavLinkStyled>
<NavLinkStyled to="/members">
<NavIconSvg>
<use href={sprite + "#icon-users"}></use>
</NavIconSvg>
Учасники
</NavLinkStyled>
</NavItem>

<NavItem>
<NavLinkStyled to="/gallery">Галерея</NavLinkStyled>
<NavLinkStyled to="/gallery">
<NavIconSvg>
<use href={sprite + "#icon-camera"}></use>
</NavIconSvg>
Галерея
</NavLinkStyled>
</NavItem>
</NavList>
</NavWrap>
Expand Down
10 changes: 8 additions & 2 deletions src/components/StatsSection/StatsSection-styled.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import styled from "styled-components";
export const Section = styled.section`
padding-top: 100px;
padding-bottom: 100px;
backdrop-filter: blur(10px);
`;

Expand Down Expand Up @@ -45,8 +45,14 @@ export const SubTitle = styled.p`
`;

export const StatsIconSvg = styled.svg`
margin-bottom: 10px;
width: 80px;
height: 80px;
fill: var(--primary-white-color);
background-color: rgba(45, 219, 42, 0.1);
border: outset;
border-width: 1px;
border-radius: 50%;
margin-bottom: 10px;
`;
6 changes: 3 additions & 3 deletions src/components/StatsSection/StatsSection.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,23 @@ export const StatsSection = () => {
<StatsIconSvg>
<use href={sprite + "#icon-stats-2"}></use>
</StatsIconSvg>
<AnimatedStat number={100} id={"stats-2"}/>
<AnimatedStat number={100} id={"stats-2"} />
<SubTitle>Гравців у клубі</SubTitle>
</Item>

<Item>
<StatsIconSvg>
<use href={sprite + "#icon-stats-3"}></use>
</StatsIconSvg>
<AnimatedStat number={8} id={"stats-3"}/>
<AnimatedStat number={8} id={"stats-3"} />
<SubTitle>Років досвіду</SubTitle>
</Item>

<Item>
<StatsIconSvg>
<use href={sprite + "#icon-stats-4"}></use>
</StatsIconSvg>
<AnimatedStat number={5} id={"stats-4"}/>
<AnimatedStat number={5} id={"stats-4"} />
<SubTitle>Тренерів у клубі</SubTitle>
</Item>
</List>
Expand Down
16 changes: 12 additions & 4 deletions src/sprite.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 35683fe

Please sign in to comment.