Files
Snigdha-OS.github.io/pages
Eshan Roy (Eshanized) 74996af65d 🛠️ build(nuxt): shift astro to nuxt
2024-06-16 23:40:11 +05:30
..
2024-06-16 23:40:11 +05:30
2024-06-16 23:40:11 +05:30
2024-06-16 23:40:11 +05:30
2024-06-16 23:40:11 +05:30
2024-06-16 23:40:11 +05:30

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>