This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
<script setup lang="ts">
|
||||
/* ── Time ── */
|
||||
const { data: session } = useAuth()
|
||||
|
||||
const userName = computed(() => session.value?.user?.name || 'User')
|
||||
|
||||
const timeGreeting = computed(() => {
|
||||
const h = new Date().getHours()
|
||||
if (h < 12) return 'Good morning'
|
||||
@@ -18,7 +21,7 @@ const currentDate = computed(() =>
|
||||
<!-- Greeting -->
|
||||
<div class="mb-12">
|
||||
<h1 class="text-3xl font-semibold tracking-tight text-[var(--text-primary)]">
|
||||
{{ timeGreeting }}, User
|
||||
{{ timeGreeting }}, {{ userName }}
|
||||
</h1>
|
||||
<p class="mt-1 text-sm text-[var(--text-muted)]">{{ currentDate }}</p>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user