From de3c663b6bef66af30562bba639b9fbc9dc94bb4 Mon Sep 17 00:00:00 2001 From: harshit duggal <135515880+Harshitduggal1@users.noreply.github.com> Date: Tue, 5 Nov 2024 11:35:52 +0530 Subject: [PATCH] Update page.tsx --- app/(root)/page.tsx | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/app/(root)/page.tsx b/app/(root)/page.tsx index a08f295..9493f86 100644 --- a/app/(root)/page.tsx +++ b/app/(root)/page.tsx @@ -11,41 +11,40 @@ export default async function Home({ }) { const query = (await searchParams).query; const params = { search: query || null }; - const session = await auth(); - - console.log(session?.id); - const { data: posts } = await sanityFetch({ query: STARTUPS_QUERY, params }); return ( <> -
-

+ {/* Hero Section */} +
+

Pitch Your Startup,
Connect With Entrepreneurs

-

- Submit Ideas, Vote on Pitches, and Get Noticed in Virtual - Competitions. +

+ Submit Ideas, Vote on Pitches, and Get Noticed in Virtual Competitions.

- +
-
-

- {query ? `Search results for "${query}"` : "All Startups"} + {/* Startups Section */} +

+

+ {query ? `Search results for "${query}"` : "Explore All Startups"}

-
    +
      {posts?.length > 0 ? ( posts.map((post: StartupTypeCard) => ( )) ) : ( -

      No startups found

      +

      + No startups found. +

      )}