icns-frontend/components/logo/index.tsx

40 lines
735 B
TypeScript
Raw Normal View History

2022-12-06 14:53:31 +00:00
// NextJs
import Image from "next/image";
2022-12-07 09:17:59 +00:00
import Link from "next/link";
2022-12-06 14:53:31 +00:00
// Image Assets
import LogoIcon from "../../public/images/svg/logo.svg";
// Styles
2022-12-15 04:25:07 +00:00
import styled from "styled-components";
2022-12-06 14:53:31 +00:00
import { FunctionComponent } from "react";
export const Logo: FunctionComponent = () => {
return (
2022-12-07 09:17:59 +00:00
<Link href="/">
<LogoContainer>
2022-12-15 04:25:07 +00:00
<Image
src={LogoIcon}
fill={true}
sizes="10rem"
alt="Home Logo"
priority
/>
2022-12-07 09:17:59 +00:00
</LogoContainer>
</Link>
2022-12-06 14:53:31 +00:00
);
};
2022-12-15 04:25:07 +00:00
export const LogoContainer = styled.div`
display: flex;
align-items: center;
justify-content: center;
position: absolute;
width: 10rem;
height: 5rem;
2022-12-15 15:43:18 +00:00
margin-top: 5rem;
margin-left: 5rem;
2022-12-15 04:25:07 +00:00
`;