Skip to content

Commit

Permalink
desafio 10 - finaliza footer da página
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielalencs committed Oct 28, 2024
1 parent b9920e5 commit 753784a
Show file tree
Hide file tree
Showing 4 changed files with 124 additions and 1 deletion.
2 changes: 2 additions & 0 deletions desafio_10/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import Header from "./components/Header";
import HomeSection from "./components/HomeSection";
import AboutSection from "./components/AboutSection";
import GallerySection from "./components/GallerySection";
import Footer from "./components/Footer";


const App = () => {
Expand All @@ -20,6 +21,7 @@ const App = () => {
<AboutSection />
<GallerySection />
</main>
<Footer />
</>
);
};
Expand Down
46 changes: 46 additions & 0 deletions desafio_10/src/components/Footer/index.jsx
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>&copy; 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;
76 changes: 76 additions & 0 deletions desafio_10/src/components/Footer/styles.jsx
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;
`;
1 change: 0 additions & 1 deletion desafio_10/src/components/GallerySection/styles.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import styled from "styled-components";
export const GalleryContainer = styled.section`
margin-top: 15rem;
padding: 0 3rem;
margin-bottom: 100rem;
@media (width >= 1150px) {
margin-top: 20rem;
Expand Down

0 comments on commit 753784a

Please sign in to comment.