首页头部初步

This commit is contained in:
禺狨 2023-03-23 18:20:42 +08:00
parent d72e35ed67
commit 3d38212ed9
7 changed files with 71 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 849 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

View File

@ -20,6 +20,8 @@ export const Header: React.FC = () => {
navigate("/login");
} else if (key === "change_password") {
navigate("/change-password");
} else if (key === "user_center") {
navigate("/user-center");
}
};

View File

@ -0,0 +1,44 @@
.top-cont {
width: 1200px;
height: auto;
margin: 0 auto;
margin-top: 50px;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
.top-item {
width: 588px;
height: 132px;
background: #ffffff;
box-shadow: 0px 4px 16px 4px rgba(0, 0, 0, 0.04);
border-radius: 12px;
box-sizing: border-box;
padding: 24px;
.title {
width: 100%;
height: 36px;
display: flex;
align-items: center;
.icon {
width: 36px;
height: 36px;
margin-right: 16px;
}
span {
font-size: 20px;
font-weight: 600;
color: rgba(0, 0, 0, 0.88);
line-height: 36px;
}
}
.info {
margin-top: 24px;
width: 100%;
height: 24px;
display: flex;
align-items: center;
}
}
}

View File

@ -1,5 +1,29 @@
import styles from "./index.module.scss";
import myLesoon from "../../assets/images/commen/icon-mylesoon.png";
import studyTime from "../../assets/images/commen/icon-studytime.png";
const IndexPage = () => {
return <></>;
return (
<>
<div className={styles["top-cont"]}>
<div className={styles["top-item"]}>
<div className={styles["title"]}>
<img className={styles["icon"]} src={myLesoon} />
<span></span>
</div>
<div className={styles["info"]}></div>
</div>
<div className={styles["top-item"]}>
<div className={styles["title"]}>
<img className={styles["icon"]} src={studyTime} />
<span></span>
</div>
<div className={styles["info"]}></div>
</div>
</div>
</>
);
};
export default IndexPage;