-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathipgrabber.html
342 lines (300 loc) · 10.3 KB
/
ipgrabber.html
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Portfolio</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body, html {
height: 100%;
font-family: Arial, sans-serif;
overflow-x: hidden;
background-color: #000000; /* Black background */
color: #FFFFFF; /* White text */
cursor: none; /* Hide default cursor */
}
/* Background */
.background {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(45deg, #3B82F6, #1E293B); /* Gradient for subtle effect */
transform-origin: center;
will-change: transform;
transition: transform 0.1s ease-out;
z-index: -1;
}
/* Custom Cursor */
.cursor {
position: fixed;
top: 0;
left: 0;
width: 30px;
height: 30px;
border-radius: 50%;
background-color: #FFFFFF; /* White cursor */
pointer-events: none;
transform: translate(-50%, -50%);
transition: transform 0.2s ease-in-out;
z-index: 99999;
}
/* Content */
.content {
position: relative;
text-align: center;
z-index: 10;
padding-top: 100px;
}
h1 {
font-size: 4rem;
text-transform: uppercase;
letter-spacing: 3px;
animation: fadeInOut 5s infinite;
}
@keyframes fadeInOut {
0%, 100% {
opacity: 0;
}
50% {
opacity: 1;
}
}
/* Typing Effect */
.typing-effect {
display: inline-block;
font-size: 1.8rem;
letter-spacing: 2px;
overflow: hidden;
white-space: nowrap;
border-right: 3px solid #FFFFFF; /* White border for typing effect */
width: 0;
animation: typing 3s steps(30) 1s forwards, blink 0.75s step-end infinite;
}
@keyframes typing {
from { width: 0; }
to { width: 100%; }
}
@keyframes blink {
50% { border-color: transparent; }
}
/* Portfolio Section */
.portfolio-container {
perspective: 1000px; /* Strong perspective for depth */
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 20px;
margin-top: 50px;
}
.portfolio-item {
width: 300px;
height: 300px;
background-color: #1E293B; /* Dark blue-gray for portfolio items */
border-radius: 10px;
overflow: hidden;
position: relative;
cursor: pointer;
transition: transform 0.3s ease;
transform-style: preserve-3d;
display: inline-block;
will-change: transform;
transform-origin: center;
}
.portfolio-item img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.3s ease;
}
/* Button Styles */
.btn {
display: inline-block;
padding: 15px 40px;
font-size: 16px;
text-transform: uppercase;
font-weight: bold;
color: white;
background-color: #3B82F6; /* Blue buttons */
border: 2px solid transparent;
border-radius: 30px;
margin-top: 20px;
cursor: pointer;
position: relative;
overflow: hidden;
transition: all 0.3s ease-in-out;
will-change: transform;
}
.btn::before {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 300%;
height: 300%;
background-color: #ffffff;
transition: all 0.4s ease;
border-radius: 50%;
transform: translate(-50%, -50%) scale(0);
}
.btn:hover {
background-color: #1E293B; /* Dark blue background on hover */
box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}
.btn:hover::before {
transform: translate(-50%, -50%) scale(1);
}
/* About Me Section */
#about {
background: linear-gradient(to top right, #3A80F5, #1E3B8D); /* Gradient from light blue to dark blue */
border-radius: 10px;
padding: 50px;
text-align: center;
margin-top: 50px;
transition: background 0.1s ease; /* Smooth transition for gradient rotation */
}
#about h2 {
font-size: 3rem;
margin-bottom: 20px;
}
#about p {
font-size: 1.5rem;
line-height: 1.8;
max-width: 800px;
margin: 0 auto;
}
/* Contact Section */
#contact {
background-color: #000000; /* Black background for contact section */
padding: 50px;
text-align: center;
}
#contact h2 {
font-size: 3rem;
margin-bottom: 20px;
}
#contact form {
display: flex;
flex-direction: column;
align-items: center;
}
#contact input, #contact textarea {
width: 300px;
padding: 10px;
margin: 10px;
background-color: #1E293B; /* Dark gray-blue input fields */
border: none;
border-radius: 5px;
color: #fff;
}
#contact button {
background-color: #3B82F6; /* Blue button */
border: none;
padding: 15px 40px;
color: #fff;
border-radius: 30px;
cursor: pointer;
transition: background-color 0.3s ease;
}
#contact button:hover {
background-color: #2563EB; /* Lighter blue on hover */
}
/* Custom Border and Background Styling */
.border-t {
border-top: 2px solid #1f2937;
}
.bg-black {
background-color: #000; /* Black background */
}
.border-gray-800 {
border-color: #2d3748;
}
</style>
</head>
<body>
<!-- Background -->
<div class="background"></div>
<!-- Content -->
<div class="content">
<h1>Welcome to My Portfolio</h1>
<div class="typing-effect">I do UI/UX/designs/logos</div>
<div>
<button class="btn" onclick="scrollToAbout()">About Me</button>
</div>
<!-- Portfolio Section -->
<div class="portfolio-container">
<div class="portfolio-item">
<img src="https://via.placeholder.com/300" alt="Project 1">
<div class="overlay">Project 1</div>
</div>
<div class="portfolio-item">
<img src="https://via.placeholder.com/300" alt="Project 2">
<div class="overlay">Project 2</div>
</div>
<div class="portfolio-item">
<img src="https://via.placeholder.com/300" alt="Project 3">
<div class="overlay">Project 3</div>
</div>
</div>
</div>
<!-- About Me Section -->
<section id="about" class="border-t bg-black border-gray-800">
<h2>About Me</h2>
<p>"const user = {
username: "Alex",
aboutMe: "A passionate learner of code, exploring new technologies every day!",
favoriteTech: ["Figma", "Photoshop", "Roblox Studio"],"}
</p>
</section>
<!-- Contact Section -->
<section id="contact" class="border-t bg-black border-gray-800">
<h2>Contact Me</h2>
<form>
<input type="text" placeholder="Your Name" required>
<input type="email" placeholder="Your Email" required>
<textarea placeholder="Your Message" rows="5" required></textarea>
<button type="submit">Send Message</button>
</form>
</section>
<!-- Custom Cursor -->
<div class="cursor"></div>
<!-- Script to handle mouse interaction and animations -->
<script>
// Handle mouse movement for background animation
const background = document.querySelector('.background');
document.addEventListener('mousemove', (e) => {
let x = (e.clientX / window.innerWidth) * 100;
let y = (e.clientY / window.innerHeight) * 100;
background.style.transform = `translate(-${x}%, -${y}%)`;
// Update cursor position
const cursor = document.querySelector('.cursor');
cursor.style.left = `${e.clientX}px`;
cursor.style.top = `${e.clientY}px`;
});
// Handle perspective effect for images
const portfolioItems = document.querySelectorAll('.portfolio-item');
document.addEventListener('mousemove', (e) => {
const mouseX = e.clientX;
const mouseY = e.clientY;
portfolioItems.forEach((item) => {
const rect = item.getBoundingClientRect();
const centerX = rect.left + rect.width / 2;
const centerY = rect.top + rect.height / 2;
const deltaX = (mouseX - centerX) / 30; // Adjust for stronger movement
const deltaY = (mouseY - centerY) / 30;
item.style.transform = `rotateY(${deltaX}deg) rotateX(${deltaY}deg)`;
});
});
// Scroll to About Section
function scrollToAbout() {
document.getElementById('about').scrollIntoView({ behavior: 'smooth' });
}
</script>
</body>
</html>