Spaces:
Running
Running
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>My Business Card</title> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap" rel="stylesheet"> | |
| <style> | |
| :root { | |
| --primary: #3a86ff; | |
| --secondary: #8338ec; | |
| --dark: #212529; | |
| --light: #f8f9fa; | |
| } | |
| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| font-family: 'Poppins', sans-serif; | |
| } | |
| body { | |
| background: linear-gradient(135deg, var(--primary), var(--secondary)); | |
| min-height: 100vh; | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| padding: 20px; | |
| } | |
| .business-card { | |
| background: rgba(255, 255, 255, 0.9); | |
| border-radius: 16px; | |
| box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); | |
| overflow: hidden; | |
| width: 100%; | |
| max-width: 400px; | |
| text-align: center; | |
| transition: transform 0.3s ease; | |
| } | |
| .business-card:hover { | |
| transform: translateY(-10px); | |
| } | |
| .card-header { | |
| background: linear-gradient(135deg, var(--primary), var(--secondary)); | |
| padding: 30px; | |
| color: white; | |
| } | |
| .profile-img { | |
| width: 120px; | |
| height: 120px; | |
| border-radius: 50%; | |
| border: 4px solid white; | |
| object-fit: cover; | |
| margin-bottom: 15px; | |
| } | |
| .name { | |
| font-size: 24px; | |
| font-weight: 600; | |
| margin-bottom: 5px; | |
| } | |
| .title { | |
| font-size: 16px; | |
| font-weight: 400; | |
| opacity: 0.9; | |
| } | |
| .card-body { | |
| padding: 30px; | |
| } | |
| .contact-info { | |
| margin-bottom: 25px; | |
| } | |
| .contact-item { | |
| display: flex; | |
| align-items: center; | |
| margin-bottom: 15px; | |
| font-size: 15px; | |
| color: var(--dark); | |
| } | |
| .contact-item i { | |
| margin-right: 10px; | |
| color: var(--primary); | |
| font-size: 18px; | |
| width: 20px; | |
| } | |
| .social-links { | |
| display: flex; | |
| justify-content: center; | |
| gap: 15px; | |
| } | |
| .social-links a { | |
| color: white; | |
| background: var(--primary); | |
| width: 40px; | |
| height: 40px; | |
| border-radius: 50%; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| text-decoration: none; | |
| transition: all 0.3s ease; | |
| } | |
| .social-links a:hover { | |
| background: var(--secondary); | |
| transform: scale(1.1); | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <div class="business-card"> | |
| <div class="card-header"> | |
| <img src="http://static.photos/people/200x200/42" alt="Profile" class="profile-img"> | |
| <h1 class="name">John Doe</h1> | |
| <p class="title">Web Developer & Designer</p> | |
| </div> | |
| <div class="card-body"> | |
| <div class="contact-info"> | |
| <div class="contact-item"> | |
| <i class="fas fa-envelope"></i> | |
| john.doe@example.com | |
| </div> | |
| <div class="contact-item"> | |
| <i class="fas fa-phone"></i> | |
| +1 (555) 123-4567 | |
| </div> | |
| <div class="contact-item"> | |
| <i class="fas fa-map-marker-alt"></i> | |
| New York, USA | |
| </div> | |
| </div> | |
| <div class="social-links"> | |
| <a href="#"><i class="fab fa-github"></i></a> | |
| <a href="#"><i class="fab fa-linkedin-in"></i></a> | |
| <a href="#"><i class="fab fa-twitter"></i></a> | |
| <a href="#"><i class="fab fa-instagram"></i></a> | |
| </div> | |
| </div> | |
| </div> | |
| </body> | |
| </html> | |