feat:导航栏

This commit is contained in:
hackrobot
2024-10-05 12:53:50 +08:00
parent 751707087c
commit 2a617b35b7
2 changed files with 35 additions and 1 deletions

View File

@@ -193,7 +193,27 @@ const Index = () => {
return (
<View className="Index">
<View className="header">导航/图书/好物/活动/工具箱/关于我们</View>
<View className="header">
<View className="headerTag">
{["导航", "图书", "好物", "活动", "工具箱", "关于我们"].map(
(item, index) => {
return (
<AtTag
className="AtTag"
name={item}
type="primary"
circle
size="small"
active={true}
onClick={() => {}}
>
{item}
</AtTag>
);
}
)}
</View>
</View>
<View className="up">
<View className="upText">
📣数字游民CNA,是针对中国用户的城市数据统计

View File

@@ -4,6 +4,20 @@
display: flex;
flex-direction: column;
background-color: #fafafa;
.header{
.headerTag{
// height: 100%;
display: flex;
flex-direction: row;
align-items: center;
// justify-content: space-between;
.AtTag{
margin-right: 10px;
}
}
}
.up {
width: 100%;
min-height: 100px;