-
Notifications
You must be signed in to change notification settings - Fork 1
/
Header.tsx
39 lines (35 loc) · 917 Bytes
/
Header.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import React from 'react'
import styled from 'styled-components'
import { Link } from 'react-router-dom'
import logo from '../logo_mml.svg'
import '../App.css'
const HeaderStyled = styled.header`
background-color: #111;
min-height: 4vh;
display: flex;
justify-content: center;
font-size: calc(10px + 2vmin);
color: #fff;
position: relative;
flex: 1;
`
const LogoStyled = styled.div`
margin: 5px 0 0 0;
display: flex;
align-items: center;
justify-content: center;
height: 10vh;
`
function Header() {
return (
<HeaderStyled>
<LogoStyled>
<Link to="/">
<img src={logo} className="App-logo" alt="logo" data-testid="logo" />
<h1 className="visuallyhidden">My Movie Library</h1>
</Link>
</LogoStyled>
</HeaderStyled>
)
}
export default Header