diff --git a/package-lock.json b/package-lock.json index e1c3c2e..f49303f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10530,6 +10530,14 @@ } } }, + "react-particles-js": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/react-particles-js/-/react-particles-js-2.7.0.tgz", + "integrity": "sha512-gsYIr55plOMB6nZW2iBjgXoqOZqBvggW9trNTk0mYHkvqQUpuxhcCDGwRwnts10XQ442PjzxZbklwMlhSOcfgA==", + "requires": { + "lodash": "^4.17.11" + } + }, "react-popper": { "version": "1.3.4", "resolved": "https://registry.npmjs.org/react-popper/-/react-popper-1.3.4.tgz", diff --git a/package.json b/package.json index 68f219e..07ceaa5 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "react": "^16.9.0", "react-bootstrap": "^1.0.0-beta.12", "react-dom": "^16.9.0", + "react-particles-js": "^2.7.0", "react-scripts": "3.1.2" }, "scripts": { diff --git a/src/App.css b/src/App.css index 617e847..7e53343 100644 --- a/src/App.css +++ b/src/App.css @@ -13,15 +13,24 @@ .App-heading { background-color: #2c003e; - min-height: 100vh; + width: 100%; + height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 40px; + padding: 0px; color: white; } + +.particle-container { + width: 100%; + height: 100%; + margin: 0px; +} + p { margin: 1px } diff --git a/src/App.js b/src/App.js index df5b247..f85a46f 100644 --- a/src/App.js +++ b/src/App.js @@ -6,11 +6,15 @@ import HoverButton from './Components/HoverButton.js' import About from './Components/About.js' import Projects from './Components/Projects.js' import Contact from './Components/Contact.js' +import Particles from 'react-particles-js'; +import particleConfig from './files/particlesjs-config.json' import AOS from 'aos' import 'aos/dist/aos.css'; AOS.init() +console.log(particleConfig) + function App() { return (
+ Hello, my name is Raman Gupta. +
++ I am a Creator. +
+- Hello, my name is Raman Gupta. -
-- I am a Creator. -
-