1
2
3
4
5
6
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
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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
|
import { motion } from "framer-motion";
import { Prism as SyntaxHighlighter } from "react-syntax-highlighter";
import { vscDarkPlus } from "react-syntax-highlighter/dist/esm/styles/prism";
const fadeInUp = {
initial: { opacity: 0, y: 20 },
animate: { opacity: 1, y: 0 },
transition: { duration: 0.6 },
};
const staggerContainer = {
animate: {
transition: {
staggerChildren: 0.1,
},
},
};
export const Hero = () => {
return (
<motion.section
id="home"
className="hero"
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
transition={{ duration: 0.8, delay: 0.2 }}
>
<div className="hero-container">
<motion.div
className="hero-content"
variants={staggerContainer}
initial="initial"
animate="animate"
>
<motion.div className="hero-badge">
<span> 👋 Hello, I'm </span>
</motion.div>
<motion.h1
className="glitch"
variants={fadeInUp}
whileHover={{ scale: 1.02 }}
>
PedroTech
</motion.h1>
<motion.h2 className="hero-subtitle" variants={fadeInUp}>
{" "}
Creative Developer & Designer
</motion.h2>
<motion.p className="hero-description" variants={fadeInUp}>
I craft beautiful digital experiences that combine stunning design
with powerful functionality. Specializing in modern web applications
and interactive user interfaces.
</motion.p>
<motion.div className="cta-buttons" variants={staggerContainer}>
<motion.a
href="#projects"
className="cta-primary"
whileHover={{ scale: 1.05 }}
whileTap={{ scale: 0.95 }}
>
{" "}
View My Work
</motion.a>
<motion.a
href="#contacts"
className="cta-secondary"
whileHover={{ scale: 1.05 }}
whileTap={{ scale: 0.95 }}
>
Contact Me
</motion.a>
</motion.div>
<motion.div className="social-links" variants={staggerContainer}>
<motion.a href="https://github.com" target="_blank">
<i className="fab fa-github"> </i>
</motion.a>
<motion.a href="https://linkedin.com" target="_blank">
<i className="fab fa-linkedin"> </i>
</motion.a>
<motion.a href="https://twitter.com" target="_blank">
<i className="fab fa-twitter"> </i>
</motion.a>
</motion.div>
</motion.div>
<motion.div
className="hero-image-container"
initial={{ opacity: 0, x: 50 }}
animate={{ opacity: 1, x: 0 }}
transition={{ duration: 0.8, delay: 0.4 }}
>
<div className="code-display">
<SyntaxHighlighter
language="typescript"
customStyle={{
margin: 0,
padding: "2rem",
height: "100%",
borderRadius: "20px",
background: "rgba(30, 41, 59, 0.8)",
backdropFilter: "blur(10px)",
marginBottom: 50,
}}
style={vscDarkPlus}
>
{`const aboutMe: DeveloperProfile = {
codename: "PedroTech",
origin: "🌍 Somewhere between a coffee shop and a terminal",
role: "Fullstack Web Sorcerer",
stack: {
languages: ["JavaScript", "TypeScript", "SQL"],
frameworks: ["React", "Next.js", "TailwindCSS", "Supabase"],
},
traits: [
"pixel-perfectionist",
"API whisperer",
"dark mode advocate",
"terminal aesthetic enthusiast",
],
missionStatement:
"Turning ideas into interfaces and bugs into feature",
availability: "Available for hire",
};`}
</SyntaxHighlighter>
</div>
<motion.div
className="floating-card"
animate={{ y: [0, -10, 0], rotate: [0, 2, 0] }}
transition={{ duration: 4, repeat: Infinity, ease: "easeInOut" }}
>
<div className="card-content">
<span className="card-icon"> 💻 </span>
<span className="card-text">
{" "}
Currently working on something awesome!
</span>
</div>
</motion.div>
</motion.div>
</div>
</motion.section>
);
};
|