(feat:background) Add the background to the launcher's main screen

This commit is contained in:
KingRainbow44
2023-11-29 23:50:48 -05:00
parent 7e916880a6
commit a0206b0cc5

View File

@@ -4,13 +4,21 @@ import Router, { Route } from "preact-router";
import TopBar from "@components/TopBar.tsx";
import Launcher from "@ui/layout/Launcher.tsx";
import { useBackground } from "@backend/stores/mihoyo.ts";
import { PageRoutes } from "@app/constants.ts";
import "@css/App.scss";
function App() {
const background = useBackground();
return (
<div class={"App"}>
<div class={"App"}
style={{
backgroundImage: `url(${background})`
}}
>
<TopBar />
<Router>