mirror of
https://github.com/PlayEdu/backend
synced 2025-12-23 07:09:27 +08:00
初步框架
This commit is contained in:
8
src/pages/home/HomePage.module.css
Normal file
8
src/pages/home/HomePage.module.css
Normal file
@@ -0,0 +1,8 @@
|
||||
.page-content {
|
||||
width: 1200px;
|
||||
min-height: calc(100vh - 173px);
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
margin-top: 30px;
|
||||
margin-bottom: 100px;
|
||||
}
|
||||
13
src/pages/home/HomePage.tsx
Normal file
13
src/pages/home/HomePage.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
import React from "react";
|
||||
import styles from "./HomePage.module.css";
|
||||
import { Header, Footer } from "../../compenents";
|
||||
|
||||
export const HomePage: React.FC = () => {
|
||||
return (
|
||||
<>
|
||||
<Header></Header>
|
||||
<div className={styles["page-content"]}>主页</div>
|
||||
<Footer></Footer>
|
||||
</>
|
||||
);
|
||||
};
|
||||
1
src/pages/home/index.ts
Normal file
1
src/pages/home/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export * from "./HomePage";
|
||||
2
src/pages/index.ts
Normal file
2
src/pages/index.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
export * from "./home";
|
||||
export * from "./login";
|
||||
0
src/pages/login/Login.module.css
Normal file
0
src/pages/login/Login.module.css
Normal file
6
src/pages/login/Login.tsx
Normal file
6
src/pages/login/Login.tsx
Normal file
@@ -0,0 +1,6 @@
|
||||
import React from "react";
|
||||
import styles from "./Login.module.css";
|
||||
|
||||
export const Login: React.FC = () => {
|
||||
return <h1>登录页面</h1>;
|
||||
};
|
||||
1
src/pages/login/index.ts
Normal file
1
src/pages/login/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export * from "./Login";
|
||||
Reference in New Issue
Block a user