-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
desafio 10 - finaliza footer da página
- Loading branch information
1 parent
b9920e5
commit 753784a
Showing
4 changed files
with
124 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// Images | ||
|
||
import instagramIcon from '../../assets/images/instagram.svg'; | ||
import facebookIcon from '../../assets/images/facebook.svg'; | ||
import youtubeIcon from '../../assets/images/youtube.svg'; | ||
import twitterIcon from '../../assets/images/twitter.svg'; | ||
|
||
// Styled Component | ||
|
||
import { | ||
FooterContainer, Label, Icon, | ||
SocialMediaList, CopyHomeYou, SocialMediaContainer | ||
} from "./styles"; | ||
|
||
|
||
const Footer = () => { | ||
|
||
const iconsSocialMedia = [ | ||
{ icon: instagramIcon, id: 1 }, | ||
{ icon: facebookIcon, id: 2 }, | ||
{ icon: youtubeIcon, id: 3 }, | ||
{ icon: twitterIcon, id: 4 }, | ||
]; | ||
|
||
return ( | ||
<FooterContainer className="container"> | ||
<div> | ||
<CopyHomeYou>© 2024 <span>Homeyou</span></CopyHomeYou> | ||
</div> | ||
<SocialMediaContainer> | ||
<Label>Conectar</Label> | ||
<SocialMediaList> | ||
{ | ||
iconsSocialMedia.map(item => ( | ||
<li key={item.id}> | ||
<Icon src={item.icon} alt={`icon ${item.id}`} /> | ||
</li> | ||
)) | ||
} | ||
</SocialMediaList> | ||
</SocialMediaContainer> | ||
</FooterContainer> | ||
) | ||
} | ||
|
||
export default Footer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
import styled from "styled-components"; | ||
|
||
export const FooterContainer = styled.footer` | ||
margin: 15rem 3rem 0 !important; | ||
padding: 8rem 3rem; | ||
border-top: 2px solid #D9D9D6; | ||
@media (width >= 768px) { | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
} | ||
@media (width >= 1216px) { | ||
margin: 15rem auto 0 !important; | ||
} | ||
@media (width >= 1150px) { | ||
margin-top: 20rem !important; | ||
} | ||
`; | ||
|
||
export const CopyHomeYou = styled.span` | ||
font-size: 1.8rem; | ||
span { | ||
color: var(--brand-color); | ||
} | ||
`; | ||
|
||
export const Label = styled.span` | ||
font-size: 1.5rem; | ||
color: #2C2C2C; | ||
text-transform: uppercase; | ||
font-weight: 600; | ||
display: flex; | ||
align-items: center; | ||
gap: 2rem; | ||
&::after { | ||
content: ''; | ||
display: block; | ||
width: 6.5rem; | ||
height: .1rem; | ||
background-color: #2C2C2C; | ||
} | ||
`; | ||
|
||
export const SocialMediaContainer = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
gap: 3rem; | ||
margin-top: 5rem; | ||
@media (width >= 768px) { | ||
margin-top: 0; | ||
flex-direction: row; | ||
gap: 4rem; | ||
} | ||
`; | ||
|
||
export const Icon = styled.img` | ||
width: 3rem; | ||
height: 3rem; | ||
@media (width >= 768px) { | ||
width: 4rem; | ||
height: 4rem; | ||
} | ||
`; | ||
|
||
export const SocialMediaList = styled.ul` | ||
display: flex; | ||
align-items: center; | ||
gap: 2rem; | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters