feat(chapter3): replicate styled Next.js app setup
Add the App Router page group, nested layouts, Tailwind and shadcn styling, shared header components, local fonts and backgrounds, Ant Design demo support, and compatible lint scripts and dependencies.
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
// src/app/(pages)/page.tsx
|
||||
import { FC } from 'react';
|
||||
|
||||
import { ArrowBigRight } from 'lucide-react';
|
||||
import Link from 'next/link';
|
||||
|
||||
import $styles from './page.module.css';
|
||||
import { Button } from '../_components/shadcn/ui/button';
|
||||
|
||||
const App: FC = () => (
|
||||
<main className={$styles.container}>
|
||||
<div className={$styles.block}>
|
||||
欢迎来到3R教室,这是Nextjs课程的开始
|
||||
<Button asChild>
|
||||
<Link href="https://3rcd.com" target="_blank">
|
||||
<ArrowBigRight /> 查看官网
|
||||
</Link>
|
||||
</Button>
|
||||
</div>
|
||||
</main>
|
||||
);
|
||||
export default App;
|
||||
Reference in New Issue
Block a user