Skip to content

Commit

Permalink
Se ha añadido hover a los links del nav
Browse files Browse the repository at this point in the history
  • Loading branch information
CANCI0 committed Apr 1, 2024
1 parent 49c2de3 commit b82cff3
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions webapp/src/components/Nav/Nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,33 +27,33 @@ const Nav = () => {
<Heading as="h1" size="xl" color={textColor} textAlign="start">WIQ</Heading>
</Box>
<Flex gap={3}>
<Button variant="link" color={textColor} mr={4} onClick={() => handleNavigate("/home")}>Home</Button>
<Button variant="link" color={textColor} mr={4} p={2} _hover={{ backgroundColor: 'gray.400', color: 'white' }} onClick={() => handleNavigate("/home")}>Home</Button>
<Popover>
<PopoverTrigger>
<Button variant="link" color={textColor}>
<Button p={2} _hover={{ backgroundColor: 'gray.400', color: 'white' }} variant="link" color={textColor}>
Modos de Juego
</Button>
</PopoverTrigger>
<PopoverContent>
<PopoverArrow />
<PopoverCloseButton />
<PopoverHeader>Modos de Juego</PopoverHeader>
<PopoverHeader >Modos de Juego</PopoverHeader>
<PopoverBody>
<Text cursor="pointer" onClick={() => handleNavigate("/home/clasico")} color={textColor}>Clásico</Text>
<Text cursor="pointer" onClick={() => handleNavigate("/home/bateria")} color={textColor}>Batería de sabios</Text>
{/* Agrega más modos de juego aquí */}
</PopoverBody>
</PopoverContent>
</Popover>
<Button variant="link" color={textColor} mr={4} onClick={() => handleNavigate("/stats")}>Estadísticas</Button>
<Button variant="link" color={textColor} mr={4} onClick={() => handleNavigate("/ranking")}>Ranking</Button>
<Button variant="link" color={textColor} mr={4} onClick={() => handleNavigate("/perfil")}>Perfil</Button>
<Button variant="link" color={textColor} mr={4} p={2} _hover={{ backgroundColor: 'gray.400', color: 'white' }} onClick={() => handleNavigate("/stats")}>Estadísticas</Button>
<Button variant="link" color={textColor} mr={4} p={2} _hover={{ backgroundColor: 'gray.400', color: 'white' }} onClick={() => handleNavigate("/ranking")}>Ranking</Button>
<Button variant="link" color={textColor} mr={4} p={2} _hover={{ backgroundColor: 'gray.400', color: 'white' }} onClick={() => handleNavigate("/perfil")}>Perfil</Button>
</Flex>
<Flex width="25%" className="rightItems" justifyContent="end">
<Button variant="link" color={textColor} mr={4} onClick={() => handleNavigate("/sobre")}>Sobre nosotros</Button>
<Button variant="link" color={textColor} mr={4} onClick={() => handleConfig()}>Opciones</Button>
<Button variant="link" color={textColor} onClick={() => logout()}>Desconectarse</Button>
<Switch isChecked={isDarkTheme} onChange={toggleColorMode} ml={4} />
<Button variant="link" color={textColor} mr={4} p={2} _hover={{ backgroundColor: 'gray.400', color: 'white' }} onClick={() => handleNavigate("/sobre")}>Sobre nosotros</Button>
<Button variant="link" color={textColor} mr={4} p={2} _hover={{ backgroundColor: 'gray.400', color: 'white' }} onClick={() => handleConfig()}>Opciones</Button>
<Button variant="link" color={textColor} p={2} _hover={{ backgroundColor: 'gray.400', color: 'white' }} onClick={() => logout()}>Desconectarse</Button>
<Switch isChecked={isDarkTheme} onChange={toggleColorMode} ml={4} alignSelf="center"/>
</Flex>
</Box>
);
Expand Down

0 comments on commit b82cff3

Please sign in to comment.