Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
header修改v0.1
master1lan
committed
Jan 13, 2023
1 parent
52d6a07
commit 1eaab84
Showing
20 changed files
with
249 additions
and
146 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import React from "react"; | ||
import { ThemeProvider, createTheme } from "@mui/material/styles"; | ||
import { ReactChildrenType } from "./type"; | ||
const theme = createTheme({ | ||
typography: { | ||
fontFamily: "Proxima Soft", | ||
}, | ||
}); | ||
|
||
const MUIThemePreview = ({ children }: ReactChildrenType) => { | ||
return <ThemeProvider theme={theme}>{children}</ThemeProvider>; | ||
}; | ||
|
||
export default MUIThemePreview; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { Link } from "@mui/material"; | ||
|
||
export default function LOGO() { | ||
return ( | ||
<div | ||
style={{ | ||
display: "flex", | ||
alignItems: "center", | ||
}} | ||
> | ||
<Link href='/' underline='none' color='inherit'> | ||
<span>EOEfans</span> | ||
</Link> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { Avatar } from "@mui/material"; | ||
|
||
export default function RightSide() { | ||
return ( | ||
<Avatar | ||
sx={{ | ||
marginLeft: "auto", | ||
}} | ||
> | ||
Data | ||
</Avatar> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { Button, ButtonGroup, Stack } from "@mui/material"; | ||
import { useMemo } from "react"; | ||
import { NavLink } from "react-router-dom"; | ||
import { useRouterList } from "./tools"; | ||
|
||
export default function RouterNav() { | ||
const routerlists = useRouterList(), | ||
routerRes = useMemo( | ||
() => | ||
routerlists.map((item) => ( | ||
<NavLink to={item.pathname} key={item.id}> | ||
<Button>{item.name}</Button> | ||
</NavLink> | ||
)), | ||
[routerlists] | ||
); | ||
return ( | ||
<Stack direction='row'> | ||
<ButtonGroup | ||
variant='text' | ||
sx={{ | ||
alignItems: "center", | ||
}} | ||
> | ||
{routerRes} | ||
</ButtonGroup> | ||
</Stack> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { NavRouterItemType, router_nav_list } from "../nav/tools"; | ||
import { useState } from "react"; | ||
export function useRouterList(): NavRouterItemType[] { | ||
const [list, _] = useState<NavRouterItemType[]>(router_nav_list); | ||
return list; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters