add section vus

This commit is contained in:
2026-10-09 11:59:15 +10:00
parent 6ffb936c39
commit 8506fd88ae
17 changed files with 1018 additions and 150 deletions
+8 -1
View File
@@ -3,12 +3,19 @@
* Корневой компонент. Класс body задан на уровне страницы,
* потому что в исходной вёрстке главная и страница вузов различаются:
* index.html — «font-face-all», vus.html — «text-color».
* Текстовой раскраской помечаются и адресные страницы вузов /vus/<slug>.
*/
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",
),
},
});
</script>