Добавлен логотип

This commit is contained in:
grinikita 2024-12-07 12:30:07 +03:00
parent 5d2dc9f7c5
commit 34e30fbaba
6 changed files with 29 additions and 2 deletions

5
@types/assets.d.ts vendored Normal file
View File

@ -0,0 +1,5 @@
declare module '*.png' {
const imagePath: string;
export default imagePath;
}

View File

@ -2,7 +2,7 @@ import React from 'react';
import Heading from '../../components/heading'; import Heading from '../../components/heading';
const ListPage = (): React.ReactElement => { const ListPage = (): React.ReactElement => {
return <Heading>List Page New</Heading>; return <Heading>List Page New 2</Heading>;
}; };
export default ListPage; export default ListPage;

View File

@ -1,6 +1,7 @@
import React from 'react'; import React from 'react';
import { getNavigationValue } from '@brojs/cli'; import { getNavigationValue } from '@brojs/cli';
import { HeaderContainer, NavContainer, NavItem, NavLink } from './index.style'; import { HeaderContainer, NavContainer, NavItem, NavLink } from './index.style';
import Logo from './logo/logo';
const navigations: Array<{ name: string; href: string }> = [ const navigations: Array<{ name: string; href: string }> = [
{ {
@ -16,6 +17,7 @@ const navigations: Array<{ name: string; href: string }> = [
const Header = (): React.ReactElement => { const Header = (): React.ReactElement => {
return ( return (
<HeaderContainer> <HeaderContainer>
<Logo />
<NavContainer> <NavContainer>
{navigations.map((item) => { {navigations.map((item) => {
return ( return (

View File

@ -1,7 +1,10 @@
import styled from '@emotion/styled'; import styled from '@emotion/styled';
import { NavLink as NavLinkBase } from 'react-router-dom'; import { NavLink as NavLinkBase } from 'react-router-dom';
export const HeaderContainer = styled('header')``; export const HeaderContainer = styled('header')`
display: flex;
align-items: center;
`;
export const NavContainer = styled.nav` export const NavContainer = styled.nav`
display: flex; display: flex;

View File

@ -0,0 +1,17 @@
import React from 'react';
import styled from '@emotion/styled';
import logoPng from './logo2.png';
const LogoStyled = styled.img`
width: 24px;
height: 24px;
padding: 8px;
`;
// ${__webpack_public_path__}/remote-assets/logo.png
const Logo = () => {
return <LogoStyled src={logoPng} alt={'logo'} />;
};
export default Logo;

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB