fix(ui): hide SubNavigation on home page, reorder sections, remove description
All checks were successful
Build Docker Image / build (push) Successful in 4m9s

This commit is contained in:
Ruslan Bakiev
2026-01-08 13:59:24 +07:00
parent 6b2208f0ae
commit 821dd72809
2 changed files with 7 additions and 5 deletions

View File

@@ -19,8 +19,8 @@
<!-- Global Search Bar -->
<GlobalSearchBar v-if="showSearch" class="border-b border-base-300" />
<!-- Sub Navigation (section-specific tabs) -->
<SubNavigation :section="currentSection" />
<!-- Sub Navigation (section-specific tabs) - hidden on home page -->
<SubNavigation v-if="!isHomePage" :section="currentSection" />
<!-- Page content -->
<main class="flex-1 flex flex-col min-h-0 px-3 lg:px-6 py-4">
@@ -80,11 +80,14 @@ const currentSection = computed(() => {
return 'catalog'
})
// Show search bar only on main page
const showSearch = computed(() => {
// Home page detection
const isHomePage = computed(() => {
return route.path === '/' || route.path === '/en' || route.path === '/ru'
})
// Show search bar only on main page
const showSearch = computed(() => isHomePage.value)
// Avatar generation
const generateUserAvatar = async (seed: string) => {
if (!seed) return

View File

@@ -34,7 +34,6 @@
<Section variant="plain">
<Stack gap="8" align="center">
<Heading :level="2">{{ $t('roles.title') }}</Heading>
<Text align="center" tone="muted">{{ $t('about.description') }}</Text>
<Grid :cols="1" :md="3" :gap="6">
<Card padding="lg">