-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
192f251
commit 21e8741
Showing
2 changed files
with
75 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,50 @@ | ||
import { motion } from "framer-motion"; | ||
import {styles} from "../Style"; | ||
import {ComputersCanvas} from "./canvas"; | ||
|
||
|
||
import { styles } from "../Style"; | ||
import { ComputersCanvas } from "./canvas"; | ||
|
||
const Hero = () => { | ||
return ( | ||
<section className="relative w-full h-screen mx-auto"> | ||
<div className={`${styles.paddingX} | ||
absolute inset-0 top-[120px] max-w-7xl mx-auto flex | ||
flex-row items-start gap-5`}> | ||
<div className="flex flex-col justify-center items-center mt-5"> | ||
<div className="w-5 h-5 rounded-full bg-[#915eff]"/> | ||
<div className="w-1 sm:h-80 h-40 violet-gradient"/> | ||
</div> | ||
<div> | ||
<h1 className={`${styles.heroHeadText} text-white`}>Hi, I'm <span className="text-[#915eff]"> | ||
Shivam Tiwari | ||
</span></h1> | ||
<div | ||
className={`${styles.paddingX} absolute inset-0 top-[120px] max-w-7xl mx-auto flex flex-row items-start gap-5`} | ||
> | ||
<div className="flex flex-col justify-center items-center mt-5"> | ||
<div className="w-5 h-5 rounded-full bg-[#915eff]" /> | ||
<div className="w-1 sm:h-80 h-40 violet-gradient" /> | ||
</div> | ||
<div> | ||
<h1 className={`${styles.heroHeadText} text-white`}> | ||
Hi, I'm <span className="text-[#915eff]">Shivam Tiwari</span> | ||
</h1> | ||
<p className={`${styles.heroSubText} mt-2 text-white-100`}> | ||
I develop Full-Stack Web Applications, | ||
<br className="sm:block hidden"/> | ||
primarly using the MERN Stack. | ||
I develop Full-Stack Web Applications, <br className="sm:block hidden" /> | ||
primarily using the MERN Stack. | ||
</p> | ||
</div> | ||
</div> | ||
|
||
<ComputersCanvas /> | ||
|
||
{/* Animated div component placed below modal */} | ||
<div className="absolute w-full flex justify-center items-center z-10"> | ||
<a href="#about"> | ||
<div className="w-[35px] h-[64px] rounded-3xl border-4 border-secondary flex justify-center items-start p-2"> | ||
<motion.div | ||
animate={{ | ||
y: [0, 26, 0], | ||
}} | ||
transition={{ | ||
duration: 1.5, | ||
repeat: Infinity, | ||
repeatType: "loop", | ||
}} | ||
className="w-3 h-3 rounded-full bg-secondary mb-1" | ||
/> | ||
</div> | ||
</a> | ||
</div> | ||
</div> | ||
<ComputersCanvas/> | ||
</section> | ||
) | ||
} | ||
); | ||
}; | ||
|
||
export default Hero | ||
export default Hero; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters