Skip to content

Commit

Permalink
feat: 背景をぼかし、ボタンサイズと配置を調整
Browse files Browse the repository at this point in the history
  • Loading branch information
r4ai committed Nov 19, 2024
1 parent d42036f commit 278dd7d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
8 changes: 6 additions & 2 deletions app/components/atoms/button/MenuIconButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,13 @@ export const MenuIconButton: FC<Props> = memo(({ onOpen }) => {
<IconButton
aria-label="メニューボタン"
icon={<HamburgerIcon />}
size="sm"
variant="unstyled"
size="lg"
variant="ghost"
display={{ base: "block", lg: "none" }}
_hover={{
cursor: "pointer",
bg: "blackAlpha.100",
}}
onClick={onOpen}
/>
)
Expand Down
12 changes: 9 additions & 3 deletions app/routes/header.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Flex, Heading, Text, useDisclosure } from "@chakra-ui/react"
import { Flex, Heading, HStack, Text, useDisclosure } from "@chakra-ui/react"
import { Link, useNavigate } from "@remix-run/react"
import { useCallback } from "react"
import { MenuIconButton } from "~/components/atoms/button/MenuIconButton"
Expand Down Expand Up @@ -31,7 +31,13 @@ export default function Header() {

return (
<>
<Flex bg="blackAlpha.100" padding={{ base: 3, lg: 5 }}>
<HStack
bg="blackAlpha.100"
padding={4}
gap={4}
backdropFilter="auto"
backdropBlur="lg"
>
<MenuIconButton onOpen={onOpen} />
<Heading _hover={{ cursor: "pointer" }}>
<Link to="/">
Expand All @@ -40,7 +46,7 @@ export default function Header() {
</Text>
</Link>
</Heading>
</Flex>
</HStack>
<MenuDrawer
onClose={onClose}
isOpen={isOpen}
Expand Down

0 comments on commit 278dd7d

Please sign in to comment.