✨ feat(我的): 新增我的页面UI

This commit is contained in:
xuan
2022-09-08 12:05:33 +08:00
parent 7b9226b017
commit 6197754310
7 changed files with 86 additions and 15 deletions
@@ -3,4 +3,9 @@
flex-flow: column nowrap;
justify-content: center;
align-items: center;
&-name{
font-size: 28px;
color: #333;
margin-top: 16px;
}
}
+1 -1
View File
@@ -19,7 +19,7 @@ const IconCard: FC<PropsType> = (props) => {
return (
<View className={styles.iconCard} onClick={handleClick}>
<IconFont name={iconName} size={72}></IconFont>
<View>{title}</View>
<View className={styles['iconCard-name']}>{title}</View>
</View>
)
}
+6 -1
View File
@@ -11,6 +11,7 @@ interface PropsType {
circle?: boolean
children?: ReactNode
customStyle?: React.CSSProperties
}
const LayoutBlock: FC<PropsType> = (props) => {
@@ -24,6 +25,10 @@ const LayoutBlock: FC<PropsType> = (props) => {
return classObject
}
return <View className={classnames(styles.layoutBlock, getClassName())}>{children}</View>
return <View className={classnames(styles.layoutBlock, getClassName())}>
{children}
</View>
}
export default LayoutBlock
+1 -1
View File
@@ -16,7 +16,7 @@
height: 30px;
}
&--circle{
border-radius: 8PX;
border-radius: 10px;
}
&--danger {
background-color: $color_danger;