Krys4lide/frontend/pages/index.vue

17 lines
342 B
Vue
Raw Normal View History

2024-09-23 20:56:07 +02:00
<template>
<div>
<h1 class="text-xl">Welcome to your {{ appName }}!</h1>
<p v-if="current_user">Logged in as {{ current_user.name }}</p>
2024-09-23 20:56:07 +02:00
</div>
</template>
<script setup lang="ts">
const current_user = useCurrentUser();
const appName = 'Nuxt App';
2024-09-23 20:56:07 +02:00
</script>
<style scoped>
h1 {
color: #42b983;
}
</style>