mirror of
https://github.com/NebulaServices/Nebula.git
synced 2025-05-17 05:20:01 -04:00
fix issue for last
This commit is contained in:
parent
e0282962d6
commit
c2268be997
2 changed files with 12 additions and 9 deletions
|
@ -54,10 +54,12 @@ export function ThemeProvider({ children, ...props }: ThemeProviderProps) {
|
|||
root.classList.remove(theme);
|
||||
});
|
||||
root.classList.add(theme);
|
||||
if (background) {
|
||||
document.documentElement.style.setProperty(
|
||||
"--background-image",
|
||||
`url(${background})`
|
||||
);
|
||||
}
|
||||
}, [theme, themes, background]);
|
||||
|
||||
const value = {
|
||||
|
|
|
@ -33,21 +33,22 @@ export default function App() {
|
|||
console.log(container);
|
||||
};
|
||||
return (
|
||||
<div className={!background && "bg-primary"}>
|
||||
<div>
|
||||
{window.location.origin === "https://nebulaproxy.io" && <Meta />}
|
||||
{/* {window.location.origin === "http://localhost:8080" && <Meta />} */}
|
||||
<Suspense fallback={<LoadSuspense />}>
|
||||
<main className="absolute z-50 h-screen w-screen">
|
||||
<main className="absolute z-30 h-screen w-screen">
|
||||
<Routes />
|
||||
</main>
|
||||
<div className="-z-10 h-full w-full bg-primary">
|
||||
<div
|
||||
className={`z-20 h-screen w-screen ${!background && "bg-primary"}`}
|
||||
>
|
||||
{init && particlesUrl !== "none" && (
|
||||
<Particles
|
||||
id="tsparticles"
|
||||
url={particlesUrl}
|
||||
particlesLoaded={particlesLoaded}
|
||||
class="bg-primary"
|
||||
zIndex={-10}
|
||||
className="bg-primary"
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue