1
1
import { useSession , useSupabaseClient } from "@supabase/auth-helpers-react" ;
2
2
import React , { useEffect , useState } from "react" ;
3
3
import CoreLayout from "../components/Core/Layout" ;
4
- import Layout from "../components/Section/Layout" ;
4
+ import Layout , { LandingLayout } from "../components/Section/Layout" ;
5
5
import CardForum from "../components/Content/DiscussCard" ;
6
6
import { useRouter } from "next/router" ;
7
7
import Login from "./login" ;
@@ -43,7 +43,7 @@ export function PublicLanding () {
43
43
>
44
44
< NavLogo />
45
45
< span className = 'ml-2 text-sm font-semibold leading-6 dark:text-white' >
46
- Your Saas
46
+ Star Sailors
47
47
</ span >
48
48
</ a >
49
49
</ div >
@@ -72,9 +72,10 @@ export function PublicLanding () {
72
72
{ /* <!-- Dark Mode Toggler --> */ }
73
73
< div className = 'flex items-center gap-3 2xsm:gap-7' >
74
74
< ul className = 'flex justify-center items-center gap-2 2xsm:gap-4' >
75
- { /* <DarkModeSwitcher /> */ } Dark Mode Switcher
75
+ { /* <DarkModeSwitcher />Dark Mode Switcher */ }
76
76
</ ul >
77
- < UserDropdownMenu user = { session ?. user ?. id } />
77
+ { session && (
78
+ < UserDropdownMenu user = { session ?. user ?. id } /> ) }
78
79
{ /* {isUserLoading ? null : !user ? (
79
80
<Link to='/login'>
80
81
<div className='flex justify-end items-center duration-300 ease-in-out text-gray-900 hover:text-yellow-500 dark:text-white'>
@@ -97,7 +98,7 @@ export function PublicLanding () {
97
98
< Dialog . Panel className = 'fixed inset-y-0 right-0 z-50 w-full overflow-y-auto bg-white px-6 py-6 sm:max-w-sm sm:ring-1 sm:ring-gray-900/10 dark:bg-boxdark dark:text-white' >
98
99
< div className = 'flex items-center justify-between' >
99
100
< a href = '/' className = '-m-1.5 p-1.5' >
100
- < span className = 'sr-only' > Your SaaS </ span >
101
+ < span className = 'sr-only' > Star Sailors </ span >
101
102
< NavLogo />
102
103
</ a >
103
104
< button
@@ -167,15 +168,14 @@ export function PublicLanding () {
167
168
} }
168
169
/>
169
170
</ div >
170
- < div className = 'py-24 sm:py-32' >
171
+ < div className = 'py-4 sm:py-32' >
171
172
< div className = 'mx-auto max-w-8xl px-6 lg:px-8' >
172
173
< div className = 'lg:mb-18 mx-auto max-w-3xl text-center' >
173
174
< h1 className = 'text-4xl font-bold text-gray-900 sm:text-6xl dark:text-white' >
174
- Some < span className = 'italic' > cool</ span > words about your
175
- product
175
+ < span className = 'italic' > Star Sailors</ span >
176
176
</ h1 >
177
177
< p className = 'mt-6 mx-auto max-w-2xl text-lg leading-8 text-gray-600 dark:text-white' >
178
- With some more exciting words about your product!
178
+ One-liner about Star Sailors
179
179
</ p >
180
180
< div className = 'mt-10 flex items-center justify-center gap-x-6' >
181
181
< a
@@ -213,7 +213,7 @@ export function PublicLanding () {
213
213
< defs >
214
214
< path id = 'a' d = 'M.06.5h272v190H.06z' />
215
215
</ defs >
216
- < g fill-rule = 'evenodd' >
216
+ < g fillRule = 'evenodd' >
217
217
< path
218
218
className = 'dark:fill-white'
219
219
fill = '#545454'
@@ -281,11 +281,10 @@ export function PublicLanding () {
281
281
< div id = 'modules' className = 'mx-auto mt-48 max-w-7xl px-6 lg:px-8' >
282
282
< div className = 'mx-auto max-w-2xl text-center' >
283
283
< p className = 'mt-2 text-4xl font-bold tracking-tight text-gray-900 sm:text-5xl dark:text-white' >
284
- The < span className = 'text-yellow-500' > Best </ span > modules
284
+ < span className = 'text-yellow-500' > Gameplay </ span >
285
285
</ p >
286
286
< p className = 'mt-6 text-lg leading-8 text-gray-600 dark:text-white' >
287
- Don't work harder.
288
- < br /> Work smarter.
287
+ Explore the cosmos & catalogue discoveries in different scientific disciplines
289
288
</ p >
290
289
</ div >
291
290
< div className = 'mx-auto mt-16 max-w-2xl sm:mt-20 lg:mt-24 lg:max-w-4xl' >
@@ -439,35 +438,25 @@ export default function Home() {
439
438
440
439
const userId = session ?. user ?. id ;
441
440
442
- useEffect ( ( ) => {
443
- if ( session ) {
444
- router . push ( '/feed' ) ;
445
- }
446
- } , [ session , router ] ) ;
441
+ // useEffect(() => {
442
+ // if (session) {
443
+ // router.push('/feed');
444
+ // }
445
+ // }, [session, router]);
447
446
448
447
if ( session ) {
449
448
return (
450
- < Layout >
449
+ < LandingLayout >
451
450
{ /* {userId} */ }
452
451
< div className = "flex flex-col gap-4" >
453
-
452
+ < PublicLanding />
454
453
</ div >
455
- </ Layout >
454
+ </ LandingLayout >
456
455
// <CoreLayout>
457
456
)
458
457
}
459
458
460
459
return (
461
- < div className = "grid grid-cols-2 h-screen-navbar" >
462
- < div className = "bg-teal border-r" >
463
- < div className = "p-4" >
464
- < div className = "mx-auto tablet:mx-0" >
465
- < div className = "grid grid-cols-1 content-grid home-hero" >
466
- < h1 className = "text-4xl font-bold" > Test</ h1 >
467
- </ div >
468
- </ div >
469
- </ div >
470
- </ div >
471
- </ div >
460
+ < PublicLanding />
472
461
) ;
473
462
} ;
0 commit comments