generated from github/codespaces-react
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathutilizing HTML
More file actions
591 lines (515 loc) · 16.8 KB
/
utilizing HTML
File metadata and controls
591 lines (515 loc) · 16.8 KB
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
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
# Modern Portfolio Website
I'll create a modern, responsive portfolio website with smooth animations and interactive elements.
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Alex Morgan | Web Developer</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
:root {
--primary: #4a6cf7;
--secondary: #6f42c1;
--dark: #1d2144;
--light: #f8f9fa;
--gray: #eee;
--text: #333;
}
html {
scroll-behavior: smooth;
}
body {
background-color: var(--light);
color: var(--text);
line-height: 1.6;
overflow-x: hidden;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
/* Header & Navigation */
header {
background-color: white;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
position: fixed;
width: 100%;
z-index: 1000;
}
nav {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 0;
}
.logo {
font-size: 28px;
font-weight: 700;
color: var(--primary);
text-decoration: none;
}
.logo span {
color: var(--secondary);
}
.nav-links {
display: flex;
list-style: none;
}
.nav-links li {
margin-left: 30px;
}
.nav-links a {
text-decoration: none;
color: var(--dark);
font-weight: 500;
transition: color 0.3s;
}
.nav-links a:hover {
color: var(--primary);
}
.menu-btn {
display: none;
font-size: 24px;
cursor: pointer;
}
/* Hero Section */
.hero {
padding: 150px 0 100px;
background: linear-gradient(135deg, #f5f7ff 0%, #e6e9ff 100%);
}
.hero-content {
display: flex;
align-items: center;
justify-content: space-between;
}
.hero-text {
flex: 1;
padding-right: 50px;
}
.hero-text h1 {
font-size: 3.5rem;
margin-bottom: 20px;
color: var(--dark);
}
.hero-text h1 span {
color: var(--primary);
}
.hero-text p {
font-size: 1.2rem;
margin-bottom: 30px;
color: #666;
}
.btn {
display: inline-block;
padding: 14px 30px;
background: var(--primary);
color: white;
border-radius: 5px;
text-decoration: none;
font-weight: 600;
transition: all 0.3s;
border: none;
cursor: pointer;
}
.btn:hover {
background: var(--secondary);
transform: translateY(-3px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.hero-image {
flex: 1;
text-align: center;
}
.hero-image img {
max-width: 100%;
border-radius: 50%;
border: 5px solid white;
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
animation: float 3s ease-in-out infinite;
}
@keyframes float {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-15px); }
}
/* Section Styles */
section {
padding: 100px 0;
}
.section-title {
text-align: center;
margin-bottom: 60px;
}
.section-title h2 {
font-size: 2.5rem;
color: var(--dark);
margin-bottom: 20px;
position: relative;
display: inline-block;
}
.section-title h2::after {
content: '';
position: absolute;
bottom: -10px;
left: 50%;
transform: translateX(-50%);
width: 70px;
height: 4px;
background: var(--primary);
border-radius: 2px;
}
/* Services */
.services {
background-color: white;
}
.services-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 30px;
}
.service-card {
background: white;
padding: 30px;
border-radius: 10px;
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
transition: transform 0.3s, box-shadow 0.3s;
text-align: center;
}
.service-card:hover {
transform: translateY(-10px);
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
.service-card i {
font-size: 40px;
color: var(--primary);
margin-bottom: 20px;
}
.service-card h3 {
font-size: 1.5rem;
margin-bottom: 15px;
color: var(--dark);
}
/* Portfolio */
.portfolio-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 30px;
}
.portfolio-item {
position: relative;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
height: 250px;
}
.portfolio-item img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.5s;
}
.portfolio-item:hover img {
transform: scale(1.1);
}
.portfolio-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(74, 108, 247, 0.8);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
opacity: 0;
transition: opacity 0.3s;
padding: 20px;
text-align: center;
}
.portfolio-item:hover .portfolio-overlay {
opacity: 1;
}
.portfolio-overlay h3 {
color: white;
font-size: 1.5rem;
margin-bottom: 10px;
}
.portfolio-overlay p {
color: rgba(255, 255, 255, 0.9);
}
/* Contact */
.contact {
background: linear-gradient(135deg, #f5f7ff 0%, #e6e9ff 100%);
}
.contact-form {
max-width: 600px;
margin: 0 auto;
background: white;
padding: 40px;
border-radius: 10px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.form-group {
margin-bottom: 20px;
}
.form-group label {
display: block;
margin-bottom: 8px;
font-weight: 500;
}
.form-group input,
.form-group textarea {
width: 100%;
padding: 15px;
border: 1px solid #ddd;
border-radius: 5px;
font-size: 16px;
}
.form-group textarea {
min-height: 150px;
resize: vertical;
}
/* Footer */
footer {
background: var(--dark);
color: white;
padding: 60px 0 30px;
text-align: center;
}
.social-links {
display: flex;
justify-content: center;
margin-bottom: 30px;
gap: 20px;
}
.social-links a {
display: flex;
align-items: center;
justify-content: center;
width: 50px;
height: 50px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.1);
color: white;
font-size: 20px;
transition: all 0.3s;
}
.social-links a:hover {
background: var(--primary);
transform: translateY(-5px);
}
.copyright {
margin-top: 30px;
opacity: 0.7;
}
/* Responsive Design */
@media (max-width: 992px) {
.hero-content {
flex-direction: column;
text-align: center;
}
.hero-text {
padding-right: 0;
margin-bottom: 50px;
}
.hero-text h1 {
font-size: 2.8rem;
}
}
@media (max-width: 768px) {
.menu-btn {
display: block;
}
.nav-links {
position: fixed;
top: 80px;
left: -100%;
width: 100%;
height: calc(100vh - 80px);
background: white;
flex-direction: column;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
}
.nav-links.active {
left: 0;
}
.nav-links li {
margin: 20px 0;
}
.hero-text h1 {
font-size: 2.2rem;
}
}
</style>
</head>
<body>
<!-- Header & Navigation -->
<header>
<div class="container">
<nav>
<a href="#" class="logo">Alex<span>Morgan</span></a>
<ul class="nav-links">
<li><a href="#home">Home</a></li>
<li><a href="#services">Services</a></li>
<li><a href="#portfolio">Portfolio</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
<div class="menu-btn">
<i class="fas fa-bars"></i>
</div>
</nav>
</div>
</header>
<!-- Hero Section -->
<section class="hero" id="home">
<div class="container">
<div class="hero-content">
<div class="hero-text">
<h1>Hi, I'm Alex <span>Morgan</span></h1>
<p>I'm a passionate web developer specializing in creating beautiful, functional, and user-friendly websites. With over 5 years of experience, I help businesses bring their ideas to life.</p>
<a href="#contact" class="btn">Get In Touch</a>
</div>
<div class="hero-image">
<img src="https://i.pravatar.cc/300" alt="Alex Morgan">
</div>
</div>
</div>
</section>
<!-- Services Section -->
<section class="services" id="services">
<div class="container">
<div class="section-title">
<h2>My Services</h2>
</div>
<div class="services-grid">
<div class="service-card">
<i class="fas fa-code"></i>
<h3>Web Development</h3>
<p>Custom website development with clean, maintainable code using the latest technologies.</p>
</div>
<div class="service-card">
<i class="fas fa-paint-brush"></i>
<h3>UI/UX Design</h3>
<p>User-centered design approach that focuses on creating intuitive and engaging experiences.</p>
</div>
<div class="service-card">
<i class="fas fa-mobile-alt"></i>
<h3>Responsive Design</h3>
<p>Websites that look great and function perfectly on all devices and screen sizes.</p>
</div>
</div>
</div>
</section>
<!-- Portfolio Section -->
<section class="portfolio" id="portfolio">
<div class="container">
<div class="section-title">
<h2>My Work</h2>
</div>
<div class="portfolio-grid">
<div class="portfolio-item">
<img src="https://images.unsplash.com/photo-1551650975-87deedd944c3?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60" alt="E-commerce Website">
<div class="portfolio-overlay">
<h3>E-commerce Store</h3>
<p>Modern e-commerce platform with secure payment processing</p>
</div>
</div>
<div class="portfolio-item">
<img src="https://images.unsplash.com/photo-1552664730-d307ca884978?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60" alt="Travel Blog">
<div class="portfolio-overlay">
<h3>Travel Blog</h3>
<p>Interactive travel blog with location-based content</p>
</div>
</div>
<div class="portfolio-item">
<img src="https://images.unsplash.com/photo-1561070791-2526d30994b5?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=60" alt="Fitness App">
<div class="portfolio-overlay">
<h3>Fitness App</h3>
<p>Mobile application for tracking workouts and nutrition</p>
</div>
</div>
</div>
</div>
</section>
<!-- Contact Section -->
<section class="contact" id="contact">
<div class="container">
<div class="section-title">
<h2>Get In Touch</h2>
</div>
<div class="contact-form">
<form>
<div class="form-group">
<label for="name">Your Name</label>
<input type="text" id="name" placeholder="Enter your name" required>
</div>
<div class="form-group">
<label for="email">Your Email</label>
<input type="email" id="email" placeholder="Enter your email" required>
</div>
<div class="form-group">
<label for="message">Your Message</label>
<textarea id="message" placeholder="How can I help you?" required></textarea>
</div>
<button type="submit" class="btn">Send Message</button>
</form>
</div>
</div>
</section>
<!-- Footer -->
<footer>
<div class="container">
<div class="social-links">
<a href="#"><i class="fab fa-twitter"></i></a>
<a href="#"><i class="fab fa-instagram"></i></a>
<a href="#"><i class="fab fa-linkedin-in"></i></a>
<a href="#"><i class="fab fa-github"></i></a>
</div>
<p class="copyright">© 2023 Alex Morgan. All rights reserved.</p>
</div>
</footer>
<script>
// Mobile Menu Toggle
const menuBtn = document.querySelector('.menu-btn');
const navLinks = document.querySelector('.nav-links');
menuBtn.addEventListener('click', () => {
navLinks.classList.toggle('active');
});
// Close mobile menu when clicking on a link
document.querySelectorAll('.nav-links a').forEach(link => {
link.addEventListener('click', () => {
navLinks.classList.remove('active');
});
});
// Form submission
const contactForm = document.querySelector('.contact-form form');
contactForm.addEventListener('submit', (e) => {
e.preventDefault();
alert('Thanks for your message! I\'ll get back to you soon.');
contactForm.reset();
});
</script>
</body>
</html>
```
This HTML file creates a complete, responsive portfolio website with:
1. A modern navigation bar with mobile responsiveness
2. A hero section with a floating profile image animation
3. Services section with hover effects
4. Portfolio gallery with overlay effects
5. Contact form with validation
6. Footer with social media links
7. Smooth scrolling and interactive elements
The design is clean, modern, and uses a pleasing color scheme with blue and purple accents. All CSS is included within the HTML file, and JavaScript is used for the mobile menu toggle and form submission.
You can copy this code into an HTML file and run it directly in any modern browser.