File tree 3 files changed +50
-6
lines changed 3 files changed +50
-6
lines changed Original file line number Diff line number Diff line change
1
+ import { signIn } from 'next-auth/client'
2
+ import { A } from '@/components'
3
+
4
+ export default function Hero ( ) {
5
+ return (
6
+ < div className = "relative bg-gray-50 overflow-hidden " >
7
+ < div className = "mx-auto max-w-7xl px-4 py-16" >
8
+ < div className = "text-center" >
9
+ < h1 className = "text-4xl tracking-tight font-extrabold text-gray-900 sm:text-5xl md:text-6xl" >
10
+ < span className = "block text-indigo-600 xl:inline" > Coderplex </ span >
11
+ < span className = "block xl:inline" > Community</ span >
12
+ </ h1 >
13
+ < p className = "mt-3 max-w-md mx-auto text-base text-gray-500 sm:text-lg md:mt-5 md:text-xl md:max-w-3xl" >
14
+ Lorem ipsum dolor sit amet consectetur adipisicing elit.
15
+ Reprehenderit nam voluptatibus placeat perspiciatis porro laborum
16
+ cum explicabo dolore quae.
17
+ </ p >
18
+ < div className = "mt-5 max-w-md mx-auto sm:flex sm:justify-center md:mt-8" >
19
+ < div className = "rounded-md shadow" >
20
+ < button
21
+ onClick = { ( ) => signIn ( 'github' ) }
22
+ className = "w-full flex items-center justify-center px-8 py-3 border border-transparent text-base font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700 md:py-4 md:text-lg md:px-10"
23
+ >
24
+ Join Community
25
+ </ button >
26
+ </ div >
27
+ < div className = "mt-3 rounded-md shadow sm:mt-0 sm:ml-3" >
28
+ < A
29
+ href = "https://chat.coderplex.org"
30
+ className = "w-full flex items-center justify-center px-8 py-3 border border-transparent text-base font-medium rounded-md text-indigo-600 bg-white hover:bg-gray-50 md:py-4 md:text-lg md:px-10"
31
+ >
32
+ Join Discord
33
+ </ A >
34
+ </ div >
35
+ </ div >
36
+ </ div >
37
+ </ div >
38
+ </ div >
39
+ )
40
+ }
Original file line number Diff line number Diff line change @@ -10,23 +10,25 @@ import {
10
10
} from 'phosphor-react'
11
11
import { HomePageFeedUpdateType } from 'src/pages'
12
12
import { DateTime } from 'luxon'
13
- import { Markdown , A } from '@/components'
14
13
import { useMutation , useQuery } from 'react-query'
15
14
import classNames from 'classnames'
16
15
import { useEffect , useReducer , useState } from 'react'
17
16
import { signIn , useSession } from 'next-auth/client'
17
+ import { User } from 'src/pages/members'
18
+ import useFollowUser from './profile/useFollowUser'
18
19
import {
20
+ Markdown ,
21
+ A ,
22
+ Hero ,
23
+ AppNavBar ,
24
+ AppFooter ,
19
25
NewComment ,
20
26
NewGoal ,
21
27
NewUpdate ,
22
28
UpdateComment ,
23
29
UpdateComments ,
24
30
UpdateCommentsList ,
25
- } from './goals'
26
- import { User } from 'src/pages/members'
27
- import AppNavBar from './AppNavBar'
28
- import AppFooter from './AppFooter'
29
- import useFollowUser from './profile/useFollowUser'
31
+ } from '@/components'
30
32
31
33
type LikeData = {
32
34
count : number
@@ -228,6 +230,7 @@ export default function HomePageFeed({
228
230
< header className = "bg-white shadow-sm sticky top-0 z-10" >
229
231
< AppNavBar />
230
232
</ header >
233
+ { ! session && < Hero /> }
231
234
< div className = "py-10 flex-1" >
232
235
< div className = "max-w-3xl mx-auto sm:px-6 lg:max-w-7xl lg:px-8 lg:grid lg:grid-cols-12 lg:gap-8" >
233
236
< div className = "hidden lg:block lg:col-span-3 xl:col-span-2" >
Original file line number Diff line number Diff line change @@ -9,3 +9,4 @@ export * from './profile'
9
9
export * from './goals'
10
10
export { default as Markdown } from './Markdown'
11
11
export { default as HomePageFeed } from './HomePageFeed'
12
+ export { default as Hero } from './Hero'
You can’t perform that action at this time.
0 commit comments