mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 13:48:02 +00:00
feat: updates
This commit is contained in:
parent
f340a90117
commit
cec4c5909d
50 changed files with 1304 additions and 207 deletions
26
packages/web/pages/New/Artist/Header/BlurBackground.tsx
Normal file
26
packages/web/pages/New/Artist/Header/BlurBackground.tsx
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
import { resizeImage } from '@/web/utils/common'
|
||||
import { cx, css } from '@emotion/css'
|
||||
import useIsMobile from '@/web/hooks/useIsMobile'
|
||||
|
||||
const BlurBackground = ({ cover }: { cover?: string }) => {
|
||||
const isMobile = useIsMobile()
|
||||
return isMobile || !cover ? (
|
||||
<></>
|
||||
) : (
|
||||
<img
|
||||
className={cx(
|
||||
'absolute z-0 object-cover opacity-70',
|
||||
css`
|
||||
top: -400px;
|
||||
left: -370px;
|
||||
width: 1572px;
|
||||
height: 528px;
|
||||
filter: blur(256px) saturate(1.2);
|
||||
`
|
||||
)}
|
||||
src={resizeImage(cover, 'sm')}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
export default BlurBackground
|
||||
Loading…
Add table
Add a link
Reference in a new issue