icns-frontend/components/logo/index.tsx

37 lines
648 B
TypeScript
Raw Normal View History

2022-12-06 14:53:31 +00:00
// NextJs
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
import { FunctionComponent } from "react";
2022-12-19 08:30:00 +00:00
import styled from "styled-components";
2022-12-06 14:53:31 +00:00
export const Logo: FunctionComponent = () => {
return (
2022-12-07 09:17:59 +00:00
<Link href="/">
<LogoContainer>
2022-12-19 08:30:00 +00:00
<LogoIcon />
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;
@media screen and (max-width: 1280px) {
display: none;
}
2022-12-15 04:25:07 +00:00
`;