import Image from 'next/image';
import logo from 'public/assets/images/logo-primary.svg';
import styled from 'styled-components';
import { Flex } from 'ui/grid';
import { min } from 'ui/mq';
import styles from './Logo.module.css';

const ImageWrapper = styled.div`
  width: 100px;

  ${min('laptop')} {
    width: 135px;
  }
`;

const LogoText = styled.h3`
  margin: 0;
  text-transform: uppercase;
  color: #fff;
  font-size: 0.85rem;
  font-family: 'Montserrat';
  font-weight: 500;
  ${min('laptop')} {
    font-size: 1.2rem;
  }
`;

function Logo() {
  return (
    <Flex flexDirection="column" alignItems="flex-start" justifyContent="space-between">
      <ImageWrapper>
        <Image priority className={styles.logo} alt="logo" src={logo} layout="responsive" />
      </ImageWrapper>
      <LogoText>Лизинговый Калькулятор</LogoText>
    </Flex>
  );
}

export default Logo;
