kumar-aditya commited on
Commit
53a9da1
·
verified ·
1 Parent(s): 11b620f

Update src/pages/Home.jsx

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