From cb7e57617c68a23db5bb68fbaeed401e3f2439f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cain=C3=A3=20Milech?= Date: Mon, 9 Jan 2023 18:50:20 -0300 Subject: [PATCH] feat: Adiciona social medias --- .../src/components/Footer/Footer.tsx | 3 +- .../src/components/Footer/SocialMedias.tsx | 46 +++++++++++++++++++ .../assets/modules/Newsletter.module.scss | 9 ++++ .../Footer/assets/modules/Sitemap.module.scss | 5 ++ .../assets/modules/SocialMedias.module.scss | 46 +++++++++++++++++++ .../Footer/assets/svgs/facebook.svg | 16 +++++++ .../Footer/assets/svgs/instagram.svg | 18 ++++++++ .../Footer/assets/svgs/linkedin.svg | 18 ++++++++ .../components/Footer/assets/svgs/twitter.svg | 11 +++++ .../components/Footer/assets/svgs/youtube.svg | 11 +++++ 10 files changed, 182 insertions(+), 1 deletion(-) create mode 100644 react-project/src/components/Footer/SocialMedias.tsx create mode 100644 react-project/src/components/Footer/assets/modules/SocialMedias.module.scss create mode 100644 react-project/src/components/Footer/assets/svgs/facebook.svg create mode 100644 react-project/src/components/Footer/assets/svgs/instagram.svg create mode 100644 react-project/src/components/Footer/assets/svgs/linkedin.svg create mode 100644 react-project/src/components/Footer/assets/svgs/twitter.svg create mode 100644 react-project/src/components/Footer/assets/svgs/youtube.svg diff --git a/react-project/src/components/Footer/Footer.tsx b/react-project/src/components/Footer/Footer.tsx index 9a573b3..d16b975 100644 --- a/react-project/src/components/Footer/Footer.tsx +++ b/react-project/src/components/Footer/Footer.tsx @@ -1,6 +1,7 @@ import { Newsletter } from "./Newsletter"; import { SitemapAccordion } from "./SitemapAccordion"; import { Sitemap } from "./Sitemap"; +import { SocialMedias } from "./SocialMedias"; import footer from "./assets/modules/Footer.module.scss"; @@ -12,7 +13,7 @@ const Footer = () => {
-
REDES SOCIAIS
+
); diff --git a/react-project/src/components/Footer/SocialMedias.tsx b/react-project/src/components/Footer/SocialMedias.tsx new file mode 100644 index 0000000..053dd26 --- /dev/null +++ b/react-project/src/components/Footer/SocialMedias.tsx @@ -0,0 +1,46 @@ +import social from "./assets/modules/SocialMedias.module.scss"; + +import facebook from "./assets/svgs/facebook.svg"; +import instagram from "./assets/svgs/instagram.svg"; +import twitter from "./assets/svgs/twitter.svg"; +import youtube from "./assets/svgs/youtube.svg"; +import linkedin from "./assets/svgs/linkedin.svg"; + +const SocialMedias = () => { + return ( +
+
+
+ + Ícone do facebook + +
+
+ + Ícone do instagram + +
+
+ + Ícone do twitter + +
+
+ + Ícone do youtube + +
+
+ + Ícone do linkedin + +
+
+
+ www.loremipsum.com +
+
+ ); +}; + +export { SocialMedias }; diff --git a/react-project/src/components/Footer/assets/modules/Newsletter.module.scss b/react-project/src/components/Footer/assets/modules/Newsletter.module.scss index ae16366..5cb9593 100644 --- a/react-project/src/components/Footer/assets/modules/Newsletter.module.scss +++ b/react-project/src/components/Footer/assets/modules/Newsletter.module.scss @@ -41,6 +41,10 @@ position: relative; display: flex; + @media screen and (max-width: 1024px) { + display: inherit; + } + input { padding: 13px 16px; border: 1px solid var(--gray-300); @@ -99,6 +103,11 @@ letter-spacing: 0.05em; cursor: pointer; + &:hover { + background-color: var(--black-100); + transition: 0.3s; + } + @media screen and (min-width: 2500px) { width: 246px; height: 59px; diff --git a/react-project/src/components/Footer/assets/modules/Sitemap.module.scss b/react-project/src/components/Footer/assets/modules/Sitemap.module.scss index 2f82665..9d8ac5e 100644 --- a/react-project/src/components/Footer/assets/modules/Sitemap.module.scss +++ b/react-project/src/components/Footer/assets/modules/Sitemap.module.scss @@ -40,6 +40,11 @@ color: var(--black-200); text-decoration: none; + &:hover { + background-color: var(--gray-500); + transition: 0.3s; + } + @media screen and (min-width: 2500px) { font-size: 24px; line-height: 28px; diff --git a/react-project/src/components/Footer/assets/modules/SocialMedias.module.scss b/react-project/src/components/Footer/assets/modules/SocialMedias.module.scss new file mode 100644 index 0000000..1f868a1 --- /dev/null +++ b/react-project/src/components/Footer/assets/modules/SocialMedias.module.scss @@ -0,0 +1,46 @@ +.social { + &__medias { + display: flex; + gap: 10px; + margin-bottom: 12px; + + figure { + display: contents; + + a { + display: contents; + + img { + @media screen and (min-width: 2500px) { + width: 75px; + height: 75px; + } + } + } + } + } + + &__website { + @media screen and (max-width: 1024px) { + display: none; + } + + a { + font-weight: 400; + font-size: 14px; + line-height: 16px; + color: var(--black-200); + text-decoration: none; + + &:hover { + background-color: var(--gray-500); + transition: 0.3s; + } + + @media screen and (min-width: 2500px) { + font-size: 28px; + line-height: 33px; + } + } + } +} diff --git a/react-project/src/components/Footer/assets/svgs/facebook.svg b/react-project/src/components/Footer/assets/svgs/facebook.svg new file mode 100644 index 0000000..65c657c --- /dev/null +++ b/react-project/src/components/Footer/assets/svgs/facebook.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/react-project/src/components/Footer/assets/svgs/instagram.svg b/react-project/src/components/Footer/assets/svgs/instagram.svg new file mode 100644 index 0000000..18391db --- /dev/null +++ b/react-project/src/components/Footer/assets/svgs/instagram.svg @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/react-project/src/components/Footer/assets/svgs/linkedin.svg b/react-project/src/components/Footer/assets/svgs/linkedin.svg new file mode 100644 index 0000000..d476932 --- /dev/null +++ b/react-project/src/components/Footer/assets/svgs/linkedin.svg @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/react-project/src/components/Footer/assets/svgs/twitter.svg b/react-project/src/components/Footer/assets/svgs/twitter.svg new file mode 100644 index 0000000..aaabfdf --- /dev/null +++ b/react-project/src/components/Footer/assets/svgs/twitter.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/react-project/src/components/Footer/assets/svgs/youtube.svg b/react-project/src/components/Footer/assets/svgs/youtube.svg new file mode 100644 index 0000000..e9d8e5f --- /dev/null +++ b/react-project/src/components/Footer/assets/svgs/youtube.svg @@ -0,0 +1,11 @@ + + + + + + + + + + +