|
1 | | -'use client' |
2 | | - |
3 | | -import { AppIcon } from 'tdesign-icons-react' |
4 | | -import { Button, Card, Space } from 'tdesign-react' |
5 | | - |
6 | | -const sections = [ |
7 | | - { |
8 | | - title: 'Starter stack', |
9 | | - description: 'Built with React, TypeScript, Next.js, and TDesign desktop components.', |
10 | | - }, |
11 | | - { |
12 | | - title: 'Routing and rendering', |
13 | | - description: 'Use the App Router with server layouts and client UI where needed.', |
14 | | - }, |
15 | | - { |
16 | | - title: 'Next step', |
17 | | - description: 'Open app/page.tsx and start shaping __PROJECTNAME__.', |
18 | | - }, |
19 | | -] |
| 1 | +import ClientPage from './client-page' |
20 | 2 |
|
21 | 3 | export default function Page() { |
22 | | - return ( |
23 | | - <main className="page-shell"> |
24 | | - <section className="hero-grid"> |
25 | | - <Card className="hero-card" bordered={false}> |
26 | | - <Space direction="vertical" size={20}> |
27 | | - <p className="eyebrow"> |
28 | | - <AppIcon style={{ marginRight: '6px', verticalAlign: 'middle' }} /> |
29 | | - __TEMPLATENAME__ |
30 | | - </p> |
31 | | - <div className="hero-copy"> |
32 | | - <h1 className="hero-title">Create TDesign</h1> |
33 | | - <p className="hero-intro"> |
34 | | - Your __PROJECTNAME__ project is ready. Start building with React, |
35 | | - TypeScript, Next.js, and TDesign. |
36 | | - </p> |
37 | | - </div> |
38 | | - <div className="action-row"> |
39 | | - <Button theme="primary">Run pnpm dev</Button> |
40 | | - <Button variant="outline">Open app/page.tsx</Button> |
41 | | - </div> |
42 | | - </Space> |
43 | | - </Card> |
44 | | - |
45 | | - <Card className="panel-card"> |
46 | | - <div className="section-block"> |
47 | | - <p className="section-heading">Getting started</p> |
48 | | - <div className="section-list"> |
49 | | - {sections.map((item) => ( |
50 | | - <div key={item.title} className="section-row"> |
51 | | - <span className="section-row-title">{item.title}</span> |
52 | | - <p className="section-row-description">{item.description}</p> |
53 | | - </div> |
54 | | - ))} |
55 | | - </div> |
56 | | - </div> |
57 | | - </Card> |
58 | | - </section> |
59 | | - </main> |
60 | | - ) |
| 4 | + return <ClientPage /> |
61 | 5 | } |
0 commit comments