mirror of
https://github.com/NebulaServices/Nebula.git
synced 2025-05-17 13:30:00 -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.remove(theme);
|
||||||
});
|
});
|
||||||
root.classList.add(theme);
|
root.classList.add(theme);
|
||||||
|
if (background) {
|
||||||
document.documentElement.style.setProperty(
|
document.documentElement.style.setProperty(
|
||||||
"--background-image",
|
"--background-image",
|
||||||
`url(${background})`
|
`url(${background})`
|
||||||
);
|
);
|
||||||
|
}
|
||||||
}, [theme, themes, background]);
|
}, [theme, themes, background]);
|
||||||
|
|
||||||
const value = {
|
const value = {
|
||||||
|
|
|
@ -33,21 +33,22 @@ export default function App() {
|
||||||
console.log(container);
|
console.log(container);
|
||||||
};
|
};
|
||||||
return (
|
return (
|
||||||
<div className={!background && "bg-primary"}>
|
<div>
|
||||||
{window.location.origin === "https://nebulaproxy.io" && <Meta />}
|
{window.location.origin === "https://nebulaproxy.io" && <Meta />}
|
||||||
{/* {window.location.origin === "http://localhost:8080" && <Meta />} */}
|
{/* {window.location.origin === "http://localhost:8080" && <Meta />} */}
|
||||||
<Suspense fallback={<LoadSuspense />}>
|
<Suspense fallback={<LoadSuspense />}>
|
||||||
<main className="absolute z-50 h-screen w-screen">
|
<main className="absolute z-30 h-screen w-screen">
|
||||||
<Routes />
|
<Routes />
|
||||||
</main>
|
</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" && (
|
{init && particlesUrl !== "none" && (
|
||||||
<Particles
|
<Particles
|
||||||
id="tsparticles"
|
id="tsparticles"
|
||||||
url={particlesUrl}
|
url={particlesUrl}
|
||||||
particlesLoaded={particlesLoaded}
|
particlesLoaded={particlesLoaded}
|
||||||
class="bg-primary"
|
className="bg-primary"
|
||||||
zIndex={-10}
|
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue