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 2 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
56 changes: 56 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
}

.App-header {
background-color: #282c34;
background-color: #265CA9;;
min-height: 100vh;
display: flex;
flex-direction: column;
Expand Down
185 changes: 141 additions & 44 deletions src/components/Footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,57 +3,154 @@ 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: auto;
margin-bottom: 0;
min-height: 600px;

@media (max-width: 768px) {
background-size: 150% auto; /* Increase background coverage on smaller screens */
min-height: 400px;
}
`;

const FooterBox = styled.div`
background-image: url(${footerbox});
background-size: contain;
background-position: center;
background-repeat: no-repeat;
width: 100%;
max-width: 1200px;
height: 600px;
position: relative;
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-end;
margin-bottom: 0;

@media (max-width: 768px) {
height: 400px; /* Reduced height on smaller screens */
}
@media (max-width: 480px) {
height: 300px; /* Further reduction for smaller devices */
}
`;

const GoldPlate = styled.div`
background-image: url(${footergoldplate});
background-size: contain;
background-position: center;
background-repeat: no-repeat;
width: 55%;
height: 140px;
position: absolute;
top: 48%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;

h1 {
font-size: 1.5rem;
color: black;
margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
width: 65%;
height: 100px;
h1 {
font-size: 1.2rem;
}
}
@media (max-width: 480px) {
width: 75%;
height: 90px;
h1 {
font-size: 1rem;
}
}
`;

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; /* Reduce gap on smaller screens */
margin-top: 25px;

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

/* Responsive icon sizing */
@media (max-width: 768px) {
img {
width: 20px;
height: 20px;
}
}
@media (max-width: 480px) {
img {
width: 16px;
height: 16px;
}
}
`;

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

${mediaQueries.mobile} {
font-size: 12px;
bottom: 70px;
}
`;

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/components/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const DBHeader = styled("div")`
position: -webkit-sticky;
position: sticky;
top: 0;
background: black;
background: #265CA9;
width: 100%;
padding: 0.2em 0;
color: white;
Expand Down
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.
Loading