add route

Signed-off-by: nurRiyad <asadnurriyad@gmail.com>
This commit is contained in:
nurRiyad
2022-12-07 23:54:09 +06:00
parent bab42538c6
commit d39bbbd088
11 changed files with 1151 additions and 9 deletions

View File

@@ -1,6 +1,7 @@
<template> <template>
<div> <div>
<NuxtLayout> <NuxtLayout>
<NuxtLoadingIndicator />
<NuxtPage /> <NuxtPage />
</NuxtLayout> </NuxtLayout>
</div> </div>

5
components/FooterCom.vue Normal file
View File

@@ -0,0 +1,5 @@
<template>
<div>
<h1>Footer Component</h1>
</div>
</template>

5
components/NavbarCom.vue Normal file
View File

@@ -0,0 +1,5 @@
<template>
<div>
<h1>Navbar Component</h1>
</div>
</template>

View File

@@ -1,6 +1,7 @@
<template> <template>
<div> <div>
<h1>This message is from layout</h1> <navbar-com />
<slot /> <slot />
<footer-com />
</div> </div>
</template> </template>

View File

@@ -3,5 +3,5 @@ export default defineNuxtConfig({
typescript: { typescript: {
strict: true, strict: true,
}, },
modules: ["@nuxtjs/tailwindcss"], modules: ["@nuxtjs/tailwindcss", "@nuxt/content"],
}); });

View File

@@ -8,8 +8,9 @@
"postinstall": "nuxt prepare" "postinstall": "nuxt prepare"
}, },
"devDependencies": { "devDependencies": {
"@nuxt/content": "^2.2.2",
"@nuxtjs/tailwindcss": "^6.1.3",
"nuxt": "3.0.0", "nuxt": "3.0.0",
"prettier": "^2.8.0", "prettier": "^2.8.0"
"@nuxtjs/tailwindcss": "^6.1.3"
} }
} }

View File

@@ -0,0 +1,8 @@
<template>
<div>
<h1 class="text-5xl">
post name {{ $route.params.post }} of topic
{{ $route.params.topics }} will be here
</h1>
</div>
</template>

7
pages/[topics]/index.vue Normal file
View File

@@ -0,0 +1,7 @@
<template>
<div>
<h1 class="text-5xl">
All the post related to {{ $route.params.topics }} will be here
</h1>
</div>
</template>

5
pages/category.vue Normal file
View File

@@ -0,0 +1,5 @@
<template>
<div>
<h1 class="text-5xl">All the topic will be here</h1>
</div>
</template>

5
pages/latest.vue Normal file
View File

@@ -0,0 +1,5 @@
<template>
<div>
<p class="text-5xl">Latest Page</p>
</div>
</template>

1114
yarn.lock

File diff suppressed because it is too large Load Diff