mirror of
https://github.com/Unkn0wnCat/KevinK.dev.js.git
synced 2025-05-01 03:07:16 +02:00
Disable particles
This commit is contained in:
parent
a6a0662269
commit
ea911051a2
1 changed files with 5 additions and 5 deletions
|
@ -20,7 +20,7 @@ import {
|
||||||
Phone,
|
Phone,
|
||||||
} from "lucide-react";
|
} from "lucide-react";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import * as particleConfig from "./index.particles.json";
|
//import * as particleConfig from "./index.particles.json";
|
||||||
|
|
||||||
export const query = graphql`
|
export const query = graphql`
|
||||||
query GetMetaAndProjects($language: String) {
|
query GetMetaAndProjects($language: String) {
|
||||||
|
@ -47,7 +47,7 @@ export const query = graphql`
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const loadTsParticles = async () => {
|
/*const loadTsParticles = async () => {
|
||||||
import("tsparticles").then(({ tsParticles }) => {
|
import("tsparticles").then(({ tsParticles }) => {
|
||||||
tsParticles.load("particle-container", particleConfig).then(() => {
|
tsParticles.load("particle-container", particleConfig).then(() => {
|
||||||
anime({
|
anime({
|
||||||
|
@ -58,7 +58,7 @@ const loadTsParticles = async () => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
};
|
};*/
|
||||||
|
|
||||||
const IndexPage = (props) => {
|
const IndexPage = (props) => {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
@ -92,9 +92,9 @@ const IndexPage = (props) => {
|
||||||
easing: "easeInOutCirc",
|
easing: "easeInOutCirc",
|
||||||
});
|
});
|
||||||
|
|
||||||
if (typeof window !== "undefined")
|
/*if (typeof window !== "undefined")
|
||||||
// eslint-disable-next-line no-undef
|
// eslint-disable-next-line no-undef
|
||||||
window.setTimeout(loadTsParticles, 1000);
|
window.setTimeout(loadTsParticles, 1000);*/
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
let meta = props.data.site.siteMetadata;
|
let meta = props.data.site.siteMetadata;
|
||||||
|
|
Loading…
Add table
Reference in a new issue