Commit ee5beccc authored by 成旭东's avatar 成旭东

fix

parent 999d7b9e
Pipeline #27885 failed with stage
in 1 minute 5 seconds
import { DefaultFooter, MenuDataItem, getMenuData, getPageTitle } from '@ant-design/pro-layout';
import { Helmet, HelmetProvider } from 'react-helmet-async';
import { Link, useIntl, ConnectProps, connect } from 'umi';
import { GithubOutlined } from '@ant-design/icons';
import React from 'react';
import SelectLang from '@/components/SelectLang';
// import SelectLang from '@/components/SelectLang';
import { ConnectState } from '@/models/connect';
import logo from '../assets/logo.svg';
import styles from './UserLayout.less';
......@@ -42,22 +43,44 @@ const UserLayout: React.FC<UserLayoutProps> = (props) => {
</Helmet>
<div className={styles.container}>
<div className={styles.lang}>
{/* <div className={styles.lang}>
<SelectLang />
</div>
<div className={styles.content}>
</div> */}
<div className={styles.content} style={{ marginTop: 30 }}>
<div className={styles.top}>
<div className={styles.header}>
<Link to="/">
<img alt="logo" className={styles.logo} src={logo} />
<span className={styles.title}>Ant Design</span>
<span className={styles.title}>成都房联后台</span>
</Link>
</div>
<div className={styles.desc}>Ant Design 是西湖区最具影响力的 Web 设计规范</div>
<div className={styles.desc}>成都房联小程序后台</div>
</div>
{children}
</div>
<DefaultFooter />
<DefaultFooter
copyright={`${new Date().getFullYear()} 杭州煎饼网络科技有限公司`}
links={[
{
key: 'Ant Design Pro',
title: 'Ant Design Pro',
href: 'https://pro.ant.design',
blankTarget: true,
},
{
key: 'github',
title: <GithubOutlined />,
href: 'https://github.com/ant-design/ant-design-pro',
blankTarget: true,
},
{
key: 'Ant Design',
title: 'Ant Design',
href: 'https://ant.design',
blankTarget: true,
},
]}
/>
</div>
</HelmetProvider>
);
......
@import '~antd/lib/style/themes/default.less';
.pre {
margin: 12px 0;
padding: 12px 20px;
background: @input-bg;
box-shadow: @card-shadow;
.title {
margin: 100px auto;
text-align: center;
font-size: 30px;
font-weight: bold;
color: #C29F6C;
}
import React from 'react';
import { PageHeaderWrapper } from '@ant-design/pro-layout';
import { Card, Typography, Alert } from 'antd';
import { Card } from 'antd';
import styles from './Welcome.less';
const CodePreview: React.FC<{}> = ({ children }) => (
<pre className={styles.pre}>
<code>
<Typography.Text copyable>{children}</Typography.Text>
</code>
</pre>
);
export default (): React.ReactNode => (
<PageHeaderWrapper>
<Card>
<Alert
message="umi ui 现已发布,点击右下角 umi 图标即可使用"
type="success"
showIcon
banner
style={{
margin: -12,
marginBottom: 24,
}}
/>
<Typography.Text strong>
<a target="_blank" rel="noopener noreferrer" href="https://pro.ant.design/docs/block">
基于 block 开发,快速构建标准页面
</a>
</Typography.Text>
<CodePreview> npm run ui</CodePreview>
<Typography.Text
strong
style={{
marginBottom: 12,
}}
>
<a
target="_blank"
rel="noopener noreferrer"
href="https://pro.ant.design/docs/available-script#npm-run-fetchblocks"
>
获取全部区块
</a>
</Typography.Text>
<CodePreview> npm run fetch:blocks</CodePreview>
<p className={styles.title}>成都房联小程序后台</p>
</Card>
<p
style={{
textAlign: 'center',
marginTop: 24,
}}
>
Want to add more pages? Please refer to{' '}
<a href="https://pro.ant.design/docs/block-cn" target="_blank" rel="noopener noreferrer">
use block
</a>
</p>
</PageHeaderWrapper>
);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment