Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Footer #7

Merged
merged 4 commits into from
Oct 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
169 changes: 125 additions & 44 deletions src/components/Footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,57 +3,138 @@ import insta from '../images/socials/insta.svg'
import twitter from '../images/socials/twitter.svg'
import tiktok from '../images/socials/tiktok.svg'
import email from '../images/socials/email.svg'
import footerbox from '../images/socials/footerbox.svg'
import footergoldplate from '../images/socials/footergoldplate.svg'
import footerflagbg from '../images/socials/footerflagbg.svg'

import styled from 'styled-components'
import { mediaQueries } from '../shared/config';


const Container = styled.div`
background-color: black;
height: auto;
color: white;
padding: 60px 0 10px 0;
text-align: center;
h1 {
margin: 0;
font-family: 'Times New Roman', Times, serif;
font-size: 30px;
}
/* margin-bottom: 20px; */
`
background-color: #94CCEF;
background-image: url(${footerflagbg});
background-size: 100% auto;
background-position: center bottom;
background-repeat: no-repeat;
display: flex;
justify-content: center;
padding: 0;
height: 400px; /* Set fixed height to control footer size */
margin: 0;

@media (max-width: 768px) {
background-size: 150% auto;
height: 175px; /* Adjusted for smaller screens */
}
`;

const FooterBox = styled.div`
background-image: url(${footerbox});
background-size: contain;
background-position: center bottom;
background-repeat: no-repeat;
width: 100%;
max-width: 1200px;
height: 100%; /* Make it fill the Container’s height */
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-end;
position: relative;
overflow: hidden; /* Ensure nothing spills out if heights are limited */
`;

const GoldPlate = styled.div`
background-image: url(${footergoldplate});
background-size: contain;
background-position: center;
background-repeat: no-repeat;
width: 55%;
height: 120px;
position: absolute;
top: 50%; /* Position within reduced height */
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
transform: translateY(-5%); /* Ensure it remains vertically centered */

@media (max-width: 768px) {
width: 65%;
height: 70px;
h1 {
font-size: 1.2rem;
}
}
@media (max-width: 480px) {
width: 75%;
height: 60px;

}
`;

const Socials = styled.div`
position: relative;
margin-top: 20px;

img {

position: relative;
margin: 0 20px;
}
p {
position: relative;
margin: 80px 20px;
${mediaQueries.mobile} {
margin: 50px 20px;
}
}
`
display: flex;
justify-content: center;
gap: 10px;
margin-top: 30px;

img {
width: 24px;
height: 24px;
}

@media (max-width: 768px) {
img {
width: 15px;
height: 15px;
}
}
@media (max-width: 480px) {
img {
width: 10px;
height: 10px;
}
}
`;

const SuzyText = styled.p`
position: absolute;
bottom: 30px;
font-size: 14px;
color: white;
text-align: center;
width: 100%;

${mediaQueries.mobile} {
font-size: 8px;
bottom: 3px;
}
`;

const Footer = () => {
return (
<Container>
<h1>DAILY BRUIN</h1>
<Socials>
<a href="https://www.instagram.com/dailybruin" target="_blank" rel="noreferrer"><img src={insta} alt=""/></a>
<a href="https://www.facebook.com/dailybruin" target="_blank" rel="noreferrer"><img src={fb} alt=""/></a>
<a href="https://www.twitter.com/dailybruin" target="_blank" rel="noreferrer"><img src={twitter} alt=""/></a>
<a href="https://www.tiktok.com/@dailybruin" target="_blank" rel="noreferrer"><img src={tiktok} alt=""/></a>
<a href="http://eepurl.com/cFEiZX" target="_blank" rel="noreferrer"><img src={email} alt=""/></a>
<p>Built with Suzy’s ♥ in Kerckhoff 118 by [developers]. Designed by [designers].</p>
</Socials>
return (
<Container>
<FooterBox>
<GoldPlate>
<Socials>
<a href="https://www.instagram.com/dailybruin" target="_blank" rel="noreferrer"><img src={insta} alt="Instagram"/></a>
<a href="https://www.facebook.com/dailybruin" target="_blank" rel="noreferrer"><img src={fb} alt="Facebook"/></a>
<a href="https://www.twitter.com/dailybruin" target="_blank" rel="noreferrer"><img src={twitter} alt="Twitter"/></a>
<a href="https://www.tiktok.com/@dailybruin" target="_blank" rel="noreferrer"><img src={tiktok} alt="TikTok"/></a>
<a href="http://eepurl.com/cFEiZX" target="_blank" rel="noreferrer"><img src={email} alt="Email"/></a>
</Socials>
</GoldPlate>
<SuzyText>Built with Suzy’s ♥ in Kerckhoff 118 by [developers]. Designed by [designers].</SuzyText>
</FooterBox>
</Container>
)
}

export default Footer;
);
};

export default Footer;






2 changes: 1 addition & 1 deletion src/images/socials/email.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion src/images/socials/fb.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
137 changes: 137 additions & 0 deletions src/images/socials/footerbox.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
51 changes: 51 additions & 0 deletions src/images/socials/footerflagbg.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions src/images/socials/footergoldplate.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading