footer置底

This commit is contained in:
禺狨 2023-03-29 10:06:43 +08:00
parent c5aa3488cb
commit 1ef85a71e8
5 changed files with 80 additions and 72 deletions

View File

@ -1,5 +1,6 @@
#root { #root {
width: 100%; width: 100%;
min-height: 900px;
margin: 0 auto; margin: 0 auto;
text-align: center; text-align: center;
background-color: #ffffff; background-color: #ffffff;

View File

@ -223,7 +223,7 @@ h1 {
.container { .container {
width: 1200px; width: 1200px;
min-height: 671px; min-height: calc(100vh - 260px);
height: auto; height: auto;
margin: 0 auto; margin: 0 auto;
} }

View File

@ -19,6 +19,9 @@
color: #ff4d4f; color: #ff4d4f;
} }
} }
.complete {
color: #ff4d4f;
}
} }
.left-item { .left-item {

View File

@ -1,6 +1,6 @@
.content { .content {
width: 1200px; width: 1200px;
min-height: 581px; min-height: calc(100vh - 350px);
height: auto; height: auto;
margin: 0 auto; margin: 0 auto;
box-sizing: border-box; box-sizing: border-box;

View File

@ -45,6 +45,8 @@ const LatestLearnPage = () => {
{!loading && {!loading &&
courses.length > 0 && courses.length > 0 &&
courses.map((item: any) => ( courses.map((item: any) => (
<>
{item.course && (
<div <div
key={item.course.id} key={item.course.id}
className={styles["item"]} className={styles["item"]}
@ -118,6 +120,8 @@ const LatestLearnPage = () => {
)} )}
</div> </div>
</div> </div>
)}
</>
))} ))}
</div> </div>
<div className={styles["extra"]}>{systemConfig.pcIndexFooterMsg}</div> <div className={styles["extra"]}>{systemConfig.pcIndexFooterMsg}</div>