mirror of
https://github.com/ershisan99/flashcards-docs.git
synced 2025-12-16 20:59:26 +00:00
15
pages/_meta.json
Normal file
15
pages/_meta.json
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"index": "Introduction",
|
||||
"another": "Another Page",
|
||||
"advanced": "Advanced (A Folder)",
|
||||
"about": {
|
||||
"title": "About",
|
||||
"type": "page"
|
||||
},
|
||||
"contact": {
|
||||
"title": "Contact ↗",
|
||||
"type": "page",
|
||||
"href": "https://twitter.com/shuding_",
|
||||
"newWindow": true
|
||||
}
|
||||
}
|
||||
3
pages/about.mdx
Normal file
3
pages/about.mdx
Normal file
@@ -0,0 +1,3 @@
|
||||
# About
|
||||
|
||||
This is the about page! This page is shown on the navbar.
|
||||
3
pages/advanced.mdx
Normal file
3
pages/advanced.mdx
Normal file
@@ -0,0 +1,3 @@
|
||||
# Advanced
|
||||
|
||||
This is the index page for the Advanced folder!
|
||||
3
pages/advanced/satori.mdx
Normal file
3
pages/advanced/satori.mdx
Normal file
@@ -0,0 +1,3 @@
|
||||
# Satori
|
||||
|
||||
Satori (悟り) is a Japanese Buddhist term for awakening, "comprehension; understanding".
|
||||
31
pages/another.mdx
Normal file
31
pages/another.mdx
Normal file
@@ -0,0 +1,31 @@
|
||||
# Another Page
|
||||
|
||||
```js filename="demo.js" {3} copy
|
||||
let a = 1;
|
||||
|
||||
console.log(a);
|
||||
```
|
||||
|
||||
## Component
|
||||
|
||||
import { useState } from 'react'
|
||||
|
||||
{/* Import CSS modules */}
|
||||
import styles from '../components/counters.module.css'
|
||||
|
||||
export const Counter = () => {
|
||||
const [count, setCount] = useState(0);
|
||||
return (
|
||||
<div>
|
||||
<button onClick={() => setCount(count + 1)} className={styles.counter}>Clicked {count} times</button>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
<Counter/>
|
||||
|
||||
## External Component
|
||||
|
||||
import Counters from '../components/counters'
|
||||
|
||||
<Counters />
|
||||
11
pages/index.mdx
Normal file
11
pages/index.mdx
Normal file
@@ -0,0 +1,11 @@
|
||||
# Introduction
|
||||
|
||||
Welcome to Nextra! This is a basic docs template. You can use it as a starting point for your own project :)
|
||||
|
||||
## What is Nextra?
|
||||
|
||||
A **simple**, **powerful** and **flexible** site generation framework with everything you love from Next.js.
|
||||
|
||||
## Documentation
|
||||
|
||||
The documentation is available at [https://nextra.site](https://nextra.site).
|
||||
Reference in New Issue
Block a user