Skip to content

Commit

Permalink
update footer styles to be mobile adaptive
Browse files Browse the repository at this point in the history
  • Loading branch information
andrlime committed Nov 15, 2024
1 parent 8001cc3 commit 124e778
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 16 deletions.
35 changes: 26 additions & 9 deletions src/components/Footer/Footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,36 @@

#footer {
position: absolute;
left: 0;
right: 0;
bottom: 0;
width: 100%;
display: flex;
flex-direction: column;
flex-direction: row;
justify-content: space-between;
align-items: center;
}
background-color: colors.$global-very-dark-green;
padding: 1rem;

#footer img {
width: 10%;
.footer__flexbox {
width: 33%;
display: flex;
flex-direction: row;
gap: 1em;
}

h2 {
font-weight: 900;
}
}

#footer-socials {
display: flex;
flex-direction: row;
column-gap: 2.5rem;
@media (max-width: 800px) {
#footer {
flex-direction: column;

.footer__flexbox {
width: 100%;
align-items: center;
justify-content: center;
}
}
}
19 changes: 13 additions & 6 deletions src/components/Footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,19 @@ interface IFooter {}
export const Footer: React.FC<IFooter> = () => {
return (
<div id="footer">
<img src={reactLogo} alt="Placeholder" />
<h2>WildHacks 2025</h2>
<div id="footer-socials">
<a href="https://www.instagram.com/wildhacks/">Instagram</a>
<a href="https://www.linkedin.com/company/wildhacks/">LinkedIn</a>
<a href="mailto:[email protected]">Email</a>
<div className="footer__flexbox">
<img src={reactLogo} alt="Placeholder" />
<h2>WildHacks 2025</h2>
</div>
<div className="footer__flexbox">
Something should go here eventually
</div>
<div>
<div className="footer__flexbox">
<a href="https://www.instagram.com/wildhacks/">Instagram</a>
<a href="https://www.linkedin.com/company/wildhacks/">LinkedIn</a>
<a href="mailto:[email protected]">Email</a>
</div>
</div>
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion src/components/MainWrapper/MainWrapper.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
background-color: colors.$global-sky-blue;
width: 100vw;
height: 100vh;
padding: 1em;
// padding: 1em;
}
1 change: 1 addition & 0 deletions src/shared/colors.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
$global-very-dark-green: #1E301B;
$global-dark-green: #269449;
$global-light-green: #67e67c;
$global-cloud-blue: #afd5f0;
Expand Down

0 comments on commit 124e778

Please sign in to comment.