login page add menubar
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
import { Box, Container, Grid, Paper } from "@mui/material";
|
import { Box, Container, Grid, Paper, AppBar, Toolbar, IconButton, Typography, Button } from "@mui/material";
|
||||||
|
import MenuIcon from "@mui/icons-material/Menu";
|
||||||
import { Outlet, useNavigation } from "react-router-dom";
|
import { Outlet, useNavigation } from "react-router-dom";
|
||||||
import { useAppDispatch, useAppSelector } from "../../redux/hooks.ts";
|
import { useAppDispatch, useAppSelector } from "../../redux/hooks.ts";
|
||||||
import AutoHeight from "../Common/AutoHeight.tsx";
|
import AutoHeight from "../Common/AutoHeight.tsx";
|
||||||
@@ -40,6 +41,31 @@ const HeadlessFrame = () => {
|
|||||||
overflow: "auto",
|
overflow: "auto",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
<Box sx={{ flexGrow: 1 }}>
|
||||||
|
<AppBar position="static">
|
||||||
|
<Toolbar>
|
||||||
|
{/* <IconButton
|
||||||
|
size="large"
|
||||||
|
edge="start"
|
||||||
|
color="inherit"
|
||||||
|
aria-label="menu"
|
||||||
|
sx={{ mr: 2 }}
|
||||||
|
>
|
||||||
|
<MenuIcon />
|
||||||
|
</IconButton> */}
|
||||||
|
{/* <Typography variant="h6" component="div" sx={{ flexGrow: 1 }}>
|
||||||
|
News
|
||||||
|
</Typography> */}
|
||||||
|
<Logo
|
||||||
|
sx={{
|
||||||
|
maxWidth: "40%",
|
||||||
|
maxHeight: "40px",
|
||||||
|
mb: 2,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</Toolbar>
|
||||||
|
</AppBar>
|
||||||
|
</Box>
|
||||||
<Container maxWidth={"xs"}>
|
<Container maxWidth={"xs"}>
|
||||||
<Grid
|
<Grid
|
||||||
container
|
container
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import { Box, BoxProps, Typography, useTheme } from "@mui/material";
|
import { Box, BoxProps, Typography, useTheme } from "@mui/material";
|
||||||
import LogoIcon from "./assets/logo.svg";
|
import Logo from "../Common/Logo";
|
||||||
import LogoIconDark from "./assets/logo_light.svg";
|
|
||||||
|
|
||||||
export interface PoweredByProps extends BoxProps {}
|
export interface PoweredByProps extends BoxProps {}
|
||||||
|
|
||||||
@@ -11,7 +10,6 @@ const PoweredBy = ({ ...rest }: PoweredByProps) => {
|
|||||||
<Box
|
<Box
|
||||||
component="a"
|
component="a"
|
||||||
marginBottom={2}
|
marginBottom={2}
|
||||||
href="https://cloudreve.org"
|
|
||||||
target="_blank"
|
target="_blank"
|
||||||
sx={{
|
sx={{
|
||||||
width: "100%",
|
width: "100%",
|
||||||
@@ -38,16 +36,8 @@ const PoweredBy = ({ ...rest }: PoweredByProps) => {
|
|||||||
}}
|
}}
|
||||||
fontWeight={500}
|
fontWeight={500}
|
||||||
>
|
>
|
||||||
Powered by
|
Powered by Miaostars
|
||||||
</Typography>
|
</Typography>
|
||||||
<Box
|
|
||||||
component="img"
|
|
||||||
alt="Cloudreve"
|
|
||||||
sx={{
|
|
||||||
height: 20,
|
|
||||||
}}
|
|
||||||
src={theme.palette.mode === "dark" ? LogoIconDark : LogoIcon}
|
|
||||||
/>
|
|
||||||
</Box>
|
</Box>
|
||||||
</Box>
|
</Box>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user