-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleanup imports and ssr cabable components
- Loading branch information
1 parent
1d418e1
commit bc790df
Showing
8 changed files
with
40 additions
and
57 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,17 @@ | ||
'use client'; | ||
|
||
import { useState } from 'react'; | ||
import { DocumentUploader } from '@/components/DocumentUploader'; | ||
import { DocumentList } from '@/components/DocumentList'; | ||
import { SettingsModal } from '@/components/SettingsModal'; | ||
import { SettingsIcon } from '@/components/icons/Icons'; | ||
import { Button } from '@headlessui/react'; | ||
|
||
export default function Home() { | ||
const [isSettingsOpen, setIsSettingsOpen] = useState(false); | ||
|
||
return ( | ||
<div className='p-3.5 sm:p-5'> | ||
<Button | ||
onClick={() => setIsSettingsOpen(true)} | ||
className="rounded-full p-2 text-foreground hover:bg-offbase transform transition-transform duration-200 ease-in-out hover:scale-[1.1] hover:text-accent absolute top-1 left-1 sm:top-3 sm:left-3" | ||
aria-label="Settings" | ||
tabIndex={0} | ||
> | ||
<SettingsIcon className="w-4 h-4 sm:w-5 sm:h-5 hover:animate-spin-slow" /> | ||
</Button> | ||
<SettingsModal /> | ||
<h1 className="text-xl font-bold text-center flex-grow">OpenReader WebUI</h1> | ||
<p className="text-sm mt-1 text-center text-muted mb-5">A bring your own text-to-speech api web interface for reading documents with high quality voices</p> | ||
<div className="flex flex-col items-center gap-5"> | ||
<DocumentUploader className='max-w-xl' /> | ||
<DocumentList /> | ||
</div> | ||
<SettingsModal isOpen={isSettingsOpen} setIsOpen={setIsSettingsOpen} /> | ||
</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
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