-
Notifications
You must be signed in to change notification settings - Fork 485
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dim out page to focus on a search (#1711)
* Dim out page to focus on a search Fixes #1682 * add backdrop to search results page * refactoring
- Loading branch information
Showing
19 changed files
with
146 additions
and
90 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
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { Box, useColorModeValue } from '@chakra-ui/react'; | ||
import React from 'react'; | ||
|
||
interface Props { | ||
isOpen: boolean; | ||
} | ||
|
||
const SearchBarBackdrop = ({ isOpen }: Props) => { | ||
const backdropBgColor = useColorModeValue('blackAlpha.400', 'blackAlpha.600'); | ||
|
||
return ( | ||
<Box | ||
position="fixed" | ||
top={ 0 } | ||
left={ 0 } | ||
w="100vw" | ||
h="100vh" | ||
bgColor={ backdropBgColor } | ||
zIndex="overlay" | ||
display={{ base: 'none', lg: isOpen ? 'block' : 'none' }} | ||
/> | ||
); | ||
}; | ||
|
||
export default React.memo(SearchBarBackdrop); |
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
Binary file modified
BIN
+913 Bytes
(100%)
...r/__screenshots__/SearchBar.pw.tsx_default_recent-keywords-suggest-mobile-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+834 Bytes
(100%)
...chBar/__screenshots__/SearchBar.pw.tsx_default_scroll-suggest-to-category-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+952 Bytes
(100%)
...ar/__screenshots__/SearchBar.pw.tsx_default_search-by-address-hash-mobile-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+978 Bytes
(100%)
...chBar/__screenshots__/SearchBar.pw.tsx_default_search-by-blob-hash-mobile-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+963 Bytes
(100%)
...hBar/__screenshots__/SearchBar.pw.tsx_default_search-by-block-hash-mobile-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+910 Bytes
(100%)
...ar/__screenshots__/SearchBar.pw.tsx_default_search-by-block-number-mobile-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+928 Bytes
(100%)
...shots__/SearchBar.pw.tsx_default_search-by-contract-name-mobile-dark-mode-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.09 KB
(100%)
..._screenshots__/SearchBar.pw.tsx_default_search-by-name-homepage-dark-mode-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+969 Bytes
(100%)
...r/__screenshots__/SearchBar.pw.tsx_default_search-by-tag-mobile-dark-mode-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+974 Bytes
(100%)
...eenshots__/SearchBar.pw.tsx_default_search-by-token-name-mobile-dark-mode-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+939 Bytes
(100%)
...archBar/__screenshots__/SearchBar.pw.tsx_default_search-by-tx-hash-mobile-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+931 Bytes
(100%)
...ar/__screenshots__/SearchBar.pw.tsx_default_search-by-user-op-hash-mobile-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+534 Bytes
(100%)
...rchBar/__screenshots__/SearchBar.pw.tsx_default_search-with-view-all-link-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+967 Bytes
(100%)
...ar/__screenshots__/SearchBar.pw.tsx_default_with-apps-default-view-mobile-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.