-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.vue
36 lines (32 loc) · 896 Bytes
/
index.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<script setup>
useHead({
title : "Home - Nuxt app",
meta : [
{
name : "description",
content : "This is a demo app for a Nuxt 3 app"
}
]
})
</script>
<template>
<div class="index-container">
<div class="text-center">
<h1>Welcome to the index page</h1>
<AppAlert>
This is an auto-imported component
</AppAlert>
</div>
</div>
<!-- In Dev : Only works if image is in folder assets/ (which itself is located in the root of the Nuxt project) -->
<!-- And if you've specified '~/assets' before the path of the image -->
<!-- <img src="~/assets/img/house.jpg" alt="Discover Nuxt 3 assets"> -->
</template>
<style scoped>
.index-container {
height: 90vh;
display: flex;
justify-content: center;
align-items: center;
}
</style>