setup tailwind & content
Signed-off-by: nurRiyad <asadnurriyad@gmail.com>
This commit is contained in:
22
.gitignore
vendored
22
.gitignore
vendored
@@ -1,17 +1,7 @@
|
||||
*.log
|
||||
nuxt.d.ts
|
||||
|
||||
# private config
|
||||
.env
|
||||
|
||||
# deps
|
||||
node_modules
|
||||
|
||||
# build or generate
|
||||
.nuxt
|
||||
dist
|
||||
# Nuxt dev/build outputs
|
||||
.output
|
||||
|
||||
# IDE
|
||||
.idea
|
||||
.vercel
|
||||
.nuxt
|
||||
# Node dependencies
|
||||
node_modules
|
||||
# System files
|
||||
*.log
|
||||
|
||||
4
app.vue
4
app.vue
@@ -1,5 +1,7 @@
|
||||
<template>
|
||||
<div>
|
||||
<NuxtWelcome />
|
||||
<NuxtLayout>
|
||||
<NuxtPage/>
|
||||
</NuxtLayout>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
3
components/page/footer.vue
Normal file
3
components/page/footer.vue
Normal file
@@ -0,0 +1,3 @@
|
||||
<template>
|
||||
<div>This is a page footer</div>
|
||||
</template>
|
||||
3
components/page/header.vue
Normal file
3
components/page/header.vue
Normal file
@@ -0,0 +1,3 @@
|
||||
<template>
|
||||
<div>This is a page header</div>
|
||||
</template>
|
||||
1
content/blogs/1. hello-world.md
Normal file
1
content/blogs/1. hello-world.md
Normal file
@@ -0,0 +1 @@
|
||||
# Hello world
|
||||
1
content/blogs/2. hello-man.md
Normal file
1
content/blogs/2. hello-man.md
Normal file
@@ -0,0 +1 @@
|
||||
# Hello man
|
||||
9
layouts/default.vue
Normal file
9
layouts/default.vue
Normal file
@@ -0,0 +1,9 @@
|
||||
<template>
|
||||
<div>
|
||||
<PageHeader/>
|
||||
<div class="h-full bg-slate-600">
|
||||
<slot />
|
||||
</div>
|
||||
<PageFooter/>
|
||||
</div>
|
||||
</template>
|
||||
@@ -1,4 +1,19 @@
|
||||
// https://nuxt.com/docs/api/configuration/nuxt-config
|
||||
export default defineNuxtConfig({
|
||||
|
||||
})
|
||||
app: {
|
||||
head: {
|
||||
charset: "utf-16",
|
||||
viewport: "width=device-width,initial-scale=1",
|
||||
title: "Elon's Blog",
|
||||
titleTemplate: "%s - Elon's Blog",
|
||||
meta: [{ name: "description", content: "Elon's awesome blog" }],
|
||||
},
|
||||
},
|
||||
|
||||
typescript: {
|
||||
strict: true,
|
||||
},
|
||||
|
||||
modules: ["@nuxt/content", "@nuxtjs/tailwindcss"],
|
||||
});
|
||||
|
||||
@@ -8,6 +8,8 @@
|
||||
"postinstall": "nuxt prepare"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@nuxt/content": "^2.3.0",
|
||||
"@nuxtjs/tailwindcss": "^6.1.3",
|
||||
"nuxt": "3.0.0"
|
||||
}
|
||||
}
|
||||
|
||||
5
pages/blogs/[blog].vue
Normal file
5
pages/blogs/[blog].vue
Normal file
@@ -0,0 +1,5 @@
|
||||
<template>
|
||||
<div>
|
||||
<ContentDoc/>
|
||||
</div>
|
||||
</template>
|
||||
5
pages/blogs/index.vue
Normal file
5
pages/blogs/index.vue
Normal file
@@ -0,0 +1,5 @@
|
||||
<template>
|
||||
<div>
|
||||
There will be all blogs
|
||||
</div>
|
||||
</template>
|
||||
5
pages/categories/[category].vue
Normal file
5
pages/categories/[category].vue
Normal file
@@ -0,0 +1,5 @@
|
||||
<template>
|
||||
<div>
|
||||
{{ $route.params }}
|
||||
</div>
|
||||
</template>
|
||||
3
pages/categories/index.vue
Normal file
3
pages/categories/index.vue
Normal file
@@ -0,0 +1,3 @@
|
||||
<template>
|
||||
<div>All categories will be here</div>
|
||||
</template>
|
||||
22
pages/index.vue
Normal file
22
pages/index.vue
Normal file
@@ -0,0 +1,22 @@
|
||||
<script lang="ts" setup>
|
||||
|
||||
|
||||
useHead({
|
||||
title: "Home",
|
||||
meta: [
|
||||
{
|
||||
name: "description",
|
||||
content: "Home",
|
||||
},
|
||||
],
|
||||
titleTemplate: "Elon's Blog - %s",
|
||||
});
|
||||
|
||||
</script>
|
||||
<template>
|
||||
<main>
|
||||
|
||||
<h1>This ia main section</h1>
|
||||
</main>
|
||||
</template>
|
||||
|
||||
0
tailwind.config.ts
Normal file
0
tailwind.config.ts
Normal file
Reference in New Issue
Block a user