/
vanzinfed
/
React_App_SuperApp
Обзор
Документация
Войти
/
vanzinfed
/
React_App_SuperApp
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/components/TimelineSection/TimelineSection.css
133 строки
3 KB
DONTSTOP
Initial commit
12 ноя 2024, 11:54
12 ноя 2024, 11:54
55b4a65
Код
Авторство
О чём код?
.timeline-section { padding: 0px 20px; min-height: 100vh; /* Высота секции занимает весь экран */ background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("./background.png") center / cover no-repeat; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; } .timeline-title { font-family: "Dela Gothic One", sans-serif; font-size: 64px; font-weight: 400; font-style: normal; color: #fff; margin-bottom: 100px; max-width: 100%; text-align: center; /* Центрирование текста */ word-wrap: break-word; /* Разрешаем перенос слов */ } /* Медиа-запросы для изменения размера заголовка */ @media (max-width: 1200px) { .timeline-title { font-size: 56px; } } @media (max-width: 992px) { .timeline-title { font-size: 48px; } } @media (max-width: 768px) { .timeline-title { font-size: 36px; } } @media (max-width: 576px) { .timeline-title { font-size: 28px; } } .timeline { display: flex; flex-direction: column; align-items: center; position: relative; max-width: 800px; /* Увеличиваем максимальную ширину таймлайна */ width: 100%; } .timeline-item { width: 100%; margin-bottom: 30px; /* Увеличиваем отступ между элементами */ position: relative; } .timeline-content { margin-top: 10px; background: rgba(255, 255, 255, 0.1); padding: 30px 40px; /* Увеличиваем внутренние отступы для большего пространства */ border-radius: 12px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); } .timeline-year { filter: drop-shadow(0px 0px 20px #b4acff); font-size: 1.6em; /* Увеличиваем размер шрифта для года */ padding: 12px 18px; /* Увеличиваем размер самого круга с годом */ } .timeline-item::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: rgba(255, 255, 255, 0.3); transform: translateX(-50%); z-index: -1; } .timeline-content { position: relative; background: rgba(255, 255, 255, 0.1); padding: 20px 30px; border-radius: 10px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); animation: fadeIn 0.5s ease; } .timeline-year { font-size: 1.4em; font-weight: bold; color: #ffffff; background: rgb(86, 135, 240); padding: 10px 15px; border-radius: 50%; display: inline-block; text-align: center; position: absolute; left: 50%; top: -35px; transform: translateX(-50%); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); margin-top: 10px; } .timeline-description { font-family: "DM Sans", sans-serif; color: #ddd; font-size: 1.3em; margin-top: 10px; text-align: justify; } @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }