From 09678f2908d59c144cac89c7bc63761a9af7a147 Mon Sep 17 00:00:00 2001
From: hani
Date: Fri, 26 Jun 2026 13:59:26 +0530
Subject: [PATCH] fix navbar authentication button
---
client/src/components/Home/LandingPage.tsx | 47 ++++++++++++----------
1 file changed, 25 insertions(+), 22 deletions(-)
diff --git a/client/src/components/Home/LandingPage.tsx b/client/src/components/Home/LandingPage.tsx
index f81a3b9..7b3fdfe 100644
--- a/client/src/components/Home/LandingPage.tsx
+++ b/client/src/components/Home/LandingPage.tsx
@@ -15,7 +15,7 @@ import {
import { useNavigate } from "react-router-dom";
const LandingPage: React.FC = () => {
- const navigate = useNavigate();
+ const navigate = useNavigate();
const [uploadProgress, setUploadProgress] = useState(0);
const [activeFeature, setActiveFeature] = useState(0);
@@ -27,8 +27,8 @@ const LandingPage: React.FC = () => {
}, []);
const [theme, setTheme] = useState(
- document.documentElement.classList.contains("dark")
- ? "dark" : "light"
+ document.documentElement.classList.contains("dark")
+ ? "dark" : "light"
);
const toggleTheme = () => {
@@ -158,20 +158,26 @@ const LandingPage: React.FC = () => {
-
@@ -217,7 +223,7 @@ const LandingPage: React.FC = () => {
- {
+ {
navigate('/login')
}} className="mt-8 px-8 py-3 bg-gradient-to-r from-[#3498db] to-[#2980b9] rounded-lg font-semibold text-lg hover:opacity-90 transition-opacity w-full">
@@ -251,9 +257,8 @@ const LandingPage: React.FC = () => {
{features.map((feature, index) => (
{
{plans.map((plan, index) => (
{
{
{/* About Section */}
-
+
Enterprise-Grade Security
@@ -424,7 +427,7 @@ const LandingPage: React.FC = () => {
{/* Contact Section */}
-