@@ -9,6 +9,7 @@ const HeroSection = () => {
9
9
return (
10
10
< section className = "lg:py-16" >
11
11
< div className = "grid grid-cols-1 sm:grid-cols-12" >
12
+ { /* Left Column */ }
12
13
< motion . div
13
14
initial = { { opacity : 0 , scale : 0.5 } }
14
15
animate = { { opacity : 1 , scale : 1 } }
@@ -19,7 +20,7 @@ const HeroSection = () => {
19
20
< span className = "text-transparent bg-clip-text bg-gradient-to-r from-primary-400 to-secondary-600" >
20
21
Hello, I'm{ " " }
21
22
</ span >
22
- < br > </ br >
23
+ < br / >
23
24
< TypeAnimation
24
25
sequence = { [
25
26
"Vaibhav Tripathi" ,
@@ -37,32 +38,35 @@ const HeroSection = () => {
37
38
/>
38
39
</ h1 >
39
40
< 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.
41
43
</ p >
42
- < div >
44
+ < div className = "flex flex-col sm:flex-row items-center sm:space-x-4" >
43
45
< Link
44
46
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"
46
48
>
47
- Connect wm!
49
+ Connect wm!
48
50
</ Link >
49
51
< Link
50
52
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 "
52
54
>
53
55
< span className = "block bg-[#121212] hover:bg-slate-800 rounded-full px-5 py-2" >
54
- Resume
56
+ Resume
55
57
</ span >
56
58
</ Link >
57
59
</ div >
58
60
</ motion . div >
61
+
62
+ { /* Right Column */ }
59
63
< motion . div
60
64
initial = { { opacity : 0 , scale : 0.5 } }
61
65
animate = { { opacity : 1 , scale : 1 } }
62
66
transition = { { duration : 0.5 } }
63
67
className = "col-span-4 place-self-center mt-4 lg:mt-0"
64
68
>
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 " >
66
70
< Image
67
71
src = "/images/hero-image.png"
68
72
alt = "hero image"
@@ -71,32 +75,34 @@ const HeroSection = () => {
71
75
height = { 300 }
72
76
/>
73
77
</ 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 >
100
106
</ motion . div >
101
107
</ div >
102
108
</ section >
0 commit comments