feat: Cover the entire search page with a background image #2247 (#2381)

### What problem does this PR solve?

feat: Cover the entire search page with a background image #2247

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2024-09-12 14:20:04 +08:00
committed by GitHub
parent 6722b3d558
commit 983540614e
3 changed files with 35 additions and 18 deletions

View File

@@ -86,25 +86,24 @@ const SearchPage = () => {
return (
<>
<Layout className={styles.searchPage}>
<Layout
className={styles.searchPage}
style={{ backgroundImage: `url(${imgUrl})` }}
>
<SearchSidebar
isFirstRender={isFirstRender}
checkedList={checkedList}
setCheckedList={setCheckedList}
></SearchSidebar>
<Layout>
<Layout className={isFirstRender ? styles.mainLayout : ''}>
<Content>
{isFirstRender ? (
<Flex
justify="center"
align="center"
className={styles.firstRenderContent}
style={{ backgroundImage: `url(${imgUrl})` }}
>
<Flex vertical align="center" gap={'large'}>
{/* <Space size={30}>
<img src="/logo.svg" alt="" className={styles.appIcon} />
<span className={styles.appName}>{appConf.appName}</span>
</Space> */}
{InputSearch}
</Flex>
</Flex>