You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.3 KiB
49 lines
1.3 KiB
import { PageContainer } from '@ant-design/pro-components';
|
|
import { Alert, Card, Typography } from 'antd';
|
|
import React from 'react';
|
|
import { FormattedMessage, useIntl } from 'umi';
|
|
import styles from './Welcome.less';
|
|
|
|
const CodePreview: React.FC = ({ children }) => (
|
|
<pre className={styles.pre}>
|
|
<code>
|
|
<Typography.Text copyable>{children}</Typography.Text>
|
|
</code>
|
|
</pre>
|
|
);
|
|
|
|
const Welcome: React.FC = () => {
|
|
const intl = useIntl();
|
|
|
|
return (
|
|
<PageContainer>
|
|
<Card>
|
|
<Alert
|
|
message={intl.formatMessage({
|
|
id: 'pages.welcome.alertMessage',
|
|
defaultMessage: 'Faster and stronger heavy-duty components have been released.',
|
|
})}
|
|
type="success"
|
|
showIcon
|
|
banner
|
|
style={{
|
|
margin: -12,
|
|
marginBottom: 24,
|
|
}}
|
|
/>
|
|
<Typography.Text strong>
|
|
<a
|
|
href="https://procomponents.ant.design/components/table"
|
|
rel="noopener noreferrer"
|
|
target="__blank"
|
|
>
|
|
<FormattedMessage id="pages.welcome.link" defaultMessage="Welcome" />
|
|
</a>
|
|
</Typography.Text>
|
|
<CodePreview>yarn add @ant-design/pro-components</CodePreview>
|
|
</Card>
|
|
</PageContainer>
|
|
);
|
|
};
|
|
|
|
export default Welcome;
|
|
|