From 2e5f34640691ec02bc72f423b23e1e3fc68f62fe Mon Sep 17 00:00:00 2001 From: Rudra-clrscr Date: Tue, 23 Jun 2026 17:56:03 +0530 Subject: [PATCH 1/2] feat: add footer to /app route (closes #217) Adds a Footer component matching the requested copy (logo, mission statement, feature list, mission section, tagline, copyright) styled with the active color theme's card/accent classes so it matches whichever theme the user has selected, in both light and dark mode. Restructures SpamDetector's outer layout from flex-center to flex-col so the footer renders below the centered main card instead of competing with it for centered space, without changing the existing card's appearance. --- frontend/src/components/Footer.jsx | 69 ++++++++++++++++++++++++++++++ frontend/src/pages/App.jsx | 6 ++- 2 files changed, 74 insertions(+), 1 deletion(-) create mode 100644 frontend/src/components/Footer.jsx diff --git a/frontend/src/components/Footer.jsx b/frontend/src/components/Footer.jsx new file mode 100644 index 0000000..28a9f57 --- /dev/null +++ b/frontend/src/components/Footer.jsx @@ -0,0 +1,69 @@ +import { useTheme } from "../context/ThemeContext"; +import SpamLogo from "/src/assets/SpamLogo.png"; + +const FEATURES = [ + "Email Spam Detection", + "SMS Spam Detection", + "URL Security Analysis", + "Real-Time Scanning", +]; + +export default function Footer() { + const { isDark, activeTheme } = useTheme(); + + return ( + + ); +} diff --git a/frontend/src/pages/App.jsx b/frontend/src/pages/App.jsx index a6a55c7..711dcd6 100644 --- a/frontend/src/pages/App.jsx +++ b/frontend/src/pages/App.jsx @@ -15,6 +15,7 @@ import BulkSpamDetection from "../components/BulkSpamDetection"; import SpamInsightsDashboard from "../components/SpamInsightsDashboard"; import EmailScannerDashboard from "../components/EmailScannerDashboard"; import Chatbot from "../components/Chatbot"; +import Footer from "../components/Footer"; import { redirect } from "react-router-dom"; import { useNavigate } from "react-router-dom"; @@ -108,7 +109,7 @@ function SpamDetector() { return (
@@ -235,6 +236,7 @@ function SpamDetector() { )} {/* Main card */} +
+
+