Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xiaomai-cloud-class-web
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiaomai-cloud-class
xiaomai-cloud-class-web
Commits
67f9a138
Commit
67f9a138
authored
May 24, 2021
by
zhangleyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:调整首页的样式
parent
ed837ed7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
1 deletions
+27
-1
src/modules/home/Home.jsx
+4
-0
src/modules/home/Home.less
+23
-1
No files found.
src/modules/home/Home.jsx
View file @
67f9a138
...
...
@@ -261,6 +261,7 @@ class Home extends React.Component {
};
return
(
<
div
className=
"home-page"
>
<
div
className=
"data-wrap"
>
<
div
className=
"home-title"
>
数据概况
</
div
>
<
div
className=
"data-box"
>
<
div
className=
"data-item"
>
...
...
@@ -360,6 +361,8 @@ class Home extends React.Component {
</
div
>
</
div
>
</
div
>
</
div
>
<
div
className=
"study-wrap"
>
<
div
className=
"home-title"
>
学习概况
</
div
>
<
div
className=
"study-box"
>
<
div
className=
"study-item"
>
...
...
@@ -501,6 +504,7 @@ class Home extends React.Component {
</
div
>
</
div
>
</
div
>
</
div
>
<
div
className=
"study-chart"
>
<
div
className=
"study-title"
>
学习人数与时长
<
div
className=
"study-select"
>
...
...
src/modules/home/Home.less
View file @
67f9a138
...
...
@@ -9,12 +9,28 @@
.home-title {
height: 44px;
line-height: 44px;
color: #999;
color: #333;
padding-left:28px;
font-size:16px;
font-weight:bold;
position: relative;
&::before{
width:4px;
height:12px;
content:'';
background-image: linear-gradient(#2966FF 83.5%, #0ACCA4 16.5%);
display:inline-block;
position: absolute;
left:16px;
top:16px;
}
}
@font-face {
font-family: 'number';
src: url('https://image.xiaomaiketang.com/xm/n2sADd2jY6.TTF');
}
.data-wrap{
background: #FFF;
.data-box {
display: flex;
justify-content: space-between;
...
...
@@ -108,6 +124,10 @@
}
}
}
}
.study-wrap{
background: #FFF;
margin-top:16px;
.study-box {
display: flex;
justify-content: space-between;
...
...
@@ -285,6 +305,8 @@
}
}
}
}
.study-chart {
width: 100%;
height: 432px;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment