Add dynamic titles #71

This commit is contained in:
dragongoose
2024-06-02 11:42:35 -04:00
parent a3d462e9db
commit f3f6dd88aa
9 changed files with 49 additions and 6 deletions

View File

@ -9,6 +9,7 @@ import CategoryPreview from '@/components/CategoryPreview.vue'
import { getEndpoint, followersStreaming } from '@/mixins'
import type { CategoryPreview as CategoryPreviewInterface } from '@/types'
import { getFollows } from '@/settingsManager'
import VueTitle from '@/components/VueTitle.vue'
export default {
async setup() {
@ -96,7 +97,8 @@ export default {
StreamPreviewVue,
ErrorMessage,
LoadingScreen,
CategoryPreview
CategoryPreview,
VueTitle
}
}
</script>
@ -106,6 +108,7 @@ export default {
<error-message v-show="status == 'error'"></error-message>
<div v-show="data" class="max-w-5xl mx-auto">
<vue-title title="Discover"></vue-title>
<div v-if="following && following.length > 0" class="p-2 text-contrast">
<h1 class="font-bold text-5xl">{{ $t('home.following') }}</h1>
<p class="text-xl">{{ $t('home.streamersYouFollow') }}</p>