Загрузка данных
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Визитка-мультиссылка</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<header>
<img src="https://via.placeholder.com/150" alt="Аватар профиля" class="avatar">
<h1>Иван Иванов</h1>
<p class="bio">Frontend-разработчик | Создаю стильные веб-интерфейсы</p>
</header>
<main>
<section class="links">
<a href="#" class="btn-link">Мое портфолио</a>
<a href="#" class="btn-link">Telegram-канал</a>
<a href="#" class="btn-link">GitHub</a>
<a href="#" class="btn-link">Связаться со мной</a>
</section>
</main>
<footer>
<div class="social-icons">
<a href="#" aria-label="Telegram">TG</a>
<a href="#" aria-label="GitHub">GH</a>
<a href="#" aria-label="LinkedIn">IN</a>
</div>
</footer>
</div>
</body>
</html>
Пьплплплплпллппл* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
/* Мягкий линейный градиент для фона */
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: #fff;
padding: 20px;
}
.container {
width: 100%;
max-width: 400px;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
}
/* Header / Аватар */
header {
display: flex;
flex-direction: column;
align-items: center;
margin-bottom: 25px;
}
.avatar {
width: 120px;
height: 120px;
border-radius: 50%; /* Круглое обрамление */
object-fit: cover;
border: 3px solid rgba(255, 255, 255, 0.6);
margin-bottom: 15px;
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
header h1 {
font-size: 1.5rem;
margin-bottom: 8px;
}
.bio {
font-size: 0.95rem;
opacity: 0.9;
line-height: 1.4;
}
/* Ссылки (Glassmorphism) */
.links {
width: 100%;
display: flex;
flex-direction: column;
gap: 15px;
margin-bottom: 30px;
}
.btn-link {
display: block;
padding: 14px 20px;
color: #ffffff;
text-decoration: none;
font-weight: 500;
border-radius: 12px;
/* Эффект Glassmorphism */
background: rgba(255, 255, 255, 0.15);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.25);
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
/* Плавный переход для hover-анимации */
transition: all 0.3s ease;
}
.btn-link:hover {
/* Hover-анимация: смещение, увеличение и изменение прозрачности */
transform: translateY(-3px) scale(1.02);
background: rgba(255, 255, 255, 0.25);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
/* Футер и иконки */
footer {
width: 100%;
}
.social-icons {
display: flex;
justify-content: center;
gap: 20px;
}
.social-icons a {
color: #fff;
text-decoration: none;
font-weight: bold;
width: 40px;
height: 40px;
border-radius: 50%;
/* Glassmorphism для иконок */
background: rgba(255, 255, 255, 0.15);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
display: flex;
align-items: center;
justify-content: center;
transition: transform 0.3s ease, background 0.3s ease;
}
.social-icons a:hover {
transform: scale(1.15);
background: rgba(255, 255, 255, 0.3);
}