新增dashboard组件

This commit is contained in:
tangly1024.com
2024-11-19 12:53:35 +08:00
parent 21d9bc03f7
commit 7b0efe5647
11 changed files with 242 additions and 95 deletions

View File

@@ -86,12 +86,13 @@ export const Header = props => {
</div>
</SignedOut>
<SignedIn>
<Link
href='/dashboard'
className='bg-black hover:bg-gray-900 text-white py-2 px-4 rounded-lg '>
Dashboard
</Link>
<UserButton />
<button
type='button'
className='text-white bg-gray-800 hover:bg-gray-900 hover:ring-4 hover:ring-gray-300 focus:outline-none focus:ring-4 focus:ring-gray-300 font-medium rounded-lg text-sm px-5 py-2.5 me-2 mb-2 dark:bg-gray-800 dark:hover:bg-gray-700 dark:focus:ring-gray-700 dark:border-gray-700'>
<Link href='/dashboard'>Dashboard</Link>
</button>
</SignedIn>
</>
)}