All files / src/components/header Header.tsx

0% Statements 0/16
0% Branches 0/1
0% Functions 0/1
0% Lines 0/16

Press n or j to go to the next uncovered block, b, p or k for the previous block.

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                                                                         
import { Link } from 'react-router-dom';
import styled from 'styled-components';
 
const StyledHeader = styled.header`
  padding: 0;
  margin: 0;
  height: 64px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
`;
 
const StyleTitle = styled.h1`
  font-size: 2.8rem;
  padding: 0;
  margin: 0;
`;
 
const StyleLogo = styled.div`
  display: flex;
  align-items: center;
  height: 64px;
  margin: 0 30px;
`;
 
const Header = () => {
  return (
    <StyledHeader>
      <StyleLogo>
        <Link to="/" style={{ textDecoration: 'none', color: 'inherit' }}>
          <StyleTitle>だし</StyleTitle>
        </Link>
      </StyleLogo>
    </StyledHeader>
  );
};
 
export default Header;