diff --git a/web/components/ColorSwitcher.ce.vue b/web/components/ColorSwitcher.ce.vue index e766daa88..f8a00b62f 100644 --- a/web/components/ColorSwitcher.ce.vue +++ b/web/components/ColorSwitcher.ce.vue @@ -1,92 +1,77 @@ diff --git a/web/pages/index.vue b/web/pages/index.vue index 2c48f6432..cc8ce23ef 100644 --- a/web/pages/index.vue +++ b/web/pages/index.vue @@ -7,10 +7,12 @@ import AES from 'crypto-js/aes'; import type { SendPayloads } from '~/store/callback'; import SsoButtonCe from '~/components/SsoButton.ce.vue'; +import { useThemeStore } from '~/store/theme'; const serverStore = useDummyServerStore(); const { serverState } = storeToRefs(serverStore); const { registerEntry } = useCustomElements(); +const { theme } = storeToRefs(useThemeStore()); onBeforeMount(() => { registerEntry('UnraidComponents'); }); @@ -75,6 +77,13 @@ onMounted(() => { 'forUpc' ); }); + +const bannerImage = watch(theme, () => { + if (theme.value.banner) { + return `url(https://picsum.photos/1920/200?${Math.round(Math.random() * 100)})`; + } + return 'none'; +});