Skip to content

Commit

Permalink
fix: add dark mode version of Settings Object cover image (#3079)
Browse files Browse the repository at this point in the history
Fixes #3078
  • Loading branch information
thaisguigon authored Dec 19, 2023
1 parent 4637a92 commit 235b97f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,15 @@ import { Card } from '@/ui/layout/card/components/Card';
import { AnimatedFadeOut } from '@/ui/utilities/animation/components/AnimatedFadeOut';
import { cookieStorage } from '~/utils/cookie-storage';

import CoverImage from '../assets/cover.png';
import DarkCoverImage from '../assets/cover-dark.png';
import LightCoverImage from '../assets/cover-light.png';

const StyledCoverImageContainer = styled(Card)`
align-items: center;
background-image: url(${CoverImage.toString()});
background-image: ${({ theme }) =>
theme.name === 'light'
? `url('${LightCoverImage.toString()}')`
: `url('${DarkCoverImage.toString()}')`};
background-size: cover;
border-radius: ${({ theme }) => theme.border.radius.md};
box-sizing: border-box;
Expand Down

0 comments on commit 235b97f

Please sign in to comment.