-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add mobile menu * fix: add missing key prop to MobileMenuItem in MobileMenu component * fix: update menu data to handle empty NEXT_PUBLIC_SUPPORTED_NETWORKS * refactor: Moves transform to className * refactor: Update Rotable component to make onClick prop optional * feat: Update mobile menu component with the requested features * fix: Add z-index to MobileMenuBackground component * feat: Improve mobile menu ThemeModeButton * chore: MobileMenuBackground renames close -> onClose * chore: MobileMenuBackground renames open -> show * chore: rename MobileMenu -> SidebarMenu * chore: rename NavItem.tsx -> Menu.tsx * refactor: Abstract out the side panel logic * chore: use onClose instead of setOpen(false) * chore: rename MobileMenuBackground -> Overlay * chore: rename NavMenusSection to NavMenus and rename data.tsx to content.tsx * chore: rename MENU_DATA -> MENU_ITEMS * chore: renames MenuItem -> NavItem and ExpandibleMenuItem -> ExpandibleNavItem * chore: Renames MenuItem -> SubItem and removes MenuItemProps * refactor: reuse NavItem and ExpandibleNavItem types inside Menu.tsx * chore: remove NavItem.type * refactor: delegate the responsibility of hiding or displaying the SideMenu to the consumer * chore: display the mobile menu on the right side of the screen in the homepage * chore: update sidebar menu to hide only on extra-large (xl) screens * refactor(web): refactor navigation components: - Improve components names - Separate `SidebarNavigationMenu` from `NavigationMenus` - Re-add `Menu` component to `NavigationMenus` to keep consistency with `SidebarNavigationMenu to keep consistency with `SidebarNavigationMenu`` * feat(web): create side panel context * fix(web): collapse opened tabs automatically when closing sidebar navigation menu * fix(web): smooth overlay display * fix(web): highlight individual navigation items in the sidebar menu when the user is on the corresponding URL route * chore: add changeset * style(web): rename animated side panel props * refactor(web): replace conventional links with nextjs `Link` components in `SidebarNavigationMenu` --------- Co-authored-by: PJColombo <paulo.colombo@pm.me>
- Loading branch information
1 parent
85afe5b
commit e8bb0e5
Showing
12 changed files
with
533 additions
and
276 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@blobscan/web": minor | ||
--- | ||
|
||
Added a sidebar navigation menu for smaller screens |
6 changes: 3 additions & 3 deletions
6
apps/web/src/components/AppLayout/TopBarLayout/CompactTopBar.tsx
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.