Skip to content

Commit

Permalink
added particles animation
Browse files Browse the repository at this point in the history
  • Loading branch information
ayush4345 committed Feb 28, 2024
1 parent 6b7042a commit 62d9dc8
Show file tree
Hide file tree
Showing 5 changed files with 432 additions and 4 deletions.
3 changes: 3 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
output: "export",
compiler: {
removeConsole: true,
},
}

module.exports = nextConfig
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"tailwind-merge": "^2.2.1",
"tailwindcss": "^3.4.1",
"tailwindcss-animate": "^1.0.7",
"tsparticles": "^3.3.0",
"typewriter-effect": "^2.21.0"
}
}
312 changes: 312 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions src/components/hero.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import ReactCanvasNest from 'react-canvas-nest';
import Typewriter from 'typewriter-effect';
import Particles from './particles';

export default function Hero() {
return (
<>
<main className=" flex justify-center items-center min-h-[80vh] md:min-h-[90vh] mt-14 sm:mt-0 flex-col ">
{/* <ReactCanvasNest className='canvasNest' config={{ pointColor: ' 86, 12, 125 ', count: 111 }} style={{ zIndex: 99 }} /> */}
<div className="flex items-center sm:justify-between w-full px-10 flex-col-reverse md:flex-row">
<main className=" flex relative justify-center items-center min-h-[80vh] md:min-h-[90vh] mt-14 sm:mt-0 flex-col ">
<Particles />
<div className="flex items-center sm:justify-between w-full px-10 flex-col-reverse md:flex-row z-10">
<div className="flex flex-col flex-auto w-full md:w-1/2 justify-center">
<h1 className="text-black text-4xl md:text-5xl font-bold">Your potential.<br /> Our passion.<br />
</h1>
Expand Down
Loading

0 comments on commit 62d9dc8

Please sign in to comment.