Skip to content

Commit 5d18e8e

Browse files
authored
Merge pull request #7 from phucbm/enhance-template-demo
Enhance template demo
2 parents 9ca72f2 + b4fd231 commit 5d18e8e

18 files changed

+1292
-85
lines changed

app/_meta.global.ts

Lines changed: 0 additions & 21 deletions
This file was deleted.

app/_meta.global.tsx

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
import {MetaRecord} from "nextra";
2+
3+
const DOCS_ITEMS: MetaRecord = {
4+
index: '',
5+
navigation: '',
6+
tips: '',
7+
}
8+
9+
10+
export default {
11+
index: {
12+
type: 'page',
13+
theme: {
14+
layout: 'full',
15+
toc: false,
16+
timestamp: false,
17+
}
18+
},
19+
docs: {
20+
type: 'page',
21+
title: 'Documentation',
22+
items: DOCS_ITEMS
23+
},
24+
article: {
25+
type: 'page',
26+
theme: {
27+
toc: false,
28+
typesetting: 'article',
29+
}
30+
},
31+
contact: {
32+
type: 'page',
33+
theme: {
34+
layout: 'full',
35+
toc: false,
36+
timestamp: false,
37+
}
38+
},
39+
nextraStarter: {
40+
title: 'Starter Templates',
41+
type: 'menu',
42+
items: {
43+
docs: {
44+
title: 'Docs Starter repo',
45+
href: 'https://github.com/phucbm/nextra-docs-starter',
46+
},
47+
blog: {
48+
title: 'Blog Starter repo',
49+
href: 'https://github.com/phucbm/nextra-blog-starter'
50+
}
51+
}
52+
},
53+
}

app/globals.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
@import "tailwindcss";
2+
3+
/* Optional: import Nextra theme styles */
4+
@import "nextra-theme-docs/style.css";
5+
6+
@variant dark (&:where(.dark *));

app/layout.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import {Footer, Layout, Navbar} from 'nextra-theme-docs'
22
import {Head} from 'nextra/components'
33
import {getPageMap} from 'nextra/page-map'
4-
import 'nextra-theme-docs/style.css'
4+
import './globals.css'
5+
import {Metadata} from "next";
56

6-
export const metadata = {
7+
export const metadata: Metadata = {
78
// Define your metadata here
89
// For more information on metadata API, see: https://nextjs.org/docs/app/building-your-application/optimizing/metadata
910
}

app/not-found.tsx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import Link from "next/link";
2+
3+
export default function NotFound() {
4+
return (
5+
<div className="min-h-[80vh] flex items-center justify-center">
6+
<div className="text-center">
7+
<h1 className="text-6xl font-bold mb-4">404</h1>
8+
<p className="text-xl mb-8">Page Not Found</p>
9+
<Link
10+
href="/"
11+
className="text-blue-600 hover:underline"
12+
>
13+
Go back home
14+
</Link>
15+
</div>
16+
</div>
17+
)
18+
}

content/about.mdx

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)