35 | {!sessionData && (
36 |
41 | )}
42 |
43 | {/* Tell us about yourself inputs */}
44 | {sessionData && (
45 | <>
46 |
47 |
Tell us about yourself
48 |
49 | {/* Input field 1 */}
50 |
51 |
54 |
55 | setInputs((prev) => ({ ...prev, title: e.target.value }))}
58 | type='text'
59 | name='title'
60 | className='block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 sm:text-sm'
61 | placeholder='Software Engineer'
62 | />
63 |
64 |
65 |
66 | {/* Input field 2 */}
67 |
68 |
71 |
72 | setInputs((prev) => ({ ...prev, website: e.target.value }))}
75 | type='text'
76 | name='website'
77 | className='block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 sm:text-sm'
78 | placeholder='yoursite.com'
79 | />
80 |
81 |
82 |
83 |
84 |
85 | {/* main business card */}
86 |
87 |
88 |
89 |
90 | {/* Publish Button */}
91 |
92 |
98 |
99 | >
100 | )}
101 |
102 | >
103 | )
104 | }
105 |
106 | export default Home
107 |
--------------------------------------------------------------------------------
/src/components/shared/Navbar.tsx:
--------------------------------------------------------------------------------
1 | import { FC, Fragment } from 'react'
2 | import { Disclosure, Menu, Transition } from '@headlessui/react'
3 | import { HiBookOpen, HiX } from 'react-icons/hi'
4 | import { signOut, useSession } from 'next-auth/react'
5 |
6 | interface NavbarProps {}
7 |
8 | function classNames(...classes: string[]) {
9 | return classes.filter(Boolean).join(' ')
10 | }
11 |
12 | const Navbar: FC