-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
79 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { HiCloudUpload } from 'react-icons/hi'; | ||
import React from 'react'; | ||
|
||
export default function DocumentsEmpty() { | ||
return ( | ||
<div className="grid grid-cols-1 gap-6 md:grid-cols-1"> | ||
<label htmlFor="dropzone-file" className="flex flex-col gap-6"> | ||
<div className="rounded-lg border border-gray-200 p-6 dark:border-gray-800"> | ||
<div | ||
className="flex flex-col items-center justify-center gap-4 border-2 border-dashed border-gray-200 rounded-lg p-12 dark:border-gray-800"> | ||
<HiCloudUpload className="text-9xl text-gray-400 dark:text-gray-700" /> | ||
<p className="text-sm text-gray-500 dark:text-gray-400"> | ||
Click to upload or drag and drop | ||
</p> | ||
<input id="dropzone-file" type="file" className="hidden" /> | ||
</div> | ||
</div> | ||
</label> | ||
</div> | ||
); | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { Button } from 'flowbite-react'; | ||
import DocumentsEmpty from '@/app/assistants/[id]/documents/DocumentsEmpty'; | ||
import { HiCloudUpload } from 'react-icons/hi'; | ||
import React from 'react'; | ||
|
||
|
||
export default function DocumentsManager() { | ||
return ( | ||
<div className="flex flex-col gap-8 p-6 md:p-10"> | ||
<div className="flex items-center justify-between"> | ||
<h3 className="text-3xl font-bold"></h3> | ||
<Button | ||
className='float-right' | ||
gradientDuoTone='purpleToBlue' | ||
onClick={() => {}} | ||
> | ||
<HiCloudUpload className='mr-2 h-5 w-5' /> Upload Files | ||
</Button> | ||
</div> | ||
<DocumentsEmpty /> | ||
</div> | ||
) | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ export const UserProfile = async () => { | |
href='https://docs.assistantshub.ai/' | ||
className='justify-end' | ||
> | ||
<div className='pt-1 text-xl font-normal'>Docs</div> | ||
<div className='pt-1 lg:text-lg'>Docs</div> | ||
</NavbarLink> | ||
<SignIn /> | ||
</NavbarCollapse> | ||
|
@@ -58,19 +58,19 @@ export const UserProfile = async () => { | |
</Dropdown> | ||
</div> | ||
<NavbarLink href='/'> | ||
<div className='pt-2 text-xl font-normal'>Home</div> | ||
<div className='pt-2 lg:text-lg'>Home</div> | ||
</NavbarLink> | ||
<NavbarLink href='/assistants' className='justify-end'> | ||
<div className='pt-2 text-xl font-normal'>Assistants</div> | ||
<div className='pt-2 lg:text-lg'>Assistants</div> | ||
</NavbarLink> | ||
<NavbarLink | ||
href='https://docs.assistantshub.ai/' | ||
className='justify-end' | ||
> | ||
<div className='pt-2 text-xl font-normal'>Docs</div> | ||
<div className='pt-2 lg:text-lg'>Docs</div> | ||
</NavbarLink> | ||
<NavbarLink href='mailto:[email protected]' className='justify-end'> | ||
<div className='pt-2 text-xl font-normal'>Help</div> | ||
<div className='pt-2 lg:text-lg'>Help</div> | ||
</NavbarLink> | ||
<NavbarLink className='justify-end'> | ||
<DarkThemeToggle /> | ||
|