-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed the Sidebar, navigation is now done by the navigation bar at the bottom. Added Watchlist system, you can add movies into your watchlist by hovering over the item and pressing the + button. Added Continue Watching system, you will now see movies on the homepage (Shows and Episode support coming asap.) Added Discord Server link at the top of the homepage.
- Loading branch information
1 parent
8952790
commit 2ec8daf
Showing
21 changed files
with
1,021 additions
and
214 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,84 @@ | ||
import { Avatar, Flex, IconButton, Tooltip } from "@chakra-ui/react"; | ||
import { IoHomeOutline, IoHomeSharp } from "react-icons/io5"; | ||
import { FaCog, FaListAlt } from "react-icons/fa"; | ||
import { useState } from "react"; | ||
import ProfileModal from "../renderer/pages/modals/ProfileModal"; | ||
import SettingsModal from "../renderer/pages/modals/SettingsModal"; | ||
|
||
interface Props { | ||
selectedTab : string; | ||
onTabChange : (tab: string) => void; | ||
} | ||
|
||
const Navbar : React.FC<Props> = ({ selectedTab, onTabChange }) => { | ||
|
||
const [isProfileOpen, setIsProfileOpen] = useState(false); | ||
const [isSettingsOpen, setIsSettingsOpen] = useState(false); | ||
|
||
|
||
return( | ||
<> | ||
<Flex | ||
as="header" | ||
position="absolute" | ||
bottom={10} | ||
left={"48%"} | ||
mb={4} | ||
height="50px" | ||
zIndex={10} | ||
w={"200px"} | ||
bg="dark.200" | ||
borderRadius={"20px"} | ||
className="items-center" | ||
flexDirection="row" | ||
p={2} | ||
> | ||
<Tooltip hasArrow label="Home"> | ||
<IconButton | ||
aria-label="Home" | ||
icon={<IoHomeSharp />} | ||
size="md" | ||
variant="ghost" | ||
color="white" | ||
cursor="pointer" | ||
_hover={{ bg: 'dark.300' }} | ||
onClick={() => onTabChange('home')} | ||
/> | ||
</Tooltip> | ||
|
||
<Tooltip hasArrow label="Watchlist"> | ||
<IconButton | ||
aria-label="List" | ||
icon={<FaListAlt />} | ||
size="md" | ||
variant="ghost" | ||
color="white" | ||
cursor="pointer" | ||
_hover={{ bg: 'dark.300' }} | ||
onClick={() => onTabChange('watchlist')} | ||
/> | ||
</Tooltip> | ||
<Tooltip hasArrow label="Settings"> | ||
<IconButton | ||
aria-label="Settings" | ||
icon={<FaCog className="text-white" />} | ||
_hover={{ bg: 'dark.200'}} | ||
onClick={() => setIsSettingsOpen(true)} | ||
variant="ghost" | ||
mr={2} | ||
/> | ||
</Tooltip> | ||
<Avatar | ||
size="sm" | ||
src={localStorage.getItem('avatarUrl') || undefined} | ||
cursor="pointer" | ||
onClick={() => setIsProfileOpen(true)} | ||
/> | ||
</Flex> | ||
<SettingsModal isOpen={isSettingsOpen} onClose={() => setIsSettingsOpen(false)} onOpen={() => setIsSettingsOpen(true)} /> | ||
<ProfileModal isOpen={isProfileOpen} onClose={() => setIsProfileOpen(false)} onOpen={() => setIsProfileOpen(true)} /> | ||
</> | ||
); | ||
} | ||
|
||
export default Navbar |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.