add section vus
This commit is contained in:
@@ -0,0 +1,121 @@
|
||||
<script setup lang="ts">
|
||||
import {
|
||||
universityImageUrl,
|
||||
universityMeta,
|
||||
universitySchema,
|
||||
} from "~/data/seo";
|
||||
import { VUS_FOOTER_LINKS, VUS_NAV } from "~/data/site";
|
||||
import {
|
||||
findUniversityBySlug,
|
||||
getOtherUniversities,
|
||||
universityPath,
|
||||
} from "~/data/universities";
|
||||
import "~/assets/css/vus.css";
|
||||
|
||||
const route = useRoute();
|
||||
const router = useRouter();
|
||||
const slug = route.params.slug;
|
||||
const university = findUniversityBySlug(slug);
|
||||
|
||||
if (!university) {
|
||||
throw createError({ statusCode: 404, statusMessage: "Страница не найдена" });
|
||||
}
|
||||
|
||||
useSeoMeta({
|
||||
title: universityMeta(university).title,
|
||||
description: universityMeta(university).description,
|
||||
ogTitle: universityMeta(university).title,
|
||||
ogDescription: universityMeta(university).description,
|
||||
ogType: "website",
|
||||
ogUrl: universityMeta(university).url,
|
||||
ogImage: universityImageUrl(university),
|
||||
twitterTitle: universityMeta(university).title,
|
||||
twitterDescription: universityMeta(university).description,
|
||||
twitterImage: universityImageUrl(university),
|
||||
});
|
||||
|
||||
useHead({
|
||||
link: [{ rel: "canonical", href: universityMeta(university).url }],
|
||||
script: [
|
||||
{
|
||||
type: "application/ld+json",
|
||||
innerHTML: JSON.stringify(universitySchema(university.slug)),
|
||||
},
|
||||
],
|
||||
});
|
||||
|
||||
useReveal();
|
||||
|
||||
const otherUniversities = getOtherUniversities(university.slug);
|
||||
|
||||
const handleBack = () => {
|
||||
router.push("/vus");
|
||||
};
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<AppHeader :items="VUS_NAV" variant="vus" />
|
||||
|
||||
<section>
|
||||
<div class="container-fluid pb-3">
|
||||
<a href="#call-my" class="sticky-block"
|
||||
><< Контактная информация.</a
|
||||
>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xxl-2 col-lg-1"></div>
|
||||
<div class="col-xxl-8 col-lg-10 fon-v my-4">
|
||||
<!-- Хлебные крошки -->
|
||||
<AppBreadcrumbs :university-name="university.shortName" />
|
||||
|
||||
<!-- Кнопка назад -->
|
||||
<button class="btn btn-dark mb-3" @click="handleBack">
|
||||
<< Вернуться на каталог вузов
|
||||
</button>
|
||||
|
||||
<!-- Hero-изображение -->
|
||||
<div class="text-center mb-4 reveal">
|
||||
<img
|
||||
:src="`/assets/img/${university.heroImage}`"
|
||||
class="img-fluid container_vizit_img"
|
||||
:alt="university.heroImageAlt"
|
||||
loading="lazy"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<!-- Заголовок вуза -->
|
||||
<h2 class="text-center mb-4 reveal">{{ university.name }}</h2>
|
||||
|
||||
<!-- Полное содержимое вуза -->
|
||||
<UniversityContent :university="university" />
|
||||
|
||||
<!-- Контактная информация вуза -->
|
||||
<UniversityContacts :university="university" />
|
||||
|
||||
<!-- Другие вузы -->
|
||||
<div class="mt-5 reveal" v-if="otherUniversities.length">
|
||||
<h3 class="text-center mb-3">Другие вузы</h3>
|
||||
<div class="row">
|
||||
<div
|
||||
v-for="item in otherUniversities"
|
||||
:key="item.slug"
|
||||
class="col-md-6 mb-3"
|
||||
>
|
||||
<NuxtLink class="text-color" :to="universityPath(item.slug)">
|
||||
{{ item.name }}
|
||||
</NuxtLink>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<AppFooter
|
||||
:links="VUS_FOOTER_LINKS"
|
||||
intro="По вопросам поступления в вузы ФСБ России от пограничного органа ФСБ России по Хабаровскому краю и Еврейской автономной области обращайтесь по телефону:"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
@@ -66,7 +66,7 @@ useReveal();
|
||||
|
||||
<UniversityCard
|
||||
v-for="university in UNIVERSITIES"
|
||||
:key="university.id"
|
||||
:key="university.slug"
|
||||
:university="university"
|
||||
/>
|
||||
</div>
|
||||
Reference in New Issue
Block a user