mirror of
https://github.com/NebulaServices/Nebula.git
synced 2025-05-17 05:20:01 -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() {
|
||||
const [init, setInit] = useState(false);
|
||||
const {background} = useTheme();
|
||||
const { background } = useTheme();
|
||||
// this should be run only once per application lifetime
|
||||
useEffect(() => {
|
||||
initParticlesEngine(async (engine) => {
|
||||
|
@ -37,14 +37,17 @@ export default function App() {
|
|||
{window.location.origin === "https://nebulaproxy.io" && <Meta />}
|
||||
{/* {window.location.origin === "http://localhost:8080" && <Meta />} */}
|
||||
<Suspense fallback={<LoadSuspense />}>
|
||||
<Routes />
|
||||
<div className="z-10 h-full w-full bg-primary">
|
||||
<main className="absolute z-50 h-screen w-screen">
|
||||
<Routes />
|
||||
</main>
|
||||
<div className="-z-10 h-full w-full bg-primary">
|
||||
{init && particlesUrl !== "none" && (
|
||||
<Particles
|
||||
id="tsparticles"
|
||||
url={particlesUrl}
|
||||
particlesLoaded={particlesLoaded}
|
||||
class="bg-primary"
|
||||
zIndex={-10}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue