1
app.vue
1
app.vue
@@ -1,6 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<NuxtLayout>
|
<NuxtLayout>
|
||||||
|
<NuxtLoadingIndicator />
|
||||||
<NuxtPage />
|
<NuxtPage />
|
||||||
</NuxtLayout>
|
</NuxtLayout>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
5
components/FooterCom.vue
Normal file
5
components/FooterCom.vue
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<h1>Footer Component</h1>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
5
components/NavbarCom.vue
Normal file
5
components/NavbarCom.vue
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<h1>Navbar Component</h1>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
@@ -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>
|
||||||
|
|||||||
@@ -3,5 +3,5 @@ export default defineNuxtConfig({
|
|||||||
typescript: {
|
typescript: {
|
||||||
strict: true,
|
strict: true,
|
||||||
},
|
},
|
||||||
modules: ["@nuxtjs/tailwindcss"],
|
modules: ["@nuxtjs/tailwindcss", "@nuxt/content"],
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -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"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
8
pages/[topics]/[post].vue
Normal file
8
pages/[topics]/[post].vue
Normal 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
7
pages/[topics]/index.vue
Normal 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
5
pages/category.vue
Normal 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
5
pages/latest.vue
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<p class="text-5xl">Latest Page</p>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
Reference in New Issue
Block a user