From 5a6d98208d1b4b13c2e07bccadc70385494e2dcd Mon Sep 17 00:00:00 2001 From: kimjaehyeon0101 <47347352-kimjaehyeon0101@users.noreply.replit.com> Date: Mon, 29 Sep 2025 16:40:42 +0000 Subject: [PATCH] Update home and landing pages to show consistent UI regardless of login status Refactor routing and page components to ensure the main content is displayed identically for both logged-in and logged-out users, removing conditional rendering based on authentication status in the main router and consolidating content display logic into a new `MainContent` component. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 069d4324-6c40-4355-955e-c714a50de1ea Replit-Commit-Checkpoint-Type: intermediate_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/3df548ff-50ae-432f-9be4-25d34eccc983/069d4324-6c40-4355-955e-c714a50de1ea/InMLMqG --- client/src/App.tsx | 22 +--- client/src/components/MainContent.tsx | 140 ++++++++++++++++++++++++ client/src/pages/Home.tsx | 148 +++++++------------------- client/src/pages/Landing.tsx | 100 ++++------------- 4 files changed, 205 insertions(+), 205 deletions(-) create mode 100644 client/src/components/MainContent.tsx diff --git a/client/src/App.tsx b/client/src/App.tsx index 569749c..09e222c 100644 --- a/client/src/App.tsx +++ b/client/src/App.tsx @@ -15,28 +15,14 @@ import AuctionGuide from "@/pages/AuctionGuide"; import NotFound from "@/pages/not-found"; function Router() { - const { isAuthenticated, isLoading, user } = useAuth(); - - if (isLoading) { - return ( -
Loading...
-+ {outlet.category === "people" && "Media Personality"} + {outlet.category === "topics" && "Industry Topic"} + {outlet.category === "companies" && "Technology Company"} +
+
-
+ Nostra
+ Nostra
Access premium media outlets across People, Topics, and Companies. Participate in prediction markets and bid for exclusive editorial rights.
-Discover insights across three key categories
-Follow insights from influential leaders across technology, finance, and politics.
-24 Influential Figures
-Stay updated on trending subjects from crypto to AI, regulation to innovation.
-20 Key Topics
-Track major corporations shaping the future of technology and finance.
-27 Leading Companies
-