Background fixes

This commit is contained in:
Sean Edmunds
2024-12-04 15:13:45 -06:00
parent 2fbd2af22f
commit f94d45953e
7 changed files with 11 additions and 9 deletions

View File

@@ -47,8 +47,8 @@ function App() {
const router = createBrowserRouter(
createRoutesFromElements(
<Route>
<Route path='/trigger' element={<Homepage theme={theme} />} />
<Route path='/trigger/settings' element={<Settings theme={theme} />} />
<Route path={`/${import.meta.env.VITE_BASE_URL}`} element={<Homepage theme={theme} />} />
<Route path={`/${import.meta.env.VITE_BASE_URL}/settings`} element={<Settings theme={theme} />} />
</Route>,
),
);
@@ -71,7 +71,7 @@ function App() {
width: '100%',
height: '100%',
position: 'fixed',
backgroundImage: `linear-gradient(${theme.backgroundColor}33, ${theme.backgroundColor}33), url(../backgrounds/${theme.backgroundImage})`,
backgroundImage: `linear-gradient(${theme.backgroundColor}33, ${theme.backgroundColor}33), url(backgrounds/${theme.backgroundImage})`,
backgroundSize: 'cover',
backgroundRepeat: 'no-repeat',
backgroundPosition: 'center',