mirror of
https://github.com/NebulaServices/Nebula.git
synced 2025-05-17 13:30:00 -04:00
particles
This commit is contained in:
parent
82ca99aa5d
commit
3833559cec
1 changed files with 6 additions and 3 deletions
|
@ -14,7 +14,7 @@ const particlesUrl = localStorage.getItem("particles") || "none";
|
||||||
|
|
||||||
export default function App() {
|
export default function App() {
|
||||||
const [init, setInit] = useState(false);
|
const [init, setInit] = useState(false);
|
||||||
const {background} = useTheme();
|
const { background } = useTheme();
|
||||||
// this should be run only once per application lifetime
|
// this should be run only once per application lifetime
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
initParticlesEngine(async (engine) => {
|
initParticlesEngine(async (engine) => {
|
||||||
|
@ -37,14 +37,17 @@ export default function App() {
|
||||||
{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 />}>
|
||||||
<Routes />
|
<main className="absolute z-50 h-screen w-screen">
|
||||||
<div className="z-10 h-full w-full bg-primary">
|
<Routes />
|
||||||
|
</main>
|
||||||
|
<div className="-z-10 h-full w-full 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"
|
class="bg-primary"
|
||||||
|
zIndex={-10}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue