Spaces:
Sleeping
Sleeping
Update src/pages/Home.jsx
Browse files- src/pages/Home.jsx +130 -129
src/pages/Home.jsx
CHANGED
|
@@ -1,129 +1,130 @@
|
|
| 1 |
-
import React from "react";
|
| 2 |
-
import { motion } from "framer-motion";
|
| 3 |
-
import { IoLogoLinkedin } from "react-icons/io5";
|
| 4 |
-
import { BiLogoGmail } from "react-icons/bi";
|
| 5 |
-
import { BsGithub } from "react-icons/bs";
|
| 6 |
-
import { TypeAnimation } from "react-type-animation";
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
//
|
| 40 |
-
//
|
| 41 |
-
//
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
<span
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
|
|
|
|
|
| 1 |
+
import React from "react";
|
| 2 |
+
import { motion } from "framer-motion";
|
| 3 |
+
import { IoLogoLinkedin } from "react-icons/io5";
|
| 4 |
+
import { BiLogoGmail } from "react-icons/bi";
|
| 5 |
+
import { BsGithub } from "react-icons/bs";
|
| 6 |
+
import { TypeAnimation } from "react-type-animation";
|
| 7 |
+
import leetcodeLogo from "../assets/leetcode-svgrepo-com.svg";
|
| 8 |
+
|
| 9 |
+
export default function Home() {
|
| 10 |
+
return (
|
| 11 |
+
<div className="mt-20" id="home">
|
| 12 |
+
<div className="flex justify-between py-10 items-center px-5 lg:px-28 lg:flex-row flex-col-reverse">
|
| 13 |
+
|
| 14 |
+
<motion.div
|
| 15 |
+
className="lg:w-[45%]"
|
| 16 |
+
initial={{ opacity: 0, x: -50 }}
|
| 17 |
+
animate={{ opacity: 1, x: 0 }}
|
| 18 |
+
transition={{ duration: 1, ease: "easeInOut" }}
|
| 19 |
+
>
|
| 20 |
+
|
| 21 |
+
<motion.div
|
| 22 |
+
className="text-2xl lg:text-5xl flex flex-col mt-8 lg:mt-0 gap-2 lg:gap-5 text-nowrap"
|
| 23 |
+
initial="hidden"
|
| 24 |
+
animate="visible"
|
| 25 |
+
variants={{
|
| 26 |
+
hidden: { opacity: 0, y: 20 },
|
| 27 |
+
visible: {
|
| 28 |
+
opacity: 1,
|
| 29 |
+
y: 0,
|
| 30 |
+
transition: { staggerChildren: 0.2, ease: "easeInOut" },
|
| 31 |
+
},
|
| 32 |
+
}}
|
| 33 |
+
>
|
| 34 |
+
<motion.h2 variants={{ hidden: { opacity: 0, y: 10 }, visible: { opacity: 1, y: 0 } }}>
|
| 35 |
+
Hello, <TypeAnimation
|
| 36 |
+
sequence={[
|
| 37 |
+
'I am Aditya Kumar',
|
| 38 |
+
1000,
|
| 39 |
+
// 'I am a App Developer',
|
| 40 |
+
// 1000,
|
| 41 |
+
// 'I am a UI/UX Designer',
|
| 42 |
+
// 1000,
|
| 43 |
+
]}
|
| 44 |
+
speed={10}
|
| 45 |
+
style={{ fontWeight:600 }}
|
| 46 |
+
repeat={Infinity}
|
| 47 |
+
/>
|
| 48 |
+
</motion.h2>
|
| 49 |
+
<motion.h2 variants={{ hidden: { opacity: 0, y: 10 }, visible: { opacity: 1, y: 0 } }}>
|
| 50 |
+
<span className="font-extrabold">Fullstack</span>{" "}
|
| 51 |
+
<span
|
| 52 |
+
className="text-white font-extrabold"
|
| 53 |
+
style={{ WebkitTextStroke: "1px black" }}
|
| 54 |
+
>
|
| 55 |
+
App Developer
|
| 56 |
+
</span>
|
| 57 |
+
</motion.h2>
|
| 58 |
+
<motion.h2 variants={{ hidden: { opacity: 0, y: 10 }, visible: { opacity: 1, y: 0 } }}>
|
| 59 |
+
Based In <span className="font-extrabold">India.</span>
|
| 60 |
+
</motion.h2>
|
| 61 |
+
</motion.div>
|
| 62 |
+
|
| 63 |
+
<motion.p
|
| 64 |
+
className="text-[#71717A] text-sm lg:text-base mt-5"
|
| 65 |
+
initial={{ opacity: 0, y: 10 }}
|
| 66 |
+
animate={{ opacity: 1, y: 0 }}
|
| 67 |
+
transition={{ delay: 0.5, duration: 1 }}
|
| 68 |
+
>
|
| 69 |
+
Passionate about technology, I specialize in App Development and Backend Systems. I'm focused on building innovative cross-platform solutions and continuously expanding my skills. My goal is to grow as a developer and contribute to impactful projects in the tech industry.
|
| 70 |
+
</motion.p>
|
| 71 |
+
|
| 72 |
+
<motion.div
|
| 73 |
+
className="flex items-center gap-x-5 mt-10 lg:mt-14"
|
| 74 |
+
initial={{ opacity: 0, y: 10 }}
|
| 75 |
+
animate={{ opacity: 1, y: 0 }}
|
| 76 |
+
transition={{ delay: 0.8, duration: 1 }}
|
| 77 |
+
>
|
| 78 |
+
<motion.a
|
| 79 |
+
href="mailto:aditya.kumar25025@gmail.com"
|
| 80 |
+
className="bg-white p-2 lg:p-3 rounded border-2 border-black"
|
| 81 |
+
whileHover={{ scale: 1.1, backgroundColor: "#000", color: "#fff" }}
|
| 82 |
+
whileTap={{ scale: 0.9 }}
|
| 83 |
+
>
|
| 84 |
+
<BiLogoGmail className="w-4 h-4 lg:w-5 lg:h-5" />
|
| 85 |
+
</motion.a>
|
| 86 |
+
<motion.a
|
| 87 |
+
href="https://www.linkedin.com/in/25-aditya-kumar"
|
| 88 |
+
target="_blank"
|
| 89 |
+
rel="noopener noreferrer"
|
| 90 |
+
className="bg-white p-2 lg:p-3 rounded border-2 border-black"
|
| 91 |
+
whileHover={{ scale: 1.1, backgroundColor: "#000", color: "#fff" }}
|
| 92 |
+
whileTap={{ scale: 0.9 }}
|
| 93 |
+
>
|
| 94 |
+
<IoLogoLinkedin className="w-4 h-4 lg:w-5 lg:h-5" />
|
| 95 |
+
</motion.a>
|
| 96 |
+
<motion.a
|
| 97 |
+
href="https://leetcode.com/Adi025/"
|
| 98 |
+
target="_blank"
|
| 99 |
+
rel="noopener noreferrer"
|
| 100 |
+
className="bg-white p-2 lg:p-3 rounded border-2 border-black"
|
| 101 |
+
whileHover={{ scale: 1.1, backgroundColor: "#000", color: "#fff" }}
|
| 102 |
+
whileTap={{ scale: 0.9 }}
|
| 103 |
+
>
|
| 104 |
+
<img src={leetcodeLogo} alt="LeetCode" className="w-4 h-4 lg:w-5 lg:h-5" />
|
| 105 |
+
</motion.a>
|
| 106 |
+
<motion.a
|
| 107 |
+
href="https://github.com/Aditya002500"
|
| 108 |
+
target="_blank"
|
| 109 |
+
rel="noopener noreferrer"
|
| 110 |
+
className="bg-white p-2 lg:p-3 rounded border-2 border-black"
|
| 111 |
+
whileHover={{ scale: 1.1, backgroundColor: "#000", color: "#fff" }}
|
| 112 |
+
whileTap={{ scale: 0.9 }}
|
| 113 |
+
>
|
| 114 |
+
<BsGithub className="w-4 h-4 lg:w-5 lg:h-5" />
|
| 115 |
+
</motion.a>
|
| 116 |
+
</motion.div>
|
| 117 |
+
</motion.div>
|
| 118 |
+
|
| 119 |
+
<motion.div
|
| 120 |
+
className="lg:w-[55%] w-full"
|
| 121 |
+
initial={{ opacity: 0, x: 50 }}
|
| 122 |
+
animate={{ opacity: 1, x: 0 }}
|
| 123 |
+
transition={{ duration: 1, ease: "easeInOut" }}
|
| 124 |
+
>
|
| 125 |
+
<img className="h-full w-full" src="/assets/hero-vector.svg" alt="Hero Vector" />
|
| 126 |
+
</motion.div>
|
| 127 |
+
</div>
|
| 128 |
+
</div>
|
| 129 |
+
);
|
| 130 |
+
}
|