forked from M3-Academy/desafio-react-e-typescript
Merge branch 'feature/footerTop' into desenvolvimento
This commit is contained in:
commit
90019105fc
16
desafio-5/src/components/assets/icons/Facebook.svg
Normal file
16
desafio-5/src/components/assets/icons/Facebook.svg
Normal file
@ -0,0 +1,16 @@
|
||||
<svg width="35" height="35" viewBox="0 0 35 35" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g clip-path="url(#clip0_7347_1088)">
|
||||
<g clip-path="url(#clip1_7347_1088)">
|
||||
<path d="M19.1778 27.4911V18.544H22.1734L22.6228 15.0561H19.1778V12.8296C19.1778 11.8201 19.4564 11.1321 20.9026 11.1321L22.744 11.1314V8.01168C22.4256 7.97021 21.3324 7.87512 20.0601 7.87512C17.4033 7.87512 15.5845 9.50028 15.5845 12.4842V15.0561H12.5798V18.544H15.5845V27.4911H19.1778Z" fill="#303030"/>
|
||||
</g>
|
||||
<circle cx="17.5" cy="17.5" r="16.5" stroke="#303030" stroke-width="2"/>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_7347_1088">
|
||||
<rect width="35" height="35" fill="white"/>
|
||||
</clipPath>
|
||||
<clipPath id="clip1_7347_1088">
|
||||
<rect width="19.574" height="19.616" fill="white" transform="translate(7.875 7.87509)"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
After Width: | Height: | Size: 804 B |
18
desafio-5/src/components/assets/icons/Instagram.svg
Normal file
18
desafio-5/src/components/assets/icons/Instagram.svg
Normal file
@ -0,0 +1,18 @@
|
||||
<svg width="35" height="35" viewBox="0 0 35 35" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g clip-path="url(#clip0_7347_1093)">
|
||||
<g clip-path="url(#clip1_7347_1093)">
|
||||
<path d="M22.0996 7.87509H13.2966C10.3071 7.87509 7.875 10.3036 7.875 13.2884V22.0777C7.875 25.0626 10.3071 27.491 13.2966 27.491H22.0996C25.0893 27.491 27.5214 25.0625 27.5214 22.0777V13.2884C27.5215 10.3036 25.0893 7.87509 22.0996 7.87509ZM25.7784 22.0777C25.7784 24.103 24.1281 25.7506 22.0997 25.7506H13.2966C11.2683 25.7507 9.61813 24.103 9.61813 22.0777V13.2884C9.61813 11.2632 11.2683 9.61551 13.2966 9.61551H22.0996C24.128 9.61551 25.7783 11.2632 25.7783 13.2884V22.0777H25.7784Z" fill="#303030"/>
|
||||
<path d="M17.6981 12.6288C14.9067 12.6288 12.6357 14.8962 12.6357 17.6833C12.6357 20.4703 14.9067 22.7376 17.6981 22.7376C20.4896 22.7376 22.7605 20.4703 22.7605 17.6833C22.7605 14.8962 20.4896 12.6288 17.6981 12.6288ZM17.6981 20.9971C15.868 20.9971 14.3789 19.5105 14.3789 17.6832C14.3789 15.8558 15.8678 14.3691 17.6981 14.3691C19.5284 14.3691 21.0174 15.8558 21.0174 17.6832C21.0174 19.5105 19.5283 20.9971 17.6981 20.9971Z" fill="#303030"/>
|
||||
<path d="M22.9729 11.1531C22.637 11.1531 22.3071 11.2889 22.0699 11.5267C21.8316 11.7634 21.6946 12.0929 21.6946 12.4294C21.6946 12.7648 21.8317 13.0943 22.0699 13.3321C22.307 13.5688 22.637 13.7057 22.9729 13.7057C23.3099 13.7057 23.6387 13.5688 23.877 13.3321C24.1152 13.0943 24.2512 12.7647 24.2512 12.4294C24.2512 12.0929 24.1152 11.7634 23.877 11.5267C23.6399 11.2889 23.3099 11.1531 22.9729 11.1531Z" fill="#303030"/>
|
||||
</g>
|
||||
<circle cx="17.5" cy="17.5" r="16.5" stroke="#303030" stroke-width="2"/>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_7347_1093">
|
||||
<rect width="35" height="35" fill="white"/>
|
||||
</clipPath>
|
||||
<clipPath id="clip1_7347_1093">
|
||||
<rect width="19.6465" height="19.616" fill="white" transform="translate(7.875 7.87509)"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
After Width: | Height: | Size: 1.8 KiB |
18
desafio-5/src/components/assets/icons/Linkedin.svg
Normal file
18
desafio-5/src/components/assets/icons/Linkedin.svg
Normal file
@ -0,0 +1,18 @@
|
||||
<svg width="35" height="35" viewBox="0 0 35 35" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g clip-path="url(#clip0_7347_1108)">
|
||||
<circle cx="17.5" cy="17.5" r="16.5" stroke="#303030" stroke-width="2"/>
|
||||
<g clip-path="url(#clip1_7347_1108)">
|
||||
<path d="M13.4445 13.8592H10.298C10.1583 13.8592 10.0452 13.9724 10.0452 14.112V24.2205C10.0452 24.3602 10.1583 24.4733 10.298 24.4733H13.4445C13.5842 24.4733 13.6973 24.3602 13.6973 24.2205V14.112C13.6973 13.9724 13.5842 13.8592 13.4445 13.8592Z" fill="#303030"/>
|
||||
<path d="M11.8725 8.83395C10.7276 8.83395 9.79614 9.76438 9.79614 10.908C9.79614 12.0522 10.7276 12.9829 11.8725 12.9829C13.0165 12.9829 13.9472 12.0521 13.9472 10.908C13.9472 9.76438 13.0165 8.83395 11.8725 8.83395Z" fill="#303030"/>
|
||||
<path d="M21.4482 13.6079C20.1844 13.6079 19.2502 14.1512 18.6835 14.7685V14.112C18.6835 13.9724 18.5704 13.8592 18.4307 13.8592H15.4174C15.2777 13.8592 15.1646 13.9724 15.1646 14.112V24.2206C15.1646 24.3602 15.2777 24.4734 15.4174 24.4734H18.557C18.6967 24.4734 18.8098 24.3602 18.8098 24.2206V19.2192C18.8098 17.5338 19.2676 16.8772 20.4425 16.8772C21.722 16.8772 21.8236 17.9298 21.8236 19.3059V24.2206C21.8236 24.3603 21.9368 24.4734 22.0764 24.4734H25.2173C25.3569 24.4734 25.4701 24.3603 25.4701 24.2206V18.6759C25.4701 16.1698 24.9922 13.6079 21.4482 13.6079Z" fill="#303030"/>
|
||||
</g>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_7347_1108">
|
||||
<rect width="35" height="35" fill="white"/>
|
||||
</clipPath>
|
||||
<clipPath id="clip1_7347_1108">
|
||||
<rect width="15.6739" height="15.6739" fill="white" transform="translate(9.79614 8.81671)"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
After Width: | Height: | Size: 1.5 KiB |
18
desafio-5/src/components/assets/icons/Svg.svg
Normal file
18
desafio-5/src/components/assets/icons/Svg.svg
Normal file
@ -0,0 +1,18 @@
|
||||
<svg width="35" height="35" viewBox="0 0 35 35" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g clip-path="url(#clip0_7347_1108)">
|
||||
<circle cx="17.5" cy="17.5" r="16.5" stroke="#303030" stroke-width="2"/>
|
||||
<g clip-path="url(#clip1_7347_1108)">
|
||||
<path d="M13.4445 13.8592H10.298C10.1583 13.8592 10.0452 13.9724 10.0452 14.112V24.2205C10.0452 24.3602 10.1583 24.4733 10.298 24.4733H13.4445C13.5842 24.4733 13.6973 24.3602 13.6973 24.2205V14.112C13.6973 13.9724 13.5842 13.8592 13.4445 13.8592Z" fill="#303030"/>
|
||||
<path d="M11.8725 8.83395C10.7276 8.83395 9.79614 9.76438 9.79614 10.908C9.79614 12.0522 10.7276 12.9829 11.8725 12.9829C13.0165 12.9829 13.9472 12.0521 13.9472 10.908C13.9472 9.76438 13.0165 8.83395 11.8725 8.83395Z" fill="#303030"/>
|
||||
<path d="M21.4482 13.6079C20.1844 13.6079 19.2502 14.1512 18.6835 14.7685V14.112C18.6835 13.9724 18.5704 13.8592 18.4307 13.8592H15.4174C15.2777 13.8592 15.1646 13.9724 15.1646 14.112V24.2206C15.1646 24.3602 15.2777 24.4734 15.4174 24.4734H18.557C18.6967 24.4734 18.8098 24.3602 18.8098 24.2206V19.2192C18.8098 17.5338 19.2676 16.8772 20.4425 16.8772C21.722 16.8772 21.8236 17.9298 21.8236 19.3059V24.2206C21.8236 24.3603 21.9368 24.4734 22.0764 24.4734H25.2173C25.3569 24.4734 25.4701 24.3603 25.4701 24.2206V18.6759C25.4701 16.1698 24.9922 13.6079 21.4482 13.6079Z" fill="#303030"/>
|
||||
</g>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_7347_1108">
|
||||
<rect width="35" height="35" fill="white"/>
|
||||
</clipPath>
|
||||
<clipPath id="clip1_7347_1108">
|
||||
<rect width="15.6739" height="15.6739" fill="white" transform="translate(9.79614 8.81671)"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
After Width: | Height: | Size: 1.5 KiB |
11
desafio-5/src/components/assets/icons/Twiter.svg
Normal file
11
desafio-5/src/components/assets/icons/Twiter.svg
Normal file
@ -0,0 +1,11 @@
|
||||
<svg width="35" height="35" viewBox="0 0 35 35" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g clip-path="url(#clip0_7347_1100)">
|
||||
<circle cx="17.5" cy="17.5" r="16.5" stroke="#303030" stroke-width="2"/>
|
||||
<path d="M29.9914 10.1563C29.0947 10.5497 28.1392 10.8104 27.143 10.937C28.1678 10.3251 28.95 9.36358 29.3177 8.20462C28.3622 8.7743 27.3072 9.1767 26.1829 9.40126C25.2757 8.43521 23.9826 7.83688 22.5719 7.83688C19.835 7.83688 17.6316 10.0584 17.6316 12.7817C17.6316 13.1735 17.6648 13.5503 17.7462 13.909C13.6363 13.7086 9.99962 11.7388 7.5566 8.73813C7.13009 9.47812 6.87991 10.3251 6.87991 11.2369C6.87991 12.949 7.76157 14.4666 9.07577 15.3453C8.28152 15.3302 7.50235 15.0996 6.84223 14.7364C6.84223 14.7515 6.84223 14.7711 6.84223 14.7907C6.84223 17.193 8.55581 19.1884 10.8029 19.6481C10.4005 19.7581 9.96195 19.8108 9.5068 19.8108C9.19031 19.8108 8.8708 19.7928 8.57089 19.7264C9.21141 21.6842 11.029 23.1235 13.1902 23.1702C11.5082 24.4859 9.37267 25.2786 7.06076 25.2786C6.65535 25.2786 6.26652 25.2605 5.87769 25.2108C8.06751 26.623 10.6628 27.4293 13.4614 27.4293C22.5583 27.4293 27.5318 19.8937 27.5318 13.3619C27.5318 13.1434 27.5243 12.9324 27.5137 12.7229C28.4948 12.0266 29.3192 11.157 29.9914 10.1563Z" fill="#303030"/>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_7347_1100">
|
||||
<rect width="35" height="35" fill="white"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
After Width: | Height: | Size: 1.3 KiB |
11
desafio-5/src/components/assets/icons/Youtube.svg
Normal file
11
desafio-5/src/components/assets/icons/Youtube.svg
Normal file
@ -0,0 +1,11 @@
|
||||
<svg width="35" height="35" viewBox="0 0 35 35" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g clip-path="url(#clip0_7347_1105)">
|
||||
<circle cx="17.5" cy="17.5" r="16.5" stroke="#303030" stroke-width="2"/>
|
||||
<path d="M27.8026 12.2486C27.5447 11.2896 26.7885 10.5336 25.8296 10.2754C24.0778 9.79605 17.0705 9.79605 17.0705 9.79605C17.0705 9.79605 10.0635 9.79605 8.3117 10.2572C7.37124 10.5152 6.59666 11.2897 6.33869 12.2486C5.87769 14.0003 5.87769 17.633 5.87769 17.633C5.87769 17.633 5.87769 21.284 6.33869 23.0174C6.59693 23.9763 7.35279 24.7323 8.31183 24.9905C10.0819 25.47 17.0708 25.47 17.0708 25.47C17.0708 25.47 24.0778 25.47 25.8296 25.0088C26.7887 24.7507 27.5447 23.9947 27.8029 23.0358C28.2638 21.284 28.2638 17.6515 28.2638 17.6515C28.2638 17.6515 28.2822 14.0003 27.8026 12.2486ZM14.8396 20.989V14.277L20.6665 17.633L14.8396 20.989Z" fill="#303030"/>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_7347_1105">
|
||||
<rect width="35" height="35" fill="white"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
After Width: | Height: | Size: 980 B |
@ -1,7 +1,4 @@
|
||||
@import "../utils/Variables.scss";
|
||||
.hiden{
|
||||
display: none !important;
|
||||
}
|
||||
.footer{
|
||||
&_wrapper{
|
||||
display: flex;
|
||||
@ -76,7 +73,89 @@
|
||||
justify-content: space-between;
|
||||
padding: 50px 100px;
|
||||
align-items: flex-start;
|
||||
background: pink;
|
||||
&_menu{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
width: 65.556%;
|
||||
&_departments{
|
||||
max-width: 156px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
div{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
h2{
|
||||
font-family: 'Roboto',sans-serif;
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
font-size: 14px;
|
||||
line-height: 16px;
|
||||
text-transform: uppercase;
|
||||
color: $-black-3030;
|
||||
}
|
||||
|
||||
}
|
||||
ul{
|
||||
height: 100%;
|
||||
list-style: none;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
justify-content: space-between;
|
||||
li{
|
||||
&[datatype=last_departaments]{
|
||||
text-decoration: underline;
|
||||
}
|
||||
&[datatype=Call_Center]{
|
||||
p{
|
||||
font-weight: 700;
|
||||
}
|
||||
}
|
||||
a,p{
|
||||
color: $-black-3030;
|
||||
font-family: 'Roboto',sans-serif;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-size: 12px;
|
||||
line-height: 14px;
|
||||
text-transform: capitalize;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
&_media{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: 20%;
|
||||
gap: 12px;
|
||||
a{
|
||||
color: $-black-3030;
|
||||
font-family: 'Roboto',sans-serif;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
line-height: 16px;
|
||||
}
|
||||
&_MediaWraaper{
|
||||
width: 100%;
|
||||
max-height: 6.484vh;
|
||||
fieldset{
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
border: 0;
|
||||
height: 100%;
|
||||
max-height: 6.484vh;
|
||||
a{
|
||||
width:16.21%;
|
||||
img{
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
&_bottom{
|
||||
background: $-black;
|
||||
@ -159,6 +238,13 @@
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 280px) and (max-width: 1024px){
|
||||
.hiden{
|
||||
height: 0 !important;
|
||||
opacity: 0;
|
||||
}
|
||||
.active{
|
||||
display: flex !important;
|
||||
}
|
||||
.footer{
|
||||
&_wrapper{
|
||||
&_Form{
|
||||
@ -184,7 +270,60 @@
|
||||
}
|
||||
}
|
||||
&_Top{
|
||||
width: 100%;
|
||||
flex-direction: column;
|
||||
padding: 50px 16px;
|
||||
gap: 12px;
|
||||
&_menu{
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
&_departments{
|
||||
max-width:100%;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
ul{
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
transition: all 0.2s ease-in-out;
|
||||
&.active{
|
||||
overflow: visible;
|
||||
transition: all 0.45s ease-in-out;
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
&_media{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: 62.68%;
|
||||
gap: 12px;
|
||||
a{
|
||||
color: $-black-3030;
|
||||
font-family: 'Roboto',sans-serif;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-size: 14px;
|
||||
line-height: 16px;
|
||||
}
|
||||
&_MediaWraaper{
|
||||
fieldset{
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
border: 0;
|
||||
height: 100%;
|
||||
max-height: 100%;
|
||||
a{
|
||||
width:max-content;
|
||||
img{
|
||||
width: 35px;
|
||||
height: 35px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
&_bottom{
|
||||
flex-direction: column;
|
||||
@ -286,7 +425,52 @@
|
||||
}
|
||||
}
|
||||
&_Top{
|
||||
width: 100%;
|
||||
&_menu{
|
||||
&_departments{
|
||||
max-width: 316px;
|
||||
div{
|
||||
h2{
|
||||
font-size: 28px;
|
||||
line-height: 33px;
|
||||
}
|
||||
}
|
||||
ul{
|
||||
li{
|
||||
a,p{
|
||||
font-size: 24px;
|
||||
line-height: 28px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
&_media{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: 20%;
|
||||
gap: 12px;
|
||||
a{
|
||||
font-size: 24px;
|
||||
line-height: 28px;
|
||||
}
|
||||
&_MediaWraaper{
|
||||
width: 100%;
|
||||
max-height: 6.484vh;
|
||||
fieldset{
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
border: 0;
|
||||
height: 100%;
|
||||
max-height: 6.484vh;
|
||||
a{
|
||||
width:16.21%;
|
||||
img{
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
&_bottom{
|
||||
p{
|
||||
@ -317,4 +501,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,19 +2,33 @@ import React from "react";
|
||||
import { MenuList } from "./ListMenu";
|
||||
import { SocialMedia } from "./SocialMedia";
|
||||
|
||||
interface Calsses {
|
||||
interface Classes {
|
||||
DadClass?: string;
|
||||
wrapperClass?: string;
|
||||
DepartamentClass?: string;
|
||||
MediaCLass?: string;
|
||||
MenuClass?: string;
|
||||
SectionListCLass?: string;
|
||||
hidenCLass?: string;
|
||||
activeListCLass?: string;
|
||||
}
|
||||
interface TopFooteratrr extends Classes{
|
||||
}
|
||||
|
||||
export const TopFooter: React.FC<Calsses> = (
|
||||
{DadClass}
|
||||
export const TopFooter: React.FC<TopFooteratrr> = (
|
||||
{DadClass, MediaCLass,wrapperClass,MenuClass,DepartamentClass,SectionListCLass,activeListCLass,hidenCLass}
|
||||
) => {
|
||||
|
||||
|
||||
return(
|
||||
<div className={DadClass}>
|
||||
<MenuList />
|
||||
<SocialMedia />
|
||||
<MenuList wrapperClass={MenuClass}
|
||||
DepartamentClass={DepartamentClass}
|
||||
SectionListCLass={SectionListCLass}
|
||||
activeListCLass={activeListCLass}
|
||||
hidenCLass={hidenCLass}
|
||||
/>
|
||||
<SocialMedia wrapperClass={wrapperClass}
|
||||
MediaCLass={MediaCLass} />
|
||||
</div>
|
||||
)
|
||||
};
|
||||
|
@ -1,29 +1,107 @@
|
||||
import React from "react"
|
||||
import React,{ useState, useEffect} from "react"
|
||||
|
||||
interface Calsses {
|
||||
interface Classes {
|
||||
wrapperClass?: string;
|
||||
DepartamentClass?: string;
|
||||
SectionListCLass?: string;
|
||||
hidenCLass?: string;
|
||||
activeListCLass?: string;
|
||||
}
|
||||
|
||||
export const MenuList: React.FC<Calsses> = (
|
||||
{wrapperClass}
|
||||
|
||||
export const MenuList: React.FC<Classes> = (
|
||||
{wrapperClass,DepartamentClass,SectionListCLass,hidenCLass,activeListCLass}
|
||||
) => {
|
||||
const [screenSize, setScreenSize] = useState({ width: window.innerWidth, height: window.innerHeight });
|
||||
|
||||
const [activeSection, setActiveSection] = useState("nothing");
|
||||
const [switchSymbol, setswitchSymbol] = useState(true);
|
||||
const handleClick = (section:string) => {
|
||||
setActiveSection(section);
|
||||
setswitchSymbol(!switchSymbol)
|
||||
}
|
||||
const symbols = {
|
||||
plus:"+",
|
||||
minum:"-"
|
||||
}
|
||||
|
||||
useEffect(() => {
|
||||
const ToggleResize= ()=> {
|
||||
setScreenSize({ width: window.innerWidth, height: window.innerHeight });
|
||||
}
|
||||
window.addEventListener('resize', ToggleResize);
|
||||
return () => {
|
||||
window.removeEventListener('resize', ToggleResize);
|
||||
};
|
||||
}, [screenSize]);
|
||||
let activated = {
|
||||
screen:screenSize.width,
|
||||
active:activeSection
|
||||
}
|
||||
return(
|
||||
<div className={wrapperClass}>
|
||||
Menu List
|
||||
<div className={DepartamentClass}>
|
||||
<div>
|
||||
<h2>Institucional</h2>
|
||||
{screenSize.width < 1025 ? <button onClick={() => {handleClick("Institucional")}}>{activated.active === "Institucional" && !switchSymbol? symbols.minum:symbols.plus}</button>: null}
|
||||
</div>
|
||||
<ul className={`${SectionListCLass} ${activated.screen <= 1024 && activated.active === "Institucional" && !switchSymbol ? activeListCLass: hidenCLass }`}>
|
||||
<li>
|
||||
<a href="/">Quem Somos</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/">Política de Privacidade</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/">Segurança</a>
|
||||
</li>
|
||||
<li datatype="last_departaments">
|
||||
<a href="/">Seja um Revendedor</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div className={DepartamentClass}>
|
||||
<div>
|
||||
<h2>Dúvidas</h2>
|
||||
{screenSize.width < 1025 ? <button onClick={() => handleClick("Duvidas")}>{activated.active === "Duvidas" && !switchSymbol? symbols.minum:symbols.plus}</button>: null}
|
||||
</div>
|
||||
<ul className={`${SectionListCLass} ${activated.screen <= 1024 && activated.active === "Duvidas" && !switchSymbol ? activeListCLass: hidenCLass }`}>
|
||||
<li>
|
||||
<a href="/">Entrega</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/">Pagamento</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/">Trocas e Devoluções</a>
|
||||
</li>
|
||||
<li datatype="last_departaments">
|
||||
<a href="/">Dúvidas Frequentes</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div className={DepartamentClass}>
|
||||
<div>
|
||||
<h2>FALE CONOSCO</h2>
|
||||
{screenSize.width < 1025 ? <button onClick={() => handleClick("FALE_CONOSCO")}>{activated.active === "FALE_CONOSCO" && !switchSymbol? symbols.minum:symbols.plus}</button>: null}
|
||||
</div>
|
||||
<ul className={`${SectionListCLass} ${activated.screen <= 1024 && activated.active === "FALE_CONOSCO" && !switchSymbol ? activeListCLass: hidenCLass }`}>
|
||||
<li datatype="Call_Center">
|
||||
<p>Atendimento ao Consumidor</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>(11) 4159-9504</p>
|
||||
</li>
|
||||
<li datatype="Call_Center">
|
||||
<p>Atendimento Online</p>
|
||||
</li>
|
||||
<li datatype="last_departaments">
|
||||
<p>(11) 4159-9504</p>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
};
|
||||
|
||||
export const MenuListmobile: React.FC<Calsses> = (
|
||||
{wrapperClass}
|
||||
) => {
|
||||
|
||||
|
||||
return(
|
||||
<div className={wrapperClass}>
|
||||
Menu List
|
||||
</div>
|
||||
)
|
||||
};
|
@ -1,18 +1,21 @@
|
||||
import React from "react"
|
||||
import {SocialImages} from "../moleculas/SocialImages"
|
||||
|
||||
interface Calsses {
|
||||
wrapperClass?: string;
|
||||
MediaCLass?: string;
|
||||
}
|
||||
|
||||
|
||||
export const SocialMedia: React.FC<Calsses> = (
|
||||
{wrapperClass}
|
||||
{wrapperClass,MediaCLass}
|
||||
) => {
|
||||
|
||||
|
||||
return(
|
||||
<div className={wrapperClass}>
|
||||
Social media
|
||||
<SocialImages MediaCLass={MediaCLass} />
|
||||
<a href="https://br.lipsum.com">www.loremipsum.com</a>
|
||||
</div>
|
||||
)
|
||||
};
|
@ -6,6 +6,7 @@ import { Newsletter } from "./celulas/Newsletter";
|
||||
import { TopFooter } from "./celulas/FooterTop";
|
||||
import { BottomFooter } from "./celulas/FooterBottom";
|
||||
|
||||
|
||||
const Footer = () =>{
|
||||
return (
|
||||
<footer>
|
||||
@ -14,7 +15,15 @@ const Footer = () =>{
|
||||
FormClass={FooterStyles.footer_wrapper_Form__Newsletter}
|
||||
Errorclass={FooterStyles.hiden}
|
||||
/>
|
||||
<TopFooter DadClass={FooterStyles.footer_Top}/>
|
||||
<TopFooter DadClass={FooterStyles.footer_Top}
|
||||
MenuClass={FooterStyles.footer_Top_menu}
|
||||
DepartamentClass={FooterStyles.footer_Top_menu_departments}
|
||||
SectionListCLass={FooterStyles.footer_Top_menu_departments_sections}
|
||||
wrapperClass={FooterStyles.footer_Top_media}
|
||||
MediaCLass={FooterStyles.footer_Top_media_MediaWraaper}
|
||||
activeListCLass={FooterStyles.active}
|
||||
hidenCLass={FooterStyles.hiden}
|
||||
/>
|
||||
<BottomFooter Dadclass={FooterStyles.footer_bottom}
|
||||
wraaperclass={FooterStyles.footer_bottom_wraaper}
|
||||
Paymentsclass={FooterStyles.footer_bottom_wraaper__Payments}
|
||||
|
38
desafio-5/src/components/scripts/moleculas/SocialImages.tsx
Normal file
38
desafio-5/src/components/scripts/moleculas/SocialImages.tsx
Normal file
@ -0,0 +1,38 @@
|
||||
import React from "react";
|
||||
import Face from "../../assets/icons/Facebook.svg"
|
||||
import Insta from "../../assets/icons/Instagram.svg"
|
||||
import Twiter from "../../assets/icons/Twiter.svg"
|
||||
import Linkedin from "../../assets/icons/Linkedin.svg"
|
||||
import Yt from "../../assets/icons/Youtube.svg"
|
||||
|
||||
|
||||
interface Calsses {
|
||||
MediaCLass?: string;
|
||||
}
|
||||
|
||||
|
||||
export const SocialImages: React.FC<Calsses> = (
|
||||
{MediaCLass}
|
||||
) => {
|
||||
return(
|
||||
<div className={MediaCLass}>
|
||||
<fieldset >
|
||||
<a href="/">
|
||||
<img datatype="" src={Face} alt="Facebook" />
|
||||
</a>
|
||||
<a href="/">
|
||||
<img datatype="" src={Insta} alt="Instagram" />
|
||||
</a>
|
||||
<a href="/">
|
||||
<img datatype="Twiter" src={Twiter} alt="Twiter" />
|
||||
</a>
|
||||
<a href="/">
|
||||
<img datatype="Youtube" src={Yt} alt="Youtube" />
|
||||
</a>
|
||||
<a href="/">
|
||||
<img datatype="Linkedin" src={Linkedin} alt="Linkedin" />
|
||||
</a>
|
||||
</fieldset>
|
||||
</div>
|
||||
)
|
||||
};
|
@ -1,6 +1,7 @@
|
||||
// colors
|
||||
$-black : #000000;
|
||||
$-black-100E : #100D0E;
|
||||
$-black-3030 :#303030;
|
||||
$-white:#ffffff;
|
||||
$-gray: #D6D6D6;
|
||||
$-gray-light:#e5e5e5;
|
||||
|
@ -73,7 +73,7 @@ const Institucional = () => {
|
||||
</a>
|
||||
<img id={MainStyles["iconarrow"]} src={Leftarrow} alt="seta" />
|
||||
</fieldset>
|
||||
<a href="/">
|
||||
<a href="/">
|
||||
<BreadcrumbTitle className={MainStyles.main_wrapper_breadcrumb_title} nameTitle={title}/>
|
||||
</a>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user