mirror of
https://github.com/gnmyt/LicenseAPI.git
synced 2026-01-11 10:41:46 +00:00
Create Logo login component
This commit is contained in:
15
dashboard/src/states/Login/components/Logo/Logo.jsx
Normal file
15
dashboard/src/states/Login/components/Logo/Logo.jsx
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
import {Stack, Typography, useTheme} from "@mui/material";
|
||||||
|
import DarkLogo from "@/common/assets/images/logo/small-dark.webp";
|
||||||
|
import LightLogo from "@/common/assets/images/logo/small-light.webp";
|
||||||
|
|
||||||
|
export const Logo = () => {
|
||||||
|
const theme = useTheme();
|
||||||
|
const logo = theme.palette.mode === "dark" ? DarkLogo : LightLogo;
|
||||||
|
|
||||||
|
return (
|
||||||
|
<Stack direction="row" alignItems="center" gap={2}>
|
||||||
|
<img src={logo} alt="Logo" style={{width: "3rem"}}/>
|
||||||
|
<Typography variant="h4"><span style={{fontWeight: "bold"}}>License</span>API</Typography>
|
||||||
|
</Stack>
|
||||||
|
)
|
||||||
|
}
|
||||||
1
dashboard/src/states/Login/components/Logo/index.js
Normal file
1
dashboard/src/states/Login/components/Logo/index.js
Normal file
@ -0,0 +1 @@
|
|||||||
|
export {Logo as default} from "./Logo.jsx";
|
||||||
Reference in New Issue
Block a user