-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
141 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import React from 'react'; | ||
|
||
import styles from './MyComponent.module.less'; | ||
|
||
export const MyComponent = () => { | ||
return ( | ||
<div className={styles.wrapper}> | ||
<div className={styles.div}> | ||
<div className={styles.pZvKR}> | ||
<div className={styles.zTgKe}> | ||
<span className={styles.span}>数据总览</span> | ||
<span className={styles.qJDnm}>你的每一份成长都记录</span> | ||
</div> | ||
<div className={styles.kBVol}>近 1 年</div> | ||
</div> | ||
<div className={styles.xEqUH}> | ||
<div className={styles.xYuOG}> | ||
<span className={styles.vHYtO}>创作天数</span> | ||
<span className={styles.fCtBp}>160</span> | ||
</div> | ||
<div className={styles.xYuOG}> | ||
<span className={styles.vHYtO}>创作字数</span> | ||
<span className={styles.fCtBp}>14,385</span> | ||
</div> | ||
<div className={styles.oSVrf}> | ||
<span className={styles.jlPlf}>内容更新</span> | ||
<span className={styles.aAiBx}>1,807</span> | ||
</div> | ||
<div className={styles.oSVrf}> | ||
<span className={styles.jlPlf}>获得点赞</span> | ||
<span className={styles.aAiBx}>413</span> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
.wrapper { | ||
background-color: #ffffff; | ||
width: 500px; | ||
|
||
.div { | ||
display: flex; | ||
flex-direction: column; | ||
width: 100%; | ||
|
||
.pZvKR { | ||
display: flex; | ||
flex-direction: row; | ||
align-items: center; | ||
border-radius: 4px; | ||
background-color: #fafafa; | ||
margin-bottom: 11px; | ||
padding: 2px 10px 2px 10px; | ||
|
||
.zTgKe { | ||
display: flex; | ||
flex-direction: column; | ||
flex: 1; | ||
margin-left: 10px; | ||
|
||
.span { | ||
color: #333333; | ||
font-size: 12px; | ||
} | ||
|
||
.qJDnm { | ||
color: #585a5a; | ||
font-size: 11px; | ||
} | ||
} | ||
|
||
.kBVol { | ||
display: inline-flex; | ||
flex-direction: row; | ||
align-items: center; | ||
font-size: 10px; | ||
border-radius: 5px; | ||
border: solid 1px #e7e9e8; | ||
margin-left: 16px; | ||
padding: 4px 10px 4px 10px; | ||
} | ||
} | ||
|
||
.xEqUH { | ||
display: flex; | ||
flex-direction: row; | ||
align-items: center; | ||
border-radius: 4px; | ||
background-color: #fafafa; | ||
margin-bottom: 11px; | ||
padding: 2px 10px 2px 10px; | ||
|
||
.xYuOG { | ||
display: flex; | ||
flex-direction: column; | ||
flex: 1; | ||
margin-left: 10px; | ||
|
||
.vHYtO { | ||
color: #333333; | ||
font-size: 12px; | ||
} | ||
|
||
.fCtBp { | ||
color: #585a5a; | ||
font-size: 11px; | ||
} | ||
} | ||
|
||
.oSVrf { | ||
display: flex; | ||
flex-direction: column; | ||
flex: 1; | ||
margin-left: 10px; | ||
|
||
.jlPlf { | ||
color: #585a5a; | ||
font-size: 12px; | ||
} | ||
|
||
.aAiBx { | ||
color: #8b8f8d; | ||
font-size: 11px; | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.myComponent { | ||
border: 1px solid black; | ||
padding: 20px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters