mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-13 15:44:35 +01:00
(feat:background) Add the background to the launcher's main screen
This commit is contained in:
@@ -4,13 +4,21 @@ import Router, { Route } from "preact-router";
|
|||||||
import TopBar from "@components/TopBar.tsx";
|
import TopBar from "@components/TopBar.tsx";
|
||||||
import Launcher from "@ui/layout/Launcher.tsx";
|
import Launcher from "@ui/layout/Launcher.tsx";
|
||||||
|
|
||||||
|
import { useBackground } from "@backend/stores/mihoyo.ts";
|
||||||
|
|
||||||
import { PageRoutes } from "@app/constants.ts";
|
import { PageRoutes } from "@app/constants.ts";
|
||||||
|
|
||||||
import "@css/App.scss";
|
import "@css/App.scss";
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
|
const background = useBackground();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div class={"App"}>
|
<div class={"App"}
|
||||||
|
style={{
|
||||||
|
backgroundImage: `url(${background})`
|
||||||
|
}}
|
||||||
|
>
|
||||||
<TopBar />
|
<TopBar />
|
||||||
|
|
||||||
<Router>
|
<Router>
|
||||||
|
|||||||
Reference in New Issue
Block a user