From d1f4bb43d706d6618b9148b3750157fb09a8cde8 Mon Sep 17 00:00:00 2001
From: PHI NETWORK <85964511+Phinetwork@users.noreply.github.com>
Date: Wed, 11 Dec 2024 02:23:57 -0500
Subject: [PATCH] update
---
frontend/src/App.css | 6 +-----
frontend/src/App.js | 14 +++++++++-----
frontend/src/index.css | 3 ++-
3 files changed, 12 insertions(+), 11 deletions(-)
diff --git a/frontend/src/App.css b/frontend/src/App.css
index 5bb8f78..87e2b2d 100644
--- a/frontend/src/App.css
+++ b/frontend/src/App.css
@@ -5,8 +5,6 @@
min-height: 100vh;
display: flex;
flex-direction: column;
- align-items: center;
- justify-content: center;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
color: #ffffff; /* Text color for high contrast */
}
@@ -26,7 +24,6 @@
/* Header section styling */
.App-header {
background: linear-gradient(135deg, #111827, #1e40af); /* Dark gradient for a sleek look */
- min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
@@ -70,9 +67,8 @@
text-align: center;
padding: 20px;
font-size: 0.9rem;
- position: fixed;
+ margin-top: auto; /* Ensures footer stays at the bottom of the content */
width: 100%;
- bottom: 0;
box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}
diff --git a/frontend/src/App.js b/frontend/src/App.js
index ca8ec37..fa3dfa5 100644
--- a/frontend/src/App.js
+++ b/frontend/src/App.js
@@ -13,15 +13,14 @@ import { useAuth } from "./auth/AuthContext";
import logo from "./assets/logo.png";
function App() {
- const { isAuthenticated, loading } = useAuth(); // Add `loading` to manage fallback states
+ const { isAuthenticated, loading } = useAuth();
if (loading) {
- // Display a loading spinner or fallback while authentication is verified
return
Loading...
;
}
return (
-
+
@@ -60,7 +59,7 @@ const Home = () => {
Welcome to Skill Match Bot
- Unlock personalized side hustle opportunities, master profitable skills, and build success-driven habits with an AI-powered platform that adapts to you.
+ Unlock personalized side hustle opportunities, master profitable skills, and build success-driven habits with an AI-powered platform that adapts to you.
Get Started
@@ -70,12 +69,17 @@ const Home = () => {
};
const styles = {
+ appContainer: {
+ display: "flex",
+ flexDirection: "column",
+ minHeight: "100vh",
+ },
main: {
+ flex: 1, // Ensures main content takes up available space
display: "flex",
justifyContent: "center",
alignItems: "center",
flexDirection: "column",
- minHeight: "calc(100vh - 120px)",
padding: "20px",
background: "linear-gradient(135deg, #00274d, #00509e)",
boxSizing: "border-box",
diff --git a/frontend/src/index.css b/frontend/src/index.css
index b0ed2b5..481fe69 100644
--- a/frontend/src/index.css
+++ b/frontend/src/index.css
@@ -56,6 +56,7 @@ a:hover {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
+ flex: 1; /* Ensures the container stretches to take up available space */
}
/* Header Styling */
@@ -166,7 +167,7 @@ button:hover {
.results button {
background: none;
border: 1px solid #2563eb;
- color: #2563eb;
+ color: #ffffff;
padding: 8px 12px;
cursor: pointer;
border-radius: 8px;