/
Vladislav81
/
websiteForMe
Обзор
Документация
Войти
/
Vladislav81
/
websiteForMe
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
static/contacts.css
338 строк
9 KB
Владислав Антонов
upload files
28 дек 2025, 00:59
28 дек 2025, 00:59
7fa7e44
Код
Авторство
О чём код?
/* Стили для раздела "Контакты" */ #contacts { padding: 100px 0; background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%); color: white; position: relative; overflow: hidden; } .section-title { font-size: 2.5rem; font-weight: 700; margin-bottom: 60px; position: relative; text-align: center; } .section-title::after { content: ''; position: absolute; bottom: -15px; left: 50%; transform: translateX(-50%); width: 80px; height: 4px; background: white; border-radius: 2px; } /* Основной контейнер */ .contacts-container { max-width: 1200px; margin: 0 auto; } /* Карточка с контактами */ .contact-card { background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); border-radius: 20px; padding: 50px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2); border: 1px solid rgba(255, 255, 255, 0.2); transition: transform 0.3s ease; } .contact-card:hover { transform: translateY(-10px); } /* Аватар/Фото */ .contact-avatar { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; border: 5px solid rgba(255, 255, 255, 0.3); margin: 0 auto 30px; display: block; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); } /* ФИО */ .contact-name { font-size: 2.2rem; font-weight: 700; margin-bottom: 10px; text-align: center; color: white; } .contact-title { font-size: 1.2rem; opacity: 0.9; margin-bottom: 40px; text-align: center; color: rgba(255, 255, 255, 0.9); } /* Список контактов */ .contacts-list { list-style: none; padding: 0; margin: 0; } .contact-item { display: flex; align-items: center; margin-bottom: 30px; padding: 20px; background: rgba(255, 255, 255, 0.05); border-radius: 15px; transition: all 0.3s ease; border-left: 4px solid transparent; } .contact-item:hover { background: rgba(255, 255, 255, 0.1); transform: translateX(10px); border-left: 4px solid #3498db; } .contact-icon { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin-right: 20px; flex-shrink: 0; } .contact-content { flex-grow: 1; } .contact-label { font-size: 0.9rem; opacity: 0.7; margin-bottom: 5px; color: rgba(255, 255, 255, 0.8); } .contact-value { font-size: 1.2rem; font-weight: 600; } .contact-link { color: white; text-decoration: none; transition: color 0.3s ease; } .contact-link:hover { color: #3498db; text-decoration: none; } /* Цвета иконок */ .icon-telegram { background: linear-gradient(135deg, #0088cc, #34b7f1); color: white; } .icon-youtube { background: linear-gradient(135deg, #ff0000, #ff4d4d); color: white; } .icon-email { background: linear-gradient(135deg, #ea4335, #fbbc05); color: white; } .icon-person { background: linear-gradient(135deg, #9b59b6, #8e44ad); color: white; } /* Кнопка копирования email */ .copy-btn { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.3); color: white; padding: 8px 15px; border-radius: 20px; font-size: 0.9rem; margin-left: 15px; transition: all 0.3s ease; cursor: pointer; } .copy-btn:hover { background: rgba(255, 255, 255, 0.2); transform: scale(1.05); } .copy-btn.copied { background: #2ecc71; border-color: #27ae60; } /* Социальные ссылки */ .social-links { display: flex; justify-content: center; gap: 20px; margin-top: 40px; } .social-link { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: white; text-decoration: none; transition: all 0.3s ease; background: rgba(255, 255, 255, 0.1); } .social-link:hover { transform: translateY(-5px); text-decoration: none; } .social-telegram:hover { background: #0088cc; color: white; } .social-youtube:hover { background: #ff0000; color: white; } .social-email:hover { background: #ea4335; color: white; } /* Карта (опционально) */ .map-container { margin-top: 60px; border-radius: 15px; overflow: hidden; box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2); } /* Декор элементы */ .contact-decor { position: absolute; width: 300px; height: 300px; border-radius: 50%; background: rgba(255, 255, 255, 0.03); z-index: 0; } .decor-1 { top: -150px; right: -150px; } .decor-2 { bottom: -150px; left: -150px; } /* Адаптивность */ @media (max-width: 992px) { .contact-card { padding: 40px; } .contact-name { font-size: 1.8rem; } .contact-avatar { width: 150px; height: 150px; } } @media (max-width: 768px) { #contacts { padding: 60px 0; } .section-title { font-size: 2rem; } .contact-card { padding: 30px; } .contact-item { flex-direction: column; text-align: center; padding: 15px; } .contact-icon { margin-right: 0; margin-bottom: 15px; } .copy-btn { margin-left: 0; margin-top: 10px; } } @media (max-width: 576px) { .contact-name { font-size: 1.6rem; } .contact-avatar { width: 120px; height: 120px; } .contact-icon { width: 50px; height: 50px; font-size: 1.5rem; } } /* Анимация появления */ .fade-in-up { animation: fadeInUp 0.8s ease forwards; opacity: 0; transform: translateY(30px); } @keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } } /* Задержки анимации для элементов */ .delay-1 { animation-delay: 0.2s; } .delay-2 { animation-delay: 0.4s; } .delay-3 { animation-delay: 0.6s; } .delay-4 { animation-delay: 0.8s; }