💄 优化界面UI, 更新文档

This commit is contained in:
xujiang 2021-07-03 00:43:16 +08:00
parent adb446ed07
commit 1b6e96aba2
5 changed files with 35 additions and 19 deletions

View File

@ -156,7 +156,7 @@ or
cnpm run start
```
## How to run the downloaded code ?
## 如何运行下载后的代码? | How to run the downloaded code ?
1. 可以将压缩包解压直接放到服务器根目录, 访问根目录地址即可
2. `vscode`安装Live Server插件, 将下载的压缩包解压成文件夹, 用`vscode`打开, 点击Live Server即可, 注意要删除启动路径的`index.html`, 改成`/`

View File

@ -9,25 +9,30 @@
background: #fff;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
.logoArea {
width: 300px;
position: relative;
width: 258px;
.backBtn {
display: inline-block;
padding: 12px 10px;
margin-right: 22px;
padding: 12px 6px;
margin-right: 18px;
cursor: pointer;
}
.logo {
position: fixed;
display: inline-block;
width: 120px;
height: 35px;
border-radius: 3px;
overflow: hidden;
background: url(../../../../assets/logo.png) no-repeat;
background-size: contain;
line-height: 50px;
margin-top: 7px;
margin-left: -20px;
border-radius: 3px;
vertical-align: middle;
margin-top: -10px;
img {
width: 100%;
}
}
p {
position: absolute;
color: #888;
font-size: 12px;
transform: scale(0.9) translate(88px, -15px);
}
}
.controlArea {

View File

@ -19,7 +19,6 @@ import QRCode from 'qrcode.react';
import { saveAs } from 'file-saver';
import req from '@/utils/req';
import { uuid } from '@/utils/tool';
import Code from '@/assets/code.png';
import styles from './index.less';
import MyPopover from 'yh-react-popover';
@ -119,10 +118,14 @@ const HeaderComponent = memo((props: HeaderComponentProps) => {
const useTemplate = () => {
Modal.info({
title: '该功能正在升级,可以关注下方公众号实时查看动态',
title: '该功能属于企业版功能,可以关注下方公众号获取线上版登录码体验',
content: (
<div style={{ textAlign: 'center' }}>
<img src={Code} alt="趣谈前端" style={{ width: '180px' }} />
<img
src="http://cdn.dooring.cn/dr/qtqd_code.png"
alt="趣谈前端"
style={{ width: '180px' }}
/>
</div>
),
okText: '客官知道啦',
@ -217,7 +220,12 @@ const HeaderComponent = memo((props: HeaderComponentProps) => {
<div className={styles.backBtn} onClick={toBack}>
<ArrowLeftOutlined />
</div>
<div className={styles.logo}></div>
<div className={styles.logo} title="Dooring">
<a href="/">
<img src="http://cdn.dooring.cn/dr/logo.ff7fc6bb.png" alt="Dooring-强大的h5编辑器" />
</a>
</div>
<p>🚪!</p>
</div>
<div className={styles.controlArea}>
<Button type="primary" style={{ marginRight: '9px' }} onClick={useTemplate}>

View File

@ -70,7 +70,7 @@ const Home = () => {
</div>
<p style={{ display: 'inline-block', width: '520px', fontSize: '16px', lineHeight: '2' }}>
H5-Dooring是一款功能强大H5可视化页面配置解决方案
H5-Dooring是一款功能强大H5可视化页面配置解决方案
便H5落地页最佳实践 react为主
nodejs开发
</p>

View File

@ -1,7 +1,6 @@
import { Form, Input, Button, Popover } from 'antd';
import React from 'react';
import req from '@/utils/req';
import CodeImg from '@/assets/code.png';
import { history } from 'umi';
import styles from './index.less';
@ -22,7 +21,11 @@ const tailLayout = {
const content = (
<>
<div style={{ textAlign: 'center' }}>
<img style={{ width: '180px' }} src={CodeImg} alt="趣谈前端-徐小夕" />
<img
style={{ width: '180px' }}
src="http://cdn.dooring.cn/dr/qtqd_code.png"
alt="趣谈前端-徐小夕"
/>
</div>
<p style={{ width: '240px' }}>"登录码" </p>
</>