Skip to content
Open
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
18 changes: 18 additions & 0 deletions frontend/TODO.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# TODO: Make Footer Mobile Responsive

## Tasks
- [x] Update Footer.css to add media queries for all devices (1024px for laptops, 768px for tablets, 480px for mobiles)
- [x] Reduce padding, gaps, and adjust logo size for smaller screens
- [x] Ensure social icons and text are properly spaced on all devices
- [x] Code changes completed - footer is now responsive across all devices

## Dependent Files
- frontend/src/components/Footer/Footer.css

## Summary of Changes
- Added media query at 1024px for laptops: adjusted padding to 20px 6vw and gap to 60px
- Existing media query at 768px for tablets: reduced padding, gaps, logo size, social icons
- Existing media query at 480px for mobiles: further reduced sizes, adjusted text and margins
- Existing media query at 750px: switches to flex column layout for smaller screens

The footer is now responsive for desktops (default), laptops (1024px), tablets (768px), and smartphones (480px).
95 changes: 95 additions & 0 deletions frontend/src/components/Footer/Footer.css
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,101 @@
}
}

@media (max-width: 1024px) {
.footer {
padding: 20px 6vw;
padding-top: 45px;
}

.footer-content {
gap: 60px;
}
}

@media (max-width: 768px) {
.footer {
padding: 15px 4vw;
padding-top: 40px;
}

.footer-content {
gap: 25px;
}

.footer-content-left, .footer-content-right, .footer-content-center {
gap: 15px;
}

.footer-content-left img {
width: 80px;
height: auto;
}

.footer-social-icons {
gap: 10px;
}

.footer-social-icons a {
width: 40px;
height: 40px;
}

.footer-social-icons a svg {
width: 20px !important;
height: 20px !important;
}
}

@media (max-width: 480px) {
.footer {
padding: 10px 2vw;
padding-top: 30px;
}

.footer-content {
gap: 20px;
}

.footer-content-left, .footer-content-right, .footer-content-center {
gap: 10px;
}

.footer-content-left p {
font-size: 0.9rem;
line-height: 1.4;
}

.footer-content-left img {
width: 60px;
}

.footer-social-icons {
gap: 8px;
}

.footer-social-icons a {
width: 35px;
height: 35px;
}

.footer-social-icons a svg {
width: 18px !important;
height: 18px !important;
}

.footer-content-center ul li span, .footer-content-right ul li span {
font-size: 0.9rem;
}

.footer hr {
margin: 15px 0;
}

.footer-copyright {
font-size: 0.8rem;
}
}

.nav-link {
display: flex;
align-items: center;
Expand Down
5 changes: 4 additions & 1 deletion frontend/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,8 @@ export default defineConfig({
},
esbuild:{
sourcemap:false,
}
},
server: {
historyApiFallback: true,
},
});