-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathindex.jsx
48 lines (43 loc) · 1.54 KB
/
index.jsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import Layout from "../components/Layout"
import Hero from "@/components/Hero"
import Prompt from "@/components/Prompt"
import Info from "@/components/Info"
// getServerSideProps - auth is available on page load
import { ContinueButton, LoggedIn, LoggedOut, HelloProvider } from "@hellocoop/nextjs/react"
export default function Home({auth}) {
return (
<HelloProvider auth={auth}>
<Layout>
<LoggedIn>
<Hero/>
</LoggedIn>
<LoggedOut>
<Prompt/>
{/* [ ō Continue with Hellō ] */}
<ContinueButton theme="aware-static" hover="flare" providerHint={['google','github','gitlab']} />
{/* Default <ContinueButton color="black" theme="ignore-light" hover="pop" /> */}
</LoggedOut>
<Info/>
</Layout>
</HelloProvider>
)
}
export { getServerSideProps } from "@hellocoop/nextjs"
// // client retrieves auth
// import { ContinueButton, LoggedIn, LoggedOut } from "@hellocoop/nextjs/react"
// export default function Home() {
// return (
// <Layout>
// <LoggedIn>
// <Hero/>
// </LoggedIn>
// <LoggedOut>
// <Prompt/>
// {/* [ ō Continue with Hellō ] */}
// <ContinueButton theme="aware-static" hover="flare" providerHint="google github gitlab" />
// {/* Default <ContinueButton color="black" theme="ignore-light" hover="pop" /> */}
// </LoggedOut>
// <Info/>
// </Layout>
// )
// }