ant-design/components/typography/demo/componentToken-debug.tsx

108 lines
4.3 KiB
TypeScript
Raw Normal View History

import React from 'react';
import { ConfigProvider, Divider, Typography } from 'antd';
const { Title, Paragraph, Text, Link } = Typography;
2023-06-06 20:48:48 +08:00
const blockContent = `AntV 是蚂蚁集团全新一代数据可视化解决方案致力于提供一套简单方便、专业可靠、不限可能的数据可视化最佳实践。得益于丰富的业务场景和用户需求挑战AntV 经历多年积累与不断打磨,已支撑整个阿里集团内外 20000+ 业务系统,通过了日均千万级 UV 产品的严苛考验。
`;
const App: React.FC = () => (
<ConfigProvider
theme={{
components: {
Typography: {
fontWeightStrong: 700,
titleMarginTop: '2.4em',
titleMarginBottom: '1em',
},
},
}}
>
<Typography>
<Title>Introduction</Title>
<Paragraph>
In the process of internal desktop applications development, many different design specs and
implementations would be involved, which might cause designers and developers difficulties
and duplication and reduce the efficiency of development.
</Paragraph>
<Paragraph>
After massive project practice and summaries, Ant Design, a design language for background
applications, is refined by Ant UED Team, which aims to{' '}
<Text strong>
uniform the user interface specs for internal background projects, lower the unnecessary
cost of design differences and implementation and liberate the resources of design and
front-end development
</Text>
.
</Paragraph>
<Title level={2}>Guidelines and Resources</Title>
<Paragraph>
We supply a series of design principles, practical patterns and high quality design
resources (<Text code>Sketch</Text> and <Text code>Axure</Text>), to help people create
their product prototypes beautifully and efficiently.
</Paragraph>
<Paragraph>
<ul>
<li>
<Link href="/docs/spec/proximity">Principles</Link>
</li>
<li>
<Link href="/docs/spec/overview">Patterns</Link>
</li>
<li>
<Link href="/docs/resources">Resource Download</Link>
</li>
</ul>
</Paragraph>
<Paragraph>
Press <Text keyboard>Esc</Text> to exit...
</Paragraph>
<Divider />
<Title></Title>
<Paragraph>
</Paragraph>
<Paragraph>
2023-06-06 20:48:48 +08:00
Ant Design<Text mark></Text>
<Text strong></Text>
</Paragraph>
<Title level={2}></Title>
<Paragraph>
<Text code>Sketch</Text>
<Text code>Axure</Text>
</Paragraph>
<Paragraph>
<ul>
<li>
<Link href="/docs/spec/proximity-cn"></Link>
</li>
<li>
<Link href="/docs/spec/overview-cn"></Link>
</li>
<li>
<Link href="/docs/resources-cn"></Link>
</li>
</ul>
</Paragraph>
<Paragraph>
<blockquote>{blockContent}</blockquote>
<pre>{blockContent}</pre>
</Paragraph>
<Paragraph>
<Text keyboard>Esc</Text>退
</Paragraph>
</Typography>
</ConfigProvider>
);
export default App;