From 489e55744d4d7ff5ca863d456d7c79149ecb349b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=98=D0=B3=D0=BE=D1=80=D1=8C=20=D0=91=D0=B0=D0=BD=D0=B4?= =?UTF-8?q?=D1=83=D1=80=D0=B8=D1=81=D1=82?= Date: Fri, 9 Oct 2026 15:20:06 +1000 Subject: [PATCH] =?UTF-8?q?=D0=BD=D0=BE=D1=80=D0=BC=D0=B0=D0=BB=D1=8C?= =?UTF-8?q?=D0=BD=D0=BE=20=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D0=B0=D0=B5=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/css/style.css | 47 +++++++++ assets/css/vus.css | 165 ++++++++++++++++++++++++++++++ components/UniversityCard.vue | 2 +- components/UniversityContacts.vue | 27 ++--- nuxt.config.ts | 2 + pages/vus/[slug].vue | 93 +++++++++++------ 6 files changed, 289 insertions(+), 47 deletions(-) diff --git a/assets/css/style.css b/assets/css/style.css index f663b9f..8bf4d7b 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -412,3 +412,50 @@ footer h2 { position: relative; z-index: 2; } + +/* ============================================ + ПЛАВНЫЕ ПЕРЕХОДЫ + ============================================ */ + +/* Переход между страницами (app.pageTransition в nuxt.config.ts) */ +.page-enter-active, +.page-leave-active { + transition: + opacity 0.25s ease, + transform 0.25s ease; +} + +.page-enter-from { + opacity: 0; + transform: translateY(12px); +} + +.page-leave-to { + opacity: 0; + transform: translateY(-12px); +} + +/* Плавная прокрутка к якорям («Контактная информация») */ +html { + scroll-behavior: smooth; +} + +/* Базовый тёмный фон: во время pageTransition (out-in) старый и новый + контент отсутствует одновременно, и без этого цвета на мгновение + виден белый фон браузера. Цвет совпадает с верхом градиента .fon-v. */ +html, +body { + background-color: #021400; +} + +/* Уважение к системной настройке «уменьшить движение» */ +@media (prefers-reduced-motion: reduce) { + html { + scroll-behavior: auto; + } + + .page-enter-active, + .page-leave-active { + transition: none; + } +} diff --git a/assets/css/vus.css b/assets/css/vus.css index 268be30..80cd9b3 100644 --- a/assets/css/vus.css +++ b/assets/css/vus.css @@ -343,6 +343,158 @@ img[loading="lazy"] { margin-bottom: 0.25rem; } +/* ============================================ + СТРАНИЦА ВУЗА (pages/vus/[slug].vue) + ============================================ */ + +/* Шапка страницы: название, город, чипы характеристик */ +.vus-detail__header { + text-align: center; + padding: 1rem 0 0.5rem; +} + +.vus-detail__title { + color: #fff; + font-size: 1.7rem; + font-weight: 700; + line-height: 1.3; + margin-bottom: 0.4rem; +} + +.vus-detail__location { + color: #90ee90; + font-size: 1rem; + margin-bottom: 1rem; +} + +.vus-detail__badges { + display: flex; + flex-wrap: wrap; + gap: 0.5rem; + justify-content: center; + margin-bottom: 1.5rem; + padding: 0; + list-style: none; +} + +.vus-detail__badge { + display: inline-block; + padding: 0.3rem 0.8rem; + font-size: 0.8rem; + border-radius: 14px; + background-color: rgba(40, 167, 69, 0.25); + color: #90ee90; + border: 1px solid rgba(40, 167, 69, 0.4); +} + +/* Hero-изображение в карточке */ +.vus-detail__hero-card { + border-radius: 20px; + overflow: hidden; + background: linear-gradient( + 0deg, + rgba(0, 0, 0, 0.85) 0%, + rgba(1, 45, 12, 0.95) 50%, + rgba(0, 0, 0, 0.85) 100% + ); + box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4); + padding: 0.75rem; + margin-bottom: 2rem; +} + +.vus-detail__hero-card img { + width: 100%; + height: auto; + display: block; + border-radius: 14px; +} + +/* Карточка контактной информации */ +.vus-detail__contacts-card { + border-radius: 20px; + background: linear-gradient( + 0deg, + rgba(0, 0, 0, 0.85) 0%, + rgba(1, 45, 12, 0.95) 50%, + rgba(0, 0, 0, 0.85) 100% + ); + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); + padding: 1.5rem; +} + +.vus-detail__contacts-card h3 { + color: #fff; + font-size: 1.3rem; + margin-bottom: 1rem; +} + +.vus-detail__contacts-label { + color: #90ee90; + font-size: 0.85rem; + text-transform: uppercase; + letter-spacing: 0.04em; + margin-bottom: 0.25rem; +} + +.vus-detail__contacts-value { + color: #ccc; + margin-bottom: 1rem; +} + +/* Мини-карточки «Другие вузы» */ +.vus-detail__other-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); + gap: 1rem; +} + +.vus-detail__other-card { + display: flex; + align-items: center; + gap: 1rem; + text-decoration: none; + color: inherit; + border-radius: 16px; + background: linear-gradient( + 0deg, + rgba(0, 0, 0, 0.85) 0%, + rgba(1, 45, 12, 0.95) 50%, + rgba(0, 0, 0, 0.85) 100% + ); + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); + padding: 0.9rem 1.1rem; + transition: + transform 0.2s ease, + box-shadow 0.2s ease; +} + +.vus-detail__other-card:hover { + transform: translateY(-3px); + box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5); + color: inherit; +} + +.vus-detail__other-card img { + width: 64px; + height: 48px; + object-fit: cover; + border-radius: 8px; + flex-shrink: 0; +} + +.vus-detail__other-name { + color: #ccc; + font-size: 0.95rem; + line-height: 1.3; +} + +.vus-detail__other-arrow { + margin-left: auto; + color: #28a745; + font-size: 1.2rem; + flex-shrink: 0; +} + /* ============================================ АДАПТИВНОСТЬ ============================================ */ @@ -370,4 +522,17 @@ img[loading="lazy"] { .vus-enrollment__table { font-size: 0.85rem; } + + .vus-detail__title { + font-size: 1.3rem; + } + + .vus-detail__hero-card { + padding: 0.5rem; + margin-bottom: 1.5rem; + } + + .vus-detail__other-grid { + grid-template-columns: 1fr; + } } diff --git a/components/UniversityCard.vue b/components/UniversityCard.vue index 946c221..4a25536 100644 --- a/components/UniversityCard.vue +++ b/components/UniversityCard.vue @@ -60,7 +60,7 @@ const props = defineProps<{ university: University }>(); rel="noopener noreferrer" itemprop="url" > - Сайт вуза + Перейти на сайт diff --git a/components/UniversityContacts.vue b/components/UniversityContacts.vue index eec0d4b..2926424 100644 --- a/components/UniversityContacts.vue +++ b/components/UniversityContacts.vue @@ -9,26 +9,27 @@ const props = defineProps<{ university: University }>();