diff --git a/public/images/menuIcon.svg b/public/images/menuIcon.svg new file mode 100644 index 00000000..90222bd8 --- /dev/null +++ b/public/images/menuIcon.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/src/features/Header/index.tsx b/src/features/Header/index.tsx new file mode 100644 index 00000000..f1c08e2c --- /dev/null +++ b/src/features/Header/index.tsx @@ -0,0 +1,11 @@ +import React from 'react' + +import { Menu } from 'features/Menu' + +import { Wrapper } from './styled' + +export const Header = () => ( + + + +) diff --git a/src/features/Header/styled.tsx b/src/features/Header/styled.tsx new file mode 100644 index 00000000..4936b1c8 --- /dev/null +++ b/src/features/Header/styled.tsx @@ -0,0 +1,6 @@ +import styled from 'styled-components/macro' + +export const Wrapper = styled.header` + display: flex; + padding-top: 16px; +` diff --git a/src/features/HomePage/index.tsx b/src/features/HomePage/index.tsx index d046b534..0616deb0 100644 --- a/src/features/HomePage/index.tsx +++ b/src/features/HomePage/index.tsx @@ -1,33 +1,10 @@ import React from 'react' -import styled from 'styled-components/macro' - -import { Logo } from 'features/Logo' -import { CenterBlock } from 'features/Login/styled' -import { useAuthStore } from 'features/AuthStore' - -// временные компоненты -const TempContainer = styled.div` - margin-top: 50px; - color: white; - font-size: 20px; - display: flex; - flex-direction: column; -` - -const TempPageTitle = styled.span` - margin: 20px 0; -` - -export const HomePage = () => { - const { logout } = useAuthStore() - return ( - - - - HOME PAGE - - - - ) -} +import { Header } from 'features/Header' +import { MainWrapper } from 'features/MainWrapper' + +export const HomePage = () => ( + +
+ +) diff --git a/src/features/MainWrapper/index.tsx b/src/features/MainWrapper/index.tsx new file mode 100644 index 00000000..40b8e074 --- /dev/null +++ b/src/features/MainWrapper/index.tsx @@ -0,0 +1,6 @@ +import styled from 'styled-components/macro' + +export const MainWrapper = styled.div` + width: 100%; + padding-left: 80px; +` diff --git a/src/features/Menu/index.tsx b/src/features/Menu/index.tsx new file mode 100644 index 00000000..721b532b --- /dev/null +++ b/src/features/Menu/index.tsx @@ -0,0 +1,9 @@ +import React from 'react' + +import { Wrapper, ToggleButton } from './styled' + +export const Menu = () => ( + + + +) diff --git a/src/features/Menu/styled.tsx b/src/features/Menu/styled.tsx new file mode 100644 index 00000000..ff6fc9bb --- /dev/null +++ b/src/features/Menu/styled.tsx @@ -0,0 +1,20 @@ +import styled from 'styled-components/macro' + +export const Wrapper = styled.div` + display: flex; + justify-content: center; + align-items: center; + width: 304px; + height: 48px; +` +export const ToggleButton = styled.button` + width: 18px; + height: 16px; + background-image: url(/images/menuIcon.svg); + background-size: 100%; + background-repeat: no-repeat; + background-color: transparent; + border: none; + outline: none; + cursor: pointer; +`