From bb005553ca850becca1006428b39d5d3ee94c93d Mon Sep 17 00:00:00 2001 From: Sayuck Date: Tue, 12 Oct 2021 18:05:28 -0300 Subject: [PATCH 1/3] criando o footer Co-authored-by: KessJhones Co-authored-by: Giovannabbottino --- src/components/Footer/index.tsx | 37 +++++++++++++++++++++++-- src/components/Footer/styles.tsx | 46 +++++++++++++++++++++++++++++++- src/templates/Base/index.tsx | 4 +-- 3 files changed, 82 insertions(+), 5 deletions(-) diff --git a/src/components/Footer/index.tsx b/src/components/Footer/index.tsx index f8c433e..f5e1200 100644 --- a/src/components/Footer/index.tsx +++ b/src/components/Footer/index.tsx @@ -1,5 +1,38 @@ -import * as S from './styles'; +import Image from 'next/image'; +import Link from 'next/link'; + +import Logo from '@public/img/logo.svg'; -const Footer = () => Footer; +import * as S from './styles'; +const Footer = () => { + return ( + + + logo +

MYCHINE

+
+ + + Termos de uso + + + Documentação + + + Repositório + + + Sobre + + +
+ ); +}; export default Footer; diff --git a/src/components/Footer/styles.tsx b/src/components/Footer/styles.tsx index febfcb5..9b937be 100644 --- a/src/components/Footer/styles.tsx +++ b/src/components/Footer/styles.tsx @@ -1,6 +1,50 @@ -import styled from 'styled-components'; +import styled, { css } from 'styled-components'; +// import { hoverAnimation } from 'UI/animations'; export const Footer = styled.footer` grid-area: footer; grid-column: 1/-1; + align-items: center; +`; + +export const Logo = styled.div` + ${({ theme }) => css` + position: relative; + display: flex; + gap: 1rem; + align-items: center; + margin-right: ${theme.spacings.xlarge}; + cursor: pointer; + color: ${theme.colors.primary}; + text-shadow: + /* first layer at 1px */ -1px -1px 0px white, + 0px -1px 0px white, 1px -1px 0px white, -1px 0px 0px white, + 1px 0px 0px white, -1px 1px 0px white, 0px 1px 0px white, + 1px 1px 0px white, /* second layer at 2px */ -2px -2px 0px white, + -1px -2px 0px white, 0px -2px 0px white, 1px -2px 0px white, + 2px -2px 0px white, 2px -1px 0px white, 2px 0px 0px white, + 2px 1px 0px white, 2px 2px 0px white, 1px 2px 0px white, 0px 2px 0px white, + -1px 2px 0px white, -2px 2px 0px white, -2px 1px 0px white, + -2px 0px 0px white, -2px -1px 0px white; + + @media (max-width: 600px) { + margin-right: ${theme.spacings.large}; + } + `} +`; + +export const Links = styled.div` + ${({ theme }) => css` + display: flex; + align-items: center; + gap: ${theme.spacings.large}; + + @media (max-width: 600px) { + gap: calc(${theme.spacings.large} / 2); + } + + svg { + color: white; + } + `} `; diff --git a/src/templates/Base/index.tsx b/src/templates/Base/index.tsx index fedca6d..69983c1 100644 --- a/src/templates/Base/index.tsx +++ b/src/templates/Base/index.tsx @@ -1,4 +1,4 @@ -// import Footer from '@components/Footer'; +import Footer from '@components/Footer'; import Navbar from '@components/Navbar'; import * as S from './styles'; @@ -11,7 +11,7 @@ const BaseTemplate = ({ children }: IBaseTemplateProps) => ( {children} - {/*