This commit is contained in:
2022-03-01 10:22:10 +08:00
parent 5d479d322b
commit fc35a1f0c8
14 changed files with 9322 additions and 3 deletions
+5 -1
View File
@@ -1,5 +1,7 @@
import { Button } from "@mui/material";
import style from "./style.module.css";
import { Link } from "react-router-dom";
import React from "react";
interface Props {
isSignIn: boolean;
@@ -12,7 +14,9 @@ export function HomeMenu(props: Props) {
<div className={props.className}>
<Button className={style.text}></Button>
{props.isSignIn ? (
<Button className={style.text}></Button>
<Link className={style.text} to={`/dashboard`}>
<Button className={style.text}></Button>
</Link>
) : (
<Button className={style.text} onClick={props.onOpenSignIn}>
/
+1
View File
@@ -1,3 +1,4 @@
.text {
color: #252525 !important;
text-decoration: none;
}
+23 -1
View File
@@ -1,5 +1,27 @@
import style from "./style.module.css";
import { Link } from "react-router-dom";
function Login() {
return <div></div>;
return (
<div
style={{
width: "100vw",
height: "100vh",
display: "flex",
alignItems: "center",
}}
>
<div className={style.menu}>
<li></li>
<li></li>
<li></li>
<li></li>
<Link to={`/`}>
<div className={style.logo}>LOGO</div>
</Link>
</div>
<div></div>
</div>
);
}
export default Login;
+34
View File
@@ -0,0 +1,34 @@
.menu {
display: flex;
flex-direction: column;
list-style: none;
width: 350px;
height: 100vh;
background-color: #f2f2f2;
align-items: center;
justify-content: center;
}
.menu li {
width: 350px;
line-height: 100px;
text-align: center;
border-top: #949494 1px solid;
cursor: pointer;
}
.menu > li:first-child {
border-top: none;
}
.menu > li:hover {
background-color: #e6e6e6;
}
.logo {
position: absolute;
top: 20px;
left: 20px;
font-size: 48px;
cursor: pointer;
}