Skip to content

Commit f9bb7c0

Browse files
committed
update docs
1 parent c132acb commit f9bb7c0

21 files changed

+3941
-1692
lines changed

docs/next-env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
/// <reference types="next/image-types/global" />
33

44
// NOTE: This file should not be edited
5-
// see https://nextjs.org/docs/basic-features/typescript for more information.
5+
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.

docs/next.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import nextra from 'nextra';
22

33
const withNextra = nextra({
44
theme: 'nextra-theme-docs',
5-
themeConfig: './src/theme.config.jsx',
5+
themeConfig: './theme.config.tsx',
66
latex: true,
77
search: {
88
codeblocks: false,

docs/package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,13 @@
88
"start": "next start"
99
},
1010
"dependencies": {
11-
"next": "^13.0.0",
12-
"nextra": "^2.0.0",
13-
"nextra-theme-docs": "^2.0.0",
11+
"next": "^15.1.1",
12+
"nextra": "^3.2.5",
13+
"nextra-theme-docs": "^3.2.5",
1414
"react": "^18.2.0",
1515
"react-dom": "^18.2.0"
16+
},
17+
"devDependencies": {
18+
"tailwindcss": "^3.4.17"
1619
}
1720
}

docs/src/components/index.tsx

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
export const IndexPage = () => (
2+
<div className="min-h-screen flex flex-col items-center justify-center relative overflow-hidden">
3+
{/* 渐变背景 */}
4+
<div className="absolute inset-0 bg-gradient-to-r from-orange-100 via-red-100 to-cyan-100">
5+
<div className="absolute inset-0 bg-[linear-gradient(to_right,#80808012_1px,transparent_1px),linear-gradient(to_bottom,#80808012_1px,transparent_1px)] bg-[size:24px_24px]"></div>
6+
</div>
7+
8+
{/* 内容区域 */}
9+
<div className="relative z-10 text-center px-4">
10+
<h1 className="text-4xl md:text-6xl font-bold mb-6 text-gray-900">
11+
React Native Awesome Slider
12+
</h1>
13+
<p className="text-md md:text-xl text-gray-600 max-w-2xl mx-auto mb-8">
14+
A performant React Native slider built with Reanimated 2 and React
15+
Native Gesture Handler.
16+
</p>
17+
<a
18+
href="/docs"
19+
className="inline-flex items-center px-6 py-3 text-base font-medium text-white bg-black rounded-full hover:bg-gray-800 transition-colors"
20+
>
21+
Read Docs
22+
</a>
23+
</div>
24+
</div>
25+
);

docs/src/input.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@tailwind base;
2+
@tailwind components;
3+
@tailwind utilities;

0 commit comments

Comments
 (0)