diff --git a/frontend/src/components/Layout.jsx b/frontend/src/components/Layout.jsx index eec812d..309a935 100644 --- a/frontend/src/components/Layout.jsx +++ b/frontend/src/components/Layout.jsx @@ -1,43 +1,41 @@ -import React from 'react'; -import { Outlet, NavLink, useNavigate } from 'react-router-dom'; // 1. Import Link -import useAuth from '../hooks/useAuth'; -import CurrencySelector from './CurrencySelector'; -import ThemeToggle from './ThemeToggle'; +import React from "react"; +import { Outlet, NavLink, useNavigate } from "react-router-dom"; // 1. Import Link +import useAuth from "../hooks/useAuth"; +import CurrencySelector from "./CurrencySelector"; +import ThemeToggle from "./ThemeToggle"; const Layout = () => { const { logout } = useAuth(); const navigate = useNavigate(); - const getNavLinkClass = ({ isActive }) => { - const baseClasses = 'px-3 py-2 rounded-md text-sm font-medium'; + const baseClasses = "px-3 py-2 rounded-md text-sm font-medium"; if (isActive) { return `${baseClasses} bg-blue-600 text-white`; } return `${baseClasses} text-gray-600 dark:text-gray-300 hover:bg-gray-200 dark:hover:bg-gray-700 hover:text-black dark:hover:text-white`; }; - const handleClick = (e) => { - navigate("/"); + const handleClick = () => { + navigate("/"); }; - return ( -
- +
+
+ {/* Left Content */} +
+
+
+
+

+ Take Control of Your Finances +

+

+ The simple, smart, and secure way to manage your income and expenses, visualize your spending, and achieve your financial goals. +

+
+ + + + +
+ + {/* Right Visual */} +
+
+
+
+

Total Balance

+

$24,582.50

+
+
+
+
+
+
+
+

Income

+

+$5,200

+
+
+

Expenses

+

-$1,840

+
+
+
+
- - - {/* Hero Section */} -
-

Take Control of Your Finances

-

The simple, smart, and secure way to manage your income and expenses, visualize your spending, and achieve your financial goals.

- {user ? ( - Go to Dashboard - ) : ( - Get Started for Free - )} -
+
+ + {/* Features Section */}
@@ -105,7 +146,7 @@ export default function WelcomePage() {
{/* Footer */} -
diff --git a/frontend/tailwind.config.js b/frontend/tailwind.config.js index dd91d54..38427bd 100644 --- a/frontend/tailwind.config.js +++ b/frontend/tailwind.config.js @@ -5,11 +5,21 @@ export default { "./index.html", "./src/**/*.{js,ts,jsx,tsx}", ], + theme: { extend: { fontFamily: { sans: ['Josefin Sans', 'sans-serif'], }, + colors:{ + background: "var(--background)", + foreground: "var(--foreground)", + border: "var(--border)", + primary: "var(--primary)", + secondary: "var(--secondary)", + accent: "var(--accent)", + + } }, }, plugins: [],