Landing Page

This commit is contained in:
David Haz
2025-07-08 12:39:14 +03:00
parent fa9392fa47
commit 9ddb731258
41 changed files with 4584 additions and 8 deletions

View File

@@ -1,3 +1,27 @@
<template>
<h1>Vue Bits</h1>
<div>
<DisplayHeader
v-if="!isCategoryPage"
:activeItem="activeItem"
/>
<router-view />
</div>
</template>
<script setup lang="ts">
import { computed } from 'vue'
import { useRoute } from 'vue-router'
import DisplayHeader from '@/components/landing/DisplayHeader/DisplayHeader.vue'
const route = useRoute()
const activeItem = computed(() => {
if (route.path === '/') return 'home'
return null
})
const isCategoryPage = computed(() => {
return /^\/[^/]+\/[^/]+$/.test(route.path)
})
</script>