From 514c80b1c4d5ea54b579b947a0b40e4eb925c36f Mon Sep 17 00:00:00 2001 From: farehaaslam Date: Sun, 16 Nov 2025 16:14:54 +0530 Subject: [PATCH] improved ui and ux --- frontend/src/components/Layout.jsx | 43 ++++----- frontend/src/index.css | 19 +++- frontend/src/pages/Budgets.jsx | 2 +- frontend/src/pages/LoginPage.jsx | 2 +- frontend/src/pages/RecurringTransactions.jsx | 2 +- frontend/src/pages/RegisterPage.jsx | 2 +- frontend/src/pages/SetupPage.jsx | 2 +- frontend/src/pages/TransactionsPage.jsx | 2 +- frontend/src/pages/WelcomePage.jsx | 97 ++++++++++++++------ frontend/tailwind.config.js | 10 ++ 10 files changed, 125 insertions(+), 56 deletions(-) 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: [],