Spaces:
Running
Running
File size: 23,994 Bytes
a2e364c |
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 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hi | Creative Developer</title>
<!-- Import Google Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Space+Grotesk:wght@300;500;700&display=swap" rel="stylesheet">
<!-- Import RemixIcon for Icons -->
<link href="https://cdn.jsdelivr.net/npm/remixicon@3.5.0/fonts/remixicon.css" rel="stylesheet">
<style>
/* --- CSS VARIABLES & THEME --- */
:root {
--primary: #6366f1;
--secondary: #ec4899;
--accent: #8b5cf6;
--bg-color: #0f172a;
--card-bg: rgba(30, 41, 59, 0.7);
--text-main: #f8fafc;
--text-muted: #94a3b8;
--border-color: rgba(255, 255, 255, 0.1);
--glass: blur(12px);
--gradient-main: linear-gradient(135deg, var(--primary), var(--secondary));
--shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
--transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-theme="light"] {
--bg-color: #f1f5f9;
--card-bg: rgba(255, 255, 255, 0.8);
--text-main: #1e293b;
--text-muted: #64748b;
--border-color: rgba(0, 0, 0, 0.05);
--shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}
/* --- GLOBAL RESET --- */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
body {
font-family: 'Outfit', sans-serif;
background-color: var(--bg-color);
color: var(--text-main);
line-height: 1.6;
overflow-x: hidden;
transition: background-color 0.5s ease, color 0.5s ease;
}
a {
text-decoration: none;
color: inherit;
}
ul {
list-style: none;
}
/* --- UTILITIES --- */
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 2rem;
}
.gradient-text {
background: var(--gradient-main);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.btn {
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.8rem 1.8rem;
border-radius: 50px;
font-weight: 600;
cursor: pointer;
transition: var(--transition);
border: none;
font-size: 1rem;
}
.btn-primary {
background: var(--gradient-main);
color: white;
box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
}
.btn-outline {
background: transparent;
border: 2px solid var(--primary);
color: var(--primary);
}
.btn-outline:hover {
background: var(--primary);
color: white;
}
/* --- HEADER --- */
header {
position: fixed;
top: 0;
width: 100%;
z-index: 1000;
background: rgba(15, 23, 42, 0.8);
backdrop-filter: var(--glass);
border-bottom: 1px solid var(--border-color);
padding: 1rem 0;
transition: background 0.3s;
}
[data-theme="light"] header {
background: rgba(241, 245, 249, 0.8);
}
.nav-wrapper {
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
font-family: 'Space Grotesk', sans-serif;
font-size: 1.5rem;
font-weight: 700;
letter-spacing: -1px;
}
.nav-links {
display: flex;
gap: 2rem;
align-items: center;
}
.nav-links a {
font-weight: 500;
color: var(--text-muted);
transition: var(--transition);
position: relative;
}
.nav-links a:hover, .nav-links a.active {
color: var(--primary);
}
.nav-links a::after {
content: '';
position: absolute;
width: 0;
height: 2px;
bottom: -4px;
left: 0;
background: var(--gradient-main);
transition: width 0.3s ease;
}
.nav-links a:hover::after {
width: 100%;
}
.theme-toggle {
cursor: pointer;
font-size: 1.2rem;
padding: 0.5rem;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
transition: var(--transition);
}
.theme-toggle:hover {
background: rgba(255, 255, 255, 0.1);
color: var(--primary);
}
/* Mobile Menu */
.hamburger {
display: none;
cursor: pointer;
font-size: 1.5rem;
}
/* --- HERO SECTION --- */
.hero {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
position: relative;
padding-top: 80px;
overflow: hidden;
}
/* Background Blobs */
.blob {
position: absolute;
border-radius: 50%;
filter: blur(80px);
opacity: 0.4;
z-index: -1;
animation: float 10s infinite alternate;
}
.blob-1 {
width: 400px;
height: 400px;
background: var(--primary);
top: -100px;
left: -100px;
}
.blob-2 {
width: 300px;
height: 300px;
background: var(--secondary);
bottom: 10%;
right: -50px;
animation-delay: -5s;
}
.hero-content {
text-align: center;
max-width: 800px;
z-index: 1;
}
.hero h1 {
font-family: 'Space Grotesk', sans-serif;
font-size: clamp(4rem, 10vw, 8rem);
font-weight: 800;
line-height: 1;
margin-bottom: 1rem;
letter-spacing: -2px;
}
.hero-subtitle {
font-size: clamp(1.2rem, 3vw, 1.5rem);
color: var(--text-muted);
margin-bottom: 2.5rem;
min-height: 1.6em; /* Prevent layout shift on typing */
}
.cursor {
display: inline-block;
width: 3px;
background-color: var(--primary);
animation: blink 1s infinite;
}
.hero-btns {
display: flex;
gap: 1rem;
justify-content: center;
}
/* --- SECTIONS COMMON --- */
section {
padding: 6rem 0;
}
.section-header {
text-align: center;
margin-bottom: 4rem;
}
.section-header h2 {
font-size: 2.5rem;
margin-bottom: 1rem;
}
.section-header p {
color: var(--text-muted);
max-width: 600px;
margin: 0 auto;
}
/* --- CARDS GRID --- */
.grid-3 {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
}
.card {
background: var(--card-bg);
border: 1px solid var(--border-color);
padding: 2rem;
border-radius: 20px;
transition: var(--transition);
backdrop-filter: blur(5px);
position: relative;
overflow: hidden;
}
.card:hover {
transform: translateY(-10px);
border-color: var(--primary);
box-shadow: var(--shadow);
}
.card-icon {
font-size: 2.5rem;
color: var(--primary);
margin-bottom: 1.5rem;
background: rgba(99, 102, 241, 0.1);
width: 70px;
height: 70px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 15px;
}
.card h3 {
margin-bottom: 1rem;
font-size: 1.5rem;
}
.card p {
color: var(--text-muted);
}
/* --- CONTACT SECTION --- */
.contact-wrapper {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 4rem;
align-items: center;
}
.contact-form {
background: var(--card-bg);
padding: 2.5rem;
border-radius: 20px;
border: 1px solid var(--border-color);
}
.form-group {
margin-bottom: 1.5rem;
}
.form-group label {
display: block;
margin-bottom: 0.5rem;
font-weight: 500;
}
.form-control {
width: 100%;
padding: 1rem;
background: rgba(255, 255, 255, 0.05);
border: 1px solid var(--border-color);
border-radius: 10px;
color: var(--text-main);
font-family: inherit;
transition: var(--transition);
}
.form-control:focus {
outline: none;
border-color: var(--primary);
background: rgba(255, 255, 255, 0.1);
}
/* --- FOOTER --- */
footer {
border-top: 1px solid var(--border-color);
padding: 3rem 0;
text-align: center;
color: var(--text-muted);
}
.social-links {
display: flex;
justify-content: center;
gap: 1.5rem;
margin-bottom: 1.5rem;
}
.social-links a {
font-size: 1.5rem;
transition: var(--transition);
}
.social-links a:hover {
color: var(--primary);
transform: scale(1.1);
}
/* --- ANIMATIONS --- */
@keyframes float {
0% { transform: translate(0, 0); }
100% { transform: translate(20px, 40px); }
}
@keyframes blink {
0%, 100% { opacity: 1; }
50% { opacity: 0; }
}
.reveal {
opacity: 0;
transform: translateY(30px);
transition: all 0.8s ease;
}
.reveal.active {
opacity: 1;
transform: translateY(0);
}
/* --- TOAST --- */
.toast {
position: fixed;
bottom: 20px;
right: 20px;
background: var(--gradient-main);
color: white;
padding: 1rem 2rem;
border-radius: 10px;
box-shadow: var(--shadow);
transform: translateY(100px);
opacity: 0;
transition: var(--transition);
z-index: 2000;
display: flex;
align-items: center;
gap: 10px;
}
.toast.show {
transform: translateY(0);
opacity: 1;
}
/* --- RESPONSIVE --- */
@media (max-width: 768px) {
.nav-links {
position: fixed;
top: 70px;
left: 0;
width: 100%;
background: var(--bg-color);
flex-direction: column;
padding: 2rem;
border-bottom: 1px solid var(--border-color);
transform: translateY(-150%);
transition: transform 0.3s ease;
}
.nav-links.open {
transform: translateY(0);
}
.hamburger {
display: block;
}
.contact-wrapper {
grid-template-columns: 1fr;
}
.hero h1 {
font-size: 4rem;
}
}
</style>
</head>
<body data-theme="dark">
<!-- Header -->
<header>
<div class="container nav-wrapper">
<div class="logo">
<span class="gradient-text">Hi.</span>
</div>
<nav>
<ul class="nav-links" id="navLinks">
<li><a href="#home">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#services">Services</a></li>
<li><a href="#contact">Contact</a></li>
<!-- Mandatory Link -->
<li>
<a href="https://huggingface.co/spaces/akhaliq/anycoder" target="_blank" class="gradient-text" style="font-weight: 700;">
Built with anycoder
</a>
</li>
</ul>
</nav>
<div style="display: flex; align-items: center; gap: 1rem;">
<div class="theme-toggle" id="themeToggle">
<i class="ri-sun-line"></i>
</div>
<div class="hamburger" id="hamburger">
<i class="ri-menu-3-line"></i>
</div>
</div>
</div>
</header>
<!-- Hero Section -->
<section id="home" class="hero">
<div class="blob blob-1"></div>
<div class="blob blob-2"></div>
<div class="container hero-content">
<h1 class="reveal">Hi, I'm <span class="gradient-text">Alex</span></h1>
<div class="hero-subtitle reveal">
I <span id="typewriter"></span><span class="cursor"></span>
</div>
<div class="hero-btns reveal">
<a href="#contact" class="btn btn-primary">
Get in Touch <i class="ri-arrow-right-line"></i>
</a>
<a href="#services" class="btn btn-outline">
View Work
</a>
</div>
</div>
</section>
<!-- About Section -->
<section id="about">
<div class="container">
<div class="section-header reveal">
<h2>Who I Am</h2>
<p>A passionate creator building digital experiences that matter.</p>
</div>
<div class="grid-3">
<div class="card reveal">
<div class="card-icon"><i class="ri-code-s-slash-line"></i></div>
<h3>Clean Code</h3>
<p>I write efficient, maintainable, and scalable code using modern best practices and semantic HTML5.</p>
</div>
<div class="card reveal">
<div class="card-icon"><i class="ri-paint-brush-line"></i></div>
<h3>Modern Design</h3>
<p>Creating visually stunning interfaces with attention to typography, color theory, and micro-interactions.</p>
</div>
<div class="card reveal">
<div class="card-icon"><i class="ri-rocket-line"></i></div>
<h3>Performance</h3>
<p>Optimizing for speed and SEO to ensure your application loads instantly and reaches the right audience.</p>
</div>
</div>
</div>
</section>
<!-- Services Section -->
<section id="services" style="background: rgba(255,255,255,0.02);">
<div class="container">
<div class="section-header reveal">
<h2>What I Do</h2>
<p>Turning complex problems into simple, beautiful solutions.</p>
</div>
<div class="grid-3">
<div class="card reveal">
<h3>Web Development</h3>
<p>Full-stack development using the latest technologies. From simple landing pages to complex web apps.</p>
</div>
<div class="card reveal">
<h3>UI/UX Design</h3>
<p>Designing intuitive user interfaces and experiences that delight users and drive engagement.</p>
</div>
<div class="card reveal">
<h3>Mobile Apps</h3>
<p>Cross-platform mobile application development that works seamlessly on iOS and Android devices.</p>
</div>
</div>
</div>
</section>
<!-- Contact Section -->
<section id="contact">
<div class="container">
<div class="contact-wrapper">
<div class="reveal">
<h2>Let's Work Together</h2>
<p style="color: var(--text-muted); margin: 1rem 0 2rem;">
Have a project in mind? Fill out the form or send me an email. I'm currently open to new opportunities.
</p>
<div style="display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem;">
<i class="ri-mail-send-line" style="color: var(--primary); font-size: 1.2rem;"></i>
<span>hello@example.com</span>
</div>
<div style="display: flex; gap: 1rem; align-items: center;">
<i class="ri-map-pin-line" style="color: var(--primary); font-size: 1.2rem;"></i>
<span>New York, USA</span>
</div>
</div>
<form class="contact-form reveal" id="contactForm">
<div class="form-group">
<label for="name">Name</label>
<input type="text" id="name" class="form-control" placeholder="Your Name" required>
</div>
<div class="form-group">
<label for="email">Email</label>
<input type="email" id="email" class="form-control" placeholder="your@email.com" required>
</div>
<div class="form-group">
<label for="message">Message</label>
<textarea id="message" rows="4" class="form-control" placeholder="Tell me about your project..." required></textarea>
</div>
<button type="submit" class="btn btn-primary" style="width: 100%;">
Send Message <i class="ri-send-plane-fill"></i>
</button>
</form>
</div>
</div>
</section>
<!-- Footer -->
<footer>
<div class="container">
<div class="social-links">
<a href="#"><i class="ri-github-fill"></i></a>
<a href="#"><i class="ri-linkedin-fill"></i></a>
<a href="#"><i class="ri-twitter-x-fill"></i></a>
<a href="#"><i class="ri-dribbble-line"></i></a>
</div>
<p>© 2023 Alex Creative. All rights reserved.</p>
</div>
</footer>
<!-- Toast Notification -->
<div class="toast" id="toast">
<i class="ri-checkbox-circle-line"></i>
<span>Message sent successfully!</span>
</div>
<!-- JavaScript -->
<script>
// --- 1. Theme Toggle Logic ---
const themeToggle = document.getElementById('themeToggle');
const body = document.body;
const icon = themeToggle.querySelector('i');
themeToggle.addEventListener('click', () => {
if (body.getAttribute('data-theme') === 'dark') {
body.setAttribute('data-theme', 'light');
icon.classList.replace('ri-sun-line', 'ri-moon-line');
} else {
body.setAttribute('data-theme', 'dark');
icon.classList.replace('ri-moon-line', 'ri-sun-line');
}
});
// --- 2. Mobile Menu Logic ---
const hamburger = document.getElementById('hamburger');
const navLinks = document.getElementById('navLinks');
const links = navLinks.querySelectorAll('a');
hamburger.addEventListener('click', () => {
navLinks.classList.toggle('open');
const icon = hamburger.querySelector('i');
if (navLinks.classList.contains('open')) {
icon.classList.replace('ri-menu-3-line', 'ri-close-line');
} else {
icon.classList.replace('ri-close-line', 'ri-menu-3-line');
}
});
// Close menu when clicking a link
links.forEach(link => {
link.addEventListener('click', () => {
navLinks.classList.remove('open');
hamburger.querySelector('i').classList.replace('ri-close-line', 'ri-menu-3-line');
});
});
// --- 3. Typewriter Effect ---
const textElement = document.getElementById('typewriter');
const texts = ["build websites.", "design interfaces.", "solve problems."];
let count = 0;
let index = 0;
let currentText = '';
let letter = '';
(function type() {
if (count === texts.length) {
count = 0;
}
currentText = texts[count];
letter = currentText.slice(0, ++index);
textElement.textContent = letter;
if (letter.length === currentText.length) {
count++;
index = 0;
setTimeout(type, 2000); // Wait before next word
} else {
setTimeout(type, 100); // Typing speed
}
}());
// --- 4. Scroll Reveal Animation ---
const revealElements = document.querySelectorAll('.reveal');
const revealOnScroll = () => {
const windowHeight = window.innerHeight;
const elementVisible = 150;
revealElements.forEach((reveal) => {
const elementTop = reveal.getBoundingClientRect().top;
if (elementTop < windowHeight - elementVisible) {
reveal.classList.add('active');
}
});
};
window.addEventListener('scroll', revealOnScroll);
// Trigger once on load
revealOnScroll();
// --- 5. Contact Form Handling ---
const contactForm = document.getElementById('contactForm');
const toast = document.getElementById('toast');
contactForm.addEventListener('submit', (e) => {
e.preventDefault();
// Simulate form submission
const btn = contactForm.querySelector('button');
const originalText = btn.innerHTML;
btn.innerHTML = 'Sending...';
btn.disabled = true;
setTimeout(() => {
// Show Toast
toast.classList.add('show');
// Reset Form
contactForm.reset();
btn.innerHTML = originalText;
btn.disabled = false;
// Hide Toast after 3 seconds
setTimeout(() => {
toast.classList.remove('show');
}, 3000);
}, 1500);
});
</script>
</body>
</html> |