From 5cbf7f6398dd3eef7a1a9b5cbf34619de3929be3 Mon Sep 17 00:00:00 2001 From: MisbehavedNinjaRadiator <120029998+MisbehavedNinjaRadiator@users.noreply.github.com.> Date: Wed, 11 Jun 2025 15:22:00 +0200 Subject: [PATCH] moved footer into folder, hopefully git tracking worked --- code/frontend/src/feed/Feed.tsx | 2 +- code/frontend/src/{ => footer}/Footer.tsx | 0 code/frontend/src/footer/footer.css | 94 +++++++++++++++++++++++ 3 files changed, 95 insertions(+), 1 deletion(-) rename code/frontend/src/{ => footer}/Footer.tsx (100%) create mode 100644 code/frontend/src/footer/footer.css diff --git a/code/frontend/src/feed/Feed.tsx b/code/frontend/src/feed/Feed.tsx index 07bf1fc..00e5ee6 100644 --- a/code/frontend/src/feed/Feed.tsx +++ b/code/frontend/src/feed/Feed.tsx @@ -1,6 +1,6 @@ import React from "react"; import Header from "../header"; -import Footer from "../Footer"; +import Footer from "../footer/Footer"; function Feed() { return ( diff --git a/code/frontend/src/Footer.tsx b/code/frontend/src/footer/Footer.tsx similarity index 100% rename from code/frontend/src/Footer.tsx rename to code/frontend/src/footer/Footer.tsx diff --git a/code/frontend/src/footer/footer.css b/code/frontend/src/footer/footer.css new file mode 100644 index 0000000..bbe35f1 --- /dev/null +++ b/code/frontend/src/footer/footer.css @@ -0,0 +1,94 @@ +/*mobile style first*/ +.footer { + display: flex; + flex-direction: row; + align-items: flex-start; + justify-content: space-between; + background-color: var(--Rotkehlchen-gray); + padding: 1rem; + gap: 2rem; + text-align: center; + text-decoration: none; +} + +.footer-left { + display: flex; + flex-direction: column; + gap: 2rem; + align-items: flex-start; +} + +.footer-link { + display: flex; + align-items: center; + gap: 0.5rem; /*Gap between icon and logo */ + text-decoration: none; /*prevents constant underline*/ + color: black; + font-weight: 500; + cursor: pointer; +} + +.footer-link.feather img { + width: 20px; + height: 20px; + transform: scale(1.5); +} + +.footer-link img { + height: 1.5rem; + object-fit: unset; + vertical-align: middle; +} + +.footer-link.feather span { + color: var(--Rotkehlchen-orange-default); + font-weight: bold; +} + +.footer-right { + display: flex; + flex-direction: column; + gap: 0.4rem; /*gap between the links*/ + align-items: flex-end; +} + +.footer-column a { + color: black; + text-decoration: none; + font-weight: 500; +} + +.footer-link:hover, +.footer-link:active { + text-decoration: underline; +} +.footer-link.feather:hover, +.footer-link.feather:active { + text-decoration-color: var(--Rotkehlchen-orange-default); +} + +/*@media adjusts styles for desktop */ + +@media (min-width: 768px) { + .footer { + flex-direction: row; + justify-content: space-between; + align-items: center; + text-align: left; + padding: 2rem 4rem; + } + + .footer-left { + align-items: flex-start; + } + + .footer-right { + flex-direction: row; + gap: 4rem; + align-items: flex-start; + } + + .footer-column { + align-items: flex-start; + } +}