From 8506fd88ae41b65a58bb69c6e63be339eb28cc97 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 11:59:15 +1000 Subject: [PATCH] add section vus --- app.vue | 9 +- assets/css/vus.css | 268 +++++++++++++++++++++++++++++- components/AppBreadcrumbs.vue | 47 ++++++ components/AppHeader.vue | 24 ++- components/AppSection.vue | 24 +++ components/BackToTop.vue | 72 ++++++++ components/SectionHeading.vue | 25 +++ components/UniversityCard.vue | 172 +++++++------------ components/UniversityContacts.vue | 35 ++++ components/UniversityContent.vue | 88 ++++++++++ data/seo.ts | 117 +++++++++++-- data/site.ts | 18 +- data/universities.ts | 56 ++++++- pages/vus/[slug].vue | 121 ++++++++++++++ pages/{vus.vue => vus/index.vue} | 2 +- public/sitemap.xml | 27 +++ types/index.ts | 63 ++++++- 17 files changed, 1018 insertions(+), 150 deletions(-) create mode 100644 components/AppBreadcrumbs.vue create mode 100644 components/AppSection.vue create mode 100644 components/BackToTop.vue create mode 100644 components/SectionHeading.vue create mode 100644 components/UniversityContacts.vue create mode 100644 components/UniversityContent.vue create mode 100644 pages/vus/[slug].vue rename pages/{vus.vue => vus/index.vue} (98%) create mode 100644 public/sitemap.xml diff --git a/app.vue b/app.vue index 7951863..ac78242 100644 --- a/app.vue +++ b/app.vue @@ -3,12 +3,19 @@ * Корневой компонент. Класс body задан на уровне страницы, * потому что в исходной вёрстке главная и страница вузов различаются: * index.html — «font-face-all», vus.html — «text-color». + * Текстовой раскраской помечаются и адресные страницы вузов /vus/. */ const route = useRoute(); +const isVusSection = computed( + () => route.path === "/vus" || route.path.startsWith("/vus/"), +); + useHead({ bodyAttrs: { - class: computed(() => (route.path === "/vus" ? "text-color" : "font-face-all")), + class: computed(() => + isVusSection.value ? "text-color" : "font-face-all", + ), }, }); diff --git a/assets/css/vus.css b/assets/css/vus.css index 4796bc3..268be30 100644 --- a/assets/css/vus.css +++ b/assets/css/vus.css @@ -24,7 +24,7 @@ p { .container-p-3 { padding: 10px; } -.fon-v{ +.fon-v { text-align: justify; } .fon-vus { @@ -105,3 +105,269 @@ img[loading="lazy"] { } /* Улучшенные заголовки */ + +/* ============================================ + КАТАЛОГ ВУЗОВ (pages/vus/index.vue) + ============================================ */ + +/* Блок каталога на всю ширину */ +.vus-catalog { + padding: 2rem 0; +} + +/* Заголовок-приветствие */ +.vus-catalog__intro { + max-width: 800px; + margin: 0 auto 2.5rem; +} + +.vus-catalog__intro h3 { + color: #ccc; + text-align: center; + font-size: 1.4rem; + line-height: 1.6; +} + +.vus-catalog__intro p { + text-align: justify; + color: #ccc; +} + +/* Карточки-ссылки в каталоге */ +.vus-catalog__grid { + display: flex; + flex-direction: column; + gap: 1.5rem; + max-width: 900px; + margin: 0 auto; +} + +.vus-catalog__card { + display: block; + text-decoration: none; + color: inherit; + 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% + ); + overflow: hidden; + transition: + transform 0.2s ease, + box-shadow 0.2s ease; + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); +} + +.vus-catalog__card:hover { + transform: translateY(-3px); + box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5); +} + +.vus-catalog__card-inner { + display: flex; + flex-direction: row; + gap: 1.5rem; + padding: 1.25rem; + align-items: center; +} + +.vus-catalog__image { + flex-shrink: 0; + width: 200px; + height: 140px; + border-radius: 12px; + overflow: hidden; +} + +.vus-catalog__image img { + width: 100%; + height: 100%; + object-fit: cover; + display: block; +} + +.vus-catalog__info { + flex: 1; + min-width: 0; +} + +.vus-catalog__name { + color: #ccc; + font-size: 1.2rem; + margin: 0 0 0.25rem; + line-height: 1.3; +} + +.vus-catalog__city { + color: #999; + font-size: 0.9rem; + margin-bottom: 0.5rem; +} + +.vus-catalog__summary { + color: #ccc; + font-size: 0.95rem; + line-height: 1.4; + margin-bottom: 0.75rem; +} + +.vus-catalog__badges { + display: flex; + flex-wrap: wrap; + gap: 0.4rem; + margin-bottom: 0.75rem; +} + +.vus-catalog__badge { + display: inline-block; + padding: 0.2rem 0.6rem; + font-size: 0.75rem; + border-radius: 12px; + background-color: rgba(40, 167, 69, 0.25); + color: #90ee90; + border: 1px solid rgba(40, 167, 69, 0.4); +} + +.vus-catalog__cta { + display: inline-block; + padding: 0.5rem 1.25rem; + font-size: 0.9rem; + font-weight: 600; + color: #fff; + background-color: #28a745; + border: 1px solid #28a745; + border-radius: 8px; + text-decoration: none; + transition: + background-color 0.2s ease, + color 0.2s ease; +} + +.vus-catalog__cta:hover { + background-color: transparent; + color: #28a745; +} + +/* ============================================ + СТРАНИЦА ВУЗА (pages/vus/[slug].vue) + ============================================ */ + +/* Блок подробной информации */ +.vus-detail__content { + max-width: 900px; + margin: 0 auto; + padding: 2rem 0; +} + +.vus-detail__hero { + text-align: center; + margin-bottom: 1.5rem; +} + +.vus-detail__hero img { + max-width: 100%; + height: auto; + border-radius: 20px; + padding: 10px 0; +} + +.vus-detail__back { + display: inline-block; + margin-bottom: 1rem; + color: #ccc; + text-decoration: none; + transition: color 0.2s ease; +} + +.vus-detail__back:hover { + color: #28a745; + text-decoration: underline; +} + +.vus-detail__other { + margin-top: 3rem; + padding-top: 1.5rem; + border-top: 1px solid rgba(255, 255, 255, 0.1); +} + +.vus-detail__other h3 { + color: #ccc; + text-align: center; + margin-bottom: 1.5rem; +} + +.vus-detail__other-grid { + display: flex; + flex-direction: column; + gap: 1rem; + max-width: 700px; + margin: 0 auto; +} + +/* Блок "После зачисления" */ +.vus-enrollment { + margin-top: 2rem; +} + +.vus-enrollment__table { + background-color: rgba(255, 255, 255, 0.95); + border-radius: 12px; + overflow: hidden; + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); +} + +.vus-enrollment__table thead { + background-color: #28a745; + color: white; +} + +.vus-enrollment__table th, +.vus-enrollment__table td { + padding: 0.5rem 0.75rem; + vertical-align: top; +} + +.vus-enrollment__table td { + font-size: 0.9rem; + line-height: 1.5; +} + +.vus-enrollment__table td ul { + margin: 0; + padding-left: 1.2rem; +} + +.vus-enrollment__table td li { + margin-bottom: 0.25rem; +} + +/* ============================================ + АДАПТИВНОСТЬ + ============================================ */ + +@media (max-width: 768px) { + .vus-catalog__card-inner { + flex-direction: column; + text-align: center; + } + + .vus-catalog__image { + width: 100%; + height: 200px; + } + + .vus-catalog__badges { + justify-content: center; + } + + .vus-catalog__cta { + width: 100%; + text-align: center; + } + + .vus-enrollment__table { + font-size: 0.85rem; + } +} diff --git a/components/AppBreadcrumbs.vue b/components/AppBreadcrumbs.vue new file mode 100644 index 0000000..eeff8c3 --- /dev/null +++ b/components/AppBreadcrumbs.vue @@ -0,0 +1,47 @@ + + + + + diff --git a/components/AppHeader.vue b/components/AppHeader.vue index 057d960..c9ea260 100644 --- a/components/AppHeader.vue +++ b/components/AppHeader.vue @@ -3,21 +3,39 @@ import type { NavItem } from "~/types"; /** * Шапка сайта. Вариант «main» — логотип ФСБ с переходом на главную, - * вариант «vus» — кнопка возврата на главную страницу (как в vus.html). + * вариант «vus» — кнопка возврата на каталог вузов (как в vus.html). + * На странице конкретного вуза можно задать кастомный текст и цель кнопки. */ interface Props { items: NavItem[]; variant?: "main" | "vus"; + /** Путь для кнопки возврата (по умолчанию /vus или /). */ + backTo?: string; + /** Текст кнопки возврата (по умолчанию «Вернуться на каталог вузов» / «Вернуться на главную страницу»). */ + backText?: string; } const props = withDefaults(defineProps(), { variant: "main", + backTo: undefined, + backText: undefined, }); /** Пункт меню ведёт на якорь текущей страницы. */ const isAnchor = (item: NavItem) => Boolean(item.anchor); /** Пункт меню ведёт на внутренний маршрут Nuxt. */ const isInternal = (item: NavItem) => Boolean(item.to); + +const backTarget = computed( + () => props.backTo ?? (props.variant === "vus" ? "/vus" : "/"), +); +const backLabel = computed( + () => + props.backText ?? + (props.variant === "vus" + ? "Вернуться на каталог вузов" + : "Вернуться на главную страницу"), +);