Start adding an about page #52

This commit is contained in:
prayag17 committed 2023-04-23 10:44:51 +05:30
1 parent d9a12e24e7
commit 864219c0fe
16 files changed
+310 -17

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
/** @format */
.about {
&-sections {
&-container {
position: relative;
}
}
&-logo {
width: 75% !important;
max-width: 50vw;
height: 15em;
object-fit: contain;
object-position: center;
}
}
+162
View File
@@ -0,0 +1,162 @@
/** @format */
import Box from "@mui/material/Box";
import Typography from "@mui/material/Typography";
import Stack from "@mui/material/Stack";
import Paper from "@mui/material/Paper";
import TableContainer from "@mui/material/TableContainer";
import Table from "@mui/material/Table";
import TableHead from "@mui/material/TableHead";
import TableRow from "@mui/material/TableRow";
import TableBody from "@mui/material/TableBody";
import TableCell from "@mui/material/TableCell";
import Link from "@mui/material/Link";
import logo from "../../assets/logo.svg";
import jellyfinLogo from "../../assets/jellyfinLogo.svg";
import { useQuery } from "@tanstack/react-query";
import { getSystemApi } from "@jellyfin/sdk/lib/utils/api/system-api";
import { version } from "../../../package.json";
import "./about.module.scss";
const About = () => {
const systemInfo = useQuery({
queryKey: ["about", "systemInfo"],
queryFn: async () => {
const result = await getSystemApi(window.api).getSystemInfo();
return result.data;
},
});
return (
<Box
component="main"
className="scrollY"
sx={{
flexGrow: 1,
pt: 11,
px: 3,
pb: 3,
position: "relative",
}}
>
<Stack
alignItems="center"
justifyContent="center"
className="about-sections"
>
<Link
href="https://github.com/prayag17/JellyPlayer"
className="about-logo"
>
<img width="100%" height="100%" src={logo} />
</Link>
<TableContainer
component={Paper}
sx={{ width: "50%", borderRadius: "15px" }}
>
<Table>
<TableBody>
<TableRow
sx={{
"&:last-child td, &:last-child th":
{
border: 0,
},
"&:hover": {
background:
"rgb(255 255 255 / 0.05)",
},
}}
>
<TableCell>
<Typography
variant="h4"
fontWeight={100}
>
Version
</Typography>
</TableCell>
<TableCell>
<Typography
variant="h4"
sx={{ opacity: 0.7 }}
>
{version}
</Typography>
</TableCell>
</TableRow>
<TableRow
sx={{
"&:last-child td, &:last-child th":
{
border: 0,
},
"&:hover": {
background:
"rgb(255 255 255 / 0.05)",
},
}}
>
<TableCell>
<Typography
variant="h4"
fontWeight={100}
>
Jellyfin Version
</Typography>
</TableCell>
<TableCell>
<Typography
variant="h4"
sx={{ opacity: 0.7 }}
>
{systemInfo.isSuccess &&
systemInfo.data.Version}
</Typography>
</TableCell>
</TableRow>
<TableRow
sx={{
"&:last-child td, &:last-child th":
{
border: 0,
},
"&:hover": {
background:
"rgb(255 255 255 / 0.05)",
},
}}
>
<TableCell>
<Typography
variant="h4"
fontWeight={100}
>
Server OS
</Typography>
</TableCell>
<TableCell>
<Typography
variant="h4"
sx={{ opacity: 0.7 }}
>
{systemInfo.isSuccess &&
systemInfo.data
.OperatingSystemDisplayName}
</Typography>
</TableCell>
</TableRow>
</TableBody>
</Table>
</TableContainer>
</Stack>
</Box>
);
};
export default About;
File renamed without changes.
+1
View File
@@ -69,6 +69,7 @@
&-container {
position: absolute;
background: $clr-gradient-dark;
// background: url("/public/assetsStatic//meshbackground.png");
z-index: 0;
top: 0;
left: 0;
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -12,9 +12,9 @@ import { getServer } from "../../utils/storage/servers.js";
import { saveUser } from "../../utils/storage/user.js";
// import Icon from "mdi-material-ui";
import { MdiEyeOffOutline } from "../../components/icons/mdiEyeOffOutline";
import { MdiEyeOutline } from "../../components/icons/mdiEyeOutline";
import { MdiChevronRight } from "../../components/icons/mdiChevronRight";
import { MdiEyeOffOutline } from "../../components/icons/mdiEyeOffOutline.jsx";
import { MdiEyeOutline } from "../../components/icons/mdiEyeOutline.jsx";
import { MdiChevronRight } from "../../components/icons/mdiChevronRight.jsx";
import Container from "@mui/material/Container";
import Grid from "@mui/material/Unstable_Grid2";
+7
View File
@@ -0,0 +1,7 @@
/** @format */
const Settings = () => {
return <h1>WIP Settings</h1>;
};
export default Settings;
File renamed without changes.