Image url updates
This commit is contained in:
@@ -9,7 +9,7 @@ export function MainLayout() {
|
|||||||
<Box
|
<Box
|
||||||
className={boxClasses.layoutContainer}
|
className={boxClasses.layoutContainer}
|
||||||
style={{
|
style={{
|
||||||
'--image-background': `linear-gradient(${theme.backgroundColor}33, ${theme.backgroundColor}33), url(backgrounds/${theme.backgroundImage})`,
|
'--image-background': `linear-gradient(${theme.backgroundColor}33, ${theme.backgroundColor}33), url(../../api/backgroundImages/${theme.backgroundImage})`,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Outlet />
|
<Outlet />
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ function BackgroundModal({
|
|||||||
style={{
|
style={{
|
||||||
aspectRatio: '16/9',
|
aspectRatio: '16/9',
|
||||||
width: '100%',
|
width: '100%',
|
||||||
backgroundImage: `url(/backgrounds/${background})`,
|
backgroundImage: `url(../../api/backgroundImages/${background})`,
|
||||||
backgroundSize: 'cover',
|
backgroundSize: 'cover',
|
||||||
backgroundPosition: 'center',
|
backgroundPosition: 'center',
|
||||||
backgroundRepeat: 'no-repeat',
|
backgroundRepeat: 'no-repeat',
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ function ThemeCard({
|
|||||||
h={'115px'}
|
h={'115px'}
|
||||||
disabled={currentTheme === 'random'}
|
disabled={currentTheme === 'random'}
|
||||||
style={{
|
style={{
|
||||||
background: `linear-gradient(${cardTheme.backgroundColor}33, ${cardTheme.backgroundColor}33), no-repeat center url(/backgrounds/${cardTheme.backgroundImage})`,
|
background: `linear-gradient(${cardTheme.backgroundColor}33, ${cardTheme.backgroundColor}33), no-repeat center url(../../api/backgroundImages/${cardTheme.backgroundImage})`,
|
||||||
backgroundSize: 'cover',
|
backgroundSize: 'cover',
|
||||||
backgroundColor: cardTheme.backgroundColor,
|
backgroundColor: cardTheme.backgroundColor,
|
||||||
border: `solid ${cardTheme.borderColor}`,
|
border: `solid ${cardTheme.borderColor}`,
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ function ThemeMiniCard({ allThemes, item }: { allThemes: Theme[]; item: number }
|
|||||||
w={'175px'}
|
w={'175px'}
|
||||||
h={'60px'}
|
h={'60px'}
|
||||||
style={{
|
style={{
|
||||||
backgroundImage: `linear-gradient(${theme?.backgroundColor}33, ${theme?.backgroundColor}33), url(/backgrounds/${theme?.backgroundImage})`,
|
backgroundImage: `linear-gradient(${theme?.backgroundColor}33, ${theme?.backgroundColor}33), url(../../api/backgroundImages/${theme?.backgroundImage})`,
|
||||||
backgroundSize: 'cover',
|
backgroundSize: 'cover',
|
||||||
backgroundColor: theme?.backgroundColor,
|
backgroundColor: theme?.backgroundColor,
|
||||||
backgroundPosition: 'center',
|
backgroundPosition: 'center',
|
||||||
|
|||||||
@@ -66,8 +66,8 @@ function ThemeModal({
|
|||||||
background:
|
background:
|
||||||
item !== 'none'
|
item !== 'none'
|
||||||
? index === hovered
|
? index === hovered
|
||||||
? `linear-gradient(${selectedTheme.backgroundColor}88, ${selectedTheme.backgroundColor}88), no-repeat center url(/backgrounds/${item})`
|
? `linear-gradient(${selectedTheme.backgroundColor}88, ${selectedTheme.backgroundColor}88), no-repeat center url(../../api/backgroundImages/${item})`
|
||||||
: `no-repeat center url(/backgrounds/${item})`
|
: `no-repeat center url(../../api/backgroundImages/${item})`
|
||||||
: undefined,
|
: undefined,
|
||||||
backgroundSize: item !== 'none' ? 'cover' : undefined,
|
backgroundSize: item !== 'none' ? 'cover' : undefined,
|
||||||
backgroundColor: item === 'none' ? '#00000088' : undefined,
|
backgroundColor: item === 'none' ? '#00000088' : undefined,
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ export default function ThemeModalContent({ selectedTheme }: { selectedTheme: Th
|
|||||||
width: '100%',
|
width: '100%',
|
||||||
backgroundImage:
|
backgroundImage:
|
||||||
selectedTheme.backgroundImage !== 'none'
|
selectedTheme.backgroundImage !== 'none'
|
||||||
? `linear-gradient(${selectedTheme?.backgroundColor}33, ${selectedTheme?.backgroundColor}33), url(/backgrounds/${selectedTheme?.backgroundImage})`
|
? `linear-gradient(${selectedTheme?.backgroundColor}33, ${selectedTheme?.backgroundColor}33), url(../../api/backgroundImages/${selectedTheme?.backgroundImage})`
|
||||||
: undefined,
|
: undefined,
|
||||||
backgroundSize: selectedTheme.backgroundImage !== 'none' ? 'cover' : undefined,
|
backgroundSize: selectedTheme.backgroundImage !== 'none' ? 'cover' : undefined,
|
||||||
backgroundColor:
|
backgroundColor:
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ function ThemeSelect({
|
|||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
height: '60px',
|
height: '60px',
|
||||||
color: theme?.primaryColor,
|
color: theme?.primaryColor,
|
||||||
background: `linear-gradient(${theme?.backgroundColor}33, ${theme?.backgroundColor}33), no-repeat center url(/backgrounds/${theme?.backgroundImage})`,
|
background: `linear-gradient(${theme?.backgroundColor}33, ${theme?.backgroundColor}33), no-repeat center url(../../api/backgroundImages/${theme?.backgroundImage})`,
|
||||||
backgroundSize: 'cover',
|
backgroundSize: 'cover',
|
||||||
backgroundColor: theme?.backgroundColor,
|
backgroundColor: theme?.backgroundColor,
|
||||||
border: `solid ${theme?.borderColor}`,
|
border: `solid ${theme?.borderColor}`,
|
||||||
@@ -78,7 +78,7 @@ function ThemeSelect({
|
|||||||
w={'100%'}
|
w={'100%'}
|
||||||
h={'60px'}
|
h={'60px'}
|
||||||
style={{
|
style={{
|
||||||
background: `linear-gradient(${theme?.backgroundColor}33, ${theme?.backgroundColor}33), no-repeat center url(/backgrounds/${theme?.backgroundImage})`,
|
background: `linear-gradient(${theme?.backgroundColor}33, ${theme?.backgroundColor}33), no-repeat center url(../../api/backgroundImages/${theme?.backgroundImage})`,
|
||||||
backgroundSize: 'cover',
|
backgroundSize: 'cover',
|
||||||
backgroundColor: theme?.backgroundColor,
|
backgroundColor: theme?.backgroundColor,
|
||||||
border: `solid ${theme?.borderColor}`,
|
border: `solid ${theme?.borderColor}`,
|
||||||
|
|||||||
Reference in New Issue
Block a user