mirror of
https://github.com/PlayEdu/frontend.git
synced 2025-06-08 23:10:47 +08:00
首页头部初步
This commit is contained in:
parent
d72e35ed67
commit
3d38212ed9
BIN
src/assets/images/commen/icon-medal.png
Normal file
BIN
src/assets/images/commen/icon-medal.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.7 KiB |
BIN
src/assets/images/commen/icon-mylesoon.png
Normal file
BIN
src/assets/images/commen/icon-mylesoon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.5 KiB |
BIN
src/assets/images/commen/icon-route.png
Normal file
BIN
src/assets/images/commen/icon-route.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 849 B |
BIN
src/assets/images/commen/icon-studytime.png
Normal file
BIN
src/assets/images/commen/icon-studytime.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.0 KiB |
@ -20,6 +20,8 @@ export const Header: React.FC = () => {
|
|||||||
navigate("/login");
|
navigate("/login");
|
||||||
} else if (key === "change_password") {
|
} else if (key === "change_password") {
|
||||||
navigate("/change-password");
|
navigate("/change-password");
|
||||||
|
} else if (key === "user_center") {
|
||||||
|
navigate("/user-center");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -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 = () => {
|
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;
|
export default IndexPage;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user