Changeset 4022db1


Ignore:
Timestamp:
01/26/26 17:02:31 (6 months ago)
Author:
Filip Gavrilovski <filipgavrilovski28@…>
Branches:
main
Children:
3727852
Parents:
24a2a2a
Message:

add logo and favicon

Location:
frontend
Files:
2 added
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • frontend/index.html

    r24a2a2a r4022db1  
    44                <meta charset="UTF-8" />
    55                <meta name="viewport" content="width=device-width, initial-scale=1.0" />
     6                <link rel="icon" type="image/png" href="/favicon.png" />
    67                <title>Finkwave</title>
    78        </head>
  • frontend/src/Login.tsx

    r24a2a2a r4022db1  
    3232        };
    3333        return (
    34                 <div className="flex flex-col items-center justify-center min-h-screen bg-gray-100">
     34                <div className="flex flex-col items-center justify-center min-h-[90vh] bg-gray-100">
    3535                        <h2 className="text-2xl mb-4">Login</h2>
    3636                        <form
  • frontend/src/Nav.tsx

    r24a2a2a r4022db1  
    11import { Link } from "react-router-dom";
    22import axiosInstance from "./api/axiosInstance";
     3import Logo from "./assets/logo-finkwave.png";
    34import { useAuth } from "./context/authContext";
    45
     
    67        const { user, setUser, isAuthLoading } = useAuth();
    78
    8         const handleLogout = async () => {
     9        const handleLogout = async (e: React.MouseEvent<HTMLButtonElement>) => {
     10                e.preventDefault();
    911                try {
    1012                        await axiosInstance.post("/auth/logout");
     
    1820                <div className="bg-gray-800 p-4 flex justify-between items-center">
    1921                        <Link to="/" className="text-white text-lg font-semibold">
    20                                 Finkwave
     22                                <img src={Logo} alt="Finkwave Logo" className="h-12 w-auto" />
    2123                        </Link>
    2224
     
    4042                                                                </div>
    4143                                                                <button
    42                                                                         onClick={(e) => {
    43                                                                                 e.preventDefault();
    44                                                                                 handleLogout();
    45                                                                         }}
    46                                                                         className="bg-red-500 hover:bg-red-600 text-white px-4 py-2 rounded-lg text-sm font-medium transition-colors duration-200 flex items-center space-x-1"
     44                                                                        onClick={(e: React.MouseEvent<HTMLButtonElement>) =>
     45                                                                                handleLogout(e)
     46                                                                        }
     47                                                                        className="bg-red-500 hover:bg-red-600 text-white px-4 py-2 rounded-lg text-sm
     48                                    font-medium transition-colors duration-200 flex items-center space-x-1 cursor-pointer"
    4749                                                                >
    4850                                                                        Logout
     
    5052                                                        </div>
    5153                                                ) : (
    52                                                         <div className="flex items-center space-x-2">
     54                                                        <div className="flex items-center space-x-4">
    5355                                                                <Link
    5456                                                                        to="/login"
    55                                                                         className="bg-blue-500 hover:bg-blue-600 text-white px-4 py-2 rounded-lg text-sm font-medium transition-colors duration-200"
     57                                                                        className="bg-blue-500 hover:bg-blue-600 text-white px-4 py-2 rounded-lg text-sm
     58                                    font-medium transition-colors duration-200 cursor-pointer"
    5659                                                                >
    5760                                                                        Login
     61                                                                </Link>
     62                                                                <Link
     63                                                                        to="/register"
     64                                                                        className="bg-green-500 hover:bg-green-600 text-white px-4 py-2 rounded-lg text-sm
     65                                    font-medium transition-colors duration-200 cursor-pointer"
     66                                                                >
     67                                                                        Register
    5868                                                                </Link>
    5969                                                        </div>
  • frontend/src/Register.tsx

    r24a2a2a r4022db1  
    66
    77const Register = () => {
    8         const { setUser, user } = useAuth();
     8        const { setUser } = useAuth();
    99        const [username, setUsername] = useState("");
    1010        const [password, setPassword] = useState("");
     
    4545
    4646        return (
    47                 <div className="flex flex-col items-center justify-center min-h-screen bg-gray-100">
     47                <div className="flex flex-col items-center justify-center min-h-[90vh] bg-gray-100">
    4848                        <h2 className="text-2xl mb-4">Register</h2>
    4949                        <form className="bg-white p-6 rounded shadow-md w-80">
     
    101101                                        </label>
    102102                                        <input
     103                                                placeholder="todo"
    103104                                                type="text"
    104105                                                id="profilePhoto"
Note: See TracChangeset for help on using the changeset viewer.