Skip to content

Commit 23eb828

Browse files
authored
Update HeroSection.jsx
1 parent 88e7982 commit 23eb828

File tree

1 file changed

+40
-34
lines changed

1 file changed

+40
-34
lines changed

src/app/components/HeroSection.jsx

+40-34
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const HeroSection = () => {
99
return (
1010
<section className="lg:py-16">
1111
<div className="grid grid-cols-1 sm:grid-cols-12">
12+
{/* Left Column */}
1213
<motion.div
1314
initial={{ opacity: 0, scale: 0.5 }}
1415
animate={{ opacity: 1, scale: 1 }}
@@ -19,7 +20,7 @@ const HeroSection = () => {
1920
<span className="text-transparent bg-clip-text bg-gradient-to-r from-primary-400 to-secondary-600">
2021
Hello, I&apos;m{" "}
2122
</span>
22-
<br></br>
23+
<br />
2324
<TypeAnimation
2425
sequence={[
2526
"Vaibhav Tripathi",
@@ -37,32 +38,35 @@ const HeroSection = () => {
3738
/>
3839
</h1>
3940
<p className="text-[#ADB7BE] text-base sm:text-lg mb-6 lg:text-xl">
40-
Am a full-stack web developer and aspiring QA tester,CyberSec Enthusiast from India. I love building interactive, responsive, and user-friendly web applications that solve real-world problems.
41+
Am a full-stack web developer and aspiring QA tester, CyberSec Enthusiast from India.
42+
I love building interactive, responsive, and user-friendly web applications that solve real-world problems.
4143
</p>
42-
<div>
44+
<div className="flex flex-col sm:flex-row items-center sm:space-x-4">
4345
<Link
4446
href="/#contact"
45-
className="px-6 inline-block py-3 w-full sm:w-fit rounded-full mr-4 bg-gradient-to-br from-primary-500 to-secondary-500 hover:bg-slate-200 text-white"
47+
className="px-6 inline-block py-3 w-full sm:w-fit rounded-full bg-gradient-to-br from-primary-500 to-secondary-500 hover:bg-slate-200 text-white"
4648
>
47-
Connect wm!
49+
Connect wm!
4850
</Link>
4951
<Link
5052
href="/"
51-
className="px-1 inline-block py-1 w-full sm:w-fit rounded-full bg-gradient-to-br from-primary-500 to-secondary-500 hover:bg-slate-800 text-white mt-3"
53+
className="px-1 inline-block py-1 w-full sm:w-fit rounded-full bg-gradient-to-br from-primary-500 to-secondary-500 hover:bg-slate-800 text-white mt-3 sm:mt-0"
5254
>
5355
<span className="block bg-[#121212] hover:bg-slate-800 rounded-full px-5 py-2">
54-
Resume
56+
Resume
5557
</span>
5658
</Link>
5759
</div>
5860
</motion.div>
61+
62+
{/* Right Column */}
5963
<motion.div
6064
initial={{ opacity: 0, scale: 0.5 }}
6165
animate={{ opacity: 1, scale: 1 }}
6266
transition={{ duration: 0.5 }}
6367
className="col-span-4 place-self-center mt-4 lg:mt-0"
6468
>
65-
<div className="rounded-full bg-[#181818] w-[250px] h-[250px] lg:w-[400px] lg:h-[400px] relative">
69+
<div className="rounded-full bg-[#181818] w-[250px] h-[250px] lg:w-[400px] lg:h-[400px] relative mx-auto">
6670
<Image
6771
src="/images/hero-image.png"
6872
alt="hero image"
@@ -71,32 +75,34 @@ const HeroSection = () => {
7175
height={300}
7276
/>
7377
</div>
74-
<div className="flex items-center space-x-4">
75-
<Link
76-
href="#contact"
77-
className="px-6 inline-block py-3 w-full sm:w-fit rounded-full mr-4 bg-gradient-to-br from-primary-500 to-secondary-500 hover:bg-slate-200 text-white"
78-
>
79-
Connect wm!
80-
</Link>
81-
<Link
82-
href="/"
83-
className="px-1 inline-block py-1 w-full sm:w-fit rounded-full bg-gradient-to-br from-primary-500 to-secondary-500 hover:bg-slate-800 text-white mt-3"
84-
>
85-
<span className="block bg-[#121212] hover:bg-slate-800 rounded-full px-5 py-2">
86-
Resume
87-
</span>
88-
</Link>
89-
{/* Add the iframe here */}
90-
<iframe
91-
src="https://tryhackme.com/api/v2/badges/public-profile?userPublicId=3640863"
92-
style={{
93-
border: "none",
94-
width: "150px",
95-
height: "150px", // Adjust the size to fit your design
96-
}}
97-
title="TryHackMe Badge"
98-
></iframe>
99-
</div>
78+
{/* Container for buttons and TryHackMe badge */}
79+
<div className="flex flex-col sm:flex-row items-center justify-center space-x-0 sm:space-x-4 space-y-4 sm:space-y-0 mt-4">
80+
<Link
81+
href="/#contact"
82+
className="px-6 inline-block py-3 w-full sm:w-fit rounded-full bg-gradient-to-br from-primary-500 to-secondary-500 hover:bg-slate-200 text-white"
83+
>
84+
Connect wm!
85+
</Link>
86+
<Link
87+
href="/"
88+
className="px-1 inline-block py-1 w-full sm:w-fit rounded-full bg-gradient-to-br from-primary-500 to-secondary-500 hover:bg-slate-800 text-white"
89+
>
90+
<span className="block bg-[#121212] hover:bg-slate-800 rounded-full px-5 py-2">
91+
Resume
92+
</span>
93+
</Link>
94+
<iframe
95+
src="https://tryhackme.com/api/v2/badges/public-profile?userPublicId=3640863"
96+
style={{
97+
border: "none",
98+
width: "150px",
99+
height: "150px",
100+
overflow: "hidden", // Prevents scrollbars if possible
101+
}}
102+
scrolling="no"
103+
title="TryHackMe Badge"
104+
></iframe>
105+
</div>
100106
</motion.div>
101107
</div>
102108
</section>

0 commit comments

Comments
 (0)