feat: enhance dashboard pages with metadata and user greeting

This commit is contained in:
2025-10-21 18:18:35 +02:00
parent 6641514dc7
commit b2588f9489
3 changed files with 60 additions and 3 deletions

View File

@@ -1,3 +1,22 @@
<script setup lang="ts">
import type { User } from '~/types/user';
useSeoMeta({
title: "Portál administrátora | ISOP",
ogTitle: "Portál administrátora",
description: "Portál administrátora ISOP",
ogDescription: "Portál administrátora",
});
const user = useSanctumUser<User>();
</script>
<template>
<div></div>
<v-container fluid>
<v-card id="footer-card">
<h1>Vitajte, {{ user?.name }}</h1>
</v-card>
</v-container>
</template>

View File

@@ -1,3 +1,22 @@
<script setup lang="ts">
import type { User } from '~/types/user';
useSeoMeta({
title: "Portál firmy | ISOP",
ogTitle: "Portál firmy",
description: "Portál firmy ISOP",
ogDescription: "Portál firmy",
});
const user = useSanctumUser<User>();
</script>
<template>
<div></div>
<v-container fluid>
<v-card id="footer-card">
<h1>Vitajte, {{ user?.name }} <em>({{ user?.company_data?.name }})</em></h1>
</v-card>
</v-container>
</template>

View File

@@ -1,3 +1,22 @@
<script setup lang="ts">
import type { User } from '~/types/user';
useSeoMeta({
title: "Portál študenta | ISOP",
ogTitle: "Portál študenta",
description: "Portál študenta ISOP",
ogDescription: "Portál študenta",
});
const user = useSanctumUser<User>();
</script>
<template>
<div></div>
<v-container fluid>
<v-card id="footer-card">
<h1>Vitajte, {{ user?.name }}</h1>
</v-card>
</v-container>
</template>