mirror of
https://github.com/Snigdha-OS/Snigdha-OS.github.io.git
synced 2025-09-05 20:26:43 +02:00
pages/
Directory
Pages represent views use for each specific route pattern. Every file in the pages/
directory represents a different route displaying its content.
To use pages, create pages/index.vue file and add <NuxtPage />
component to the app.vue (or remove app.vue for default entry). You can now create more pages and their corresponding routes by adding new files in the pages/
directory.
pages/index.vue
<template>
<div>
<h1>Welcome to the homepage</h1>
<AppAlert>
This is an auto-imported component
</AppAlert>
</div>
</template>
pages/about.vue
<template>
<section>
<p>This page will be displayed at the /about route.</p>
</section>
</template>