Skip to content

Commit

Permalink
vinvoor: format
Browse files Browse the repository at this point in the history
  • Loading branch information
Topvennie committed Oct 20, 2024
1 parent ca2cb91 commit 4b69967
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 34 deletions.
72 changes: 41 additions & 31 deletions vinvoor/src/footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,41 +7,51 @@ export const Footer = () => {
const { data: version } = useVersion();

return (
<Container disableGutters maxWidth="xl">
<Box
sx={{
display: "flex",
justifyContent: "space-between",
alignItems: "center",
}}
>
<TypographyG width="33%">
{version?.version ?? ""}
</TypographyG>
<TypographyG
<Container disableGutters maxWidth="xl">
<Box
sx={{
height: "100%",
display: "flex",
justifyContent: "space-between",
alignItems: "center",
width: "33%",
justifyContent: "center"
}}
>
Made with ❤️ by
<Link href="http://zeus.gent">
<Icon sx={{ pl: "4px", height: "40px", display: "flex", alignItems: "center", width: "60px" }}>
<img
src={ZeusIcon}
alt="Zeus Icon"
style={{ height: "auto", width: "40px" }}
/>
</Icon>
<TypographyG width="33%">{version?.version ?? ""}</TypographyG>
<TypographyG
sx={{
height: "100%",
display: "flex",
alignItems: "center",
width: "33%",
justifyContent: "center",
}}
>
Made with ❤️ by
<Link href="http://zeus.gent">
<Icon
sx={{
pl: "4px",
height: "40px",
display: "flex",
alignItems: "center",
width: "60px",
}}
>
<img
src={ZeusIcon}
alt="Zeus Icon"
style={{ height: "auto", width: "40px" }}
/>
</Icon>
</Link>
</TypographyG>
<Link
href="https://github.com/ZeusWPI/ZeSS"
width="33%"
textAlign="end"
>
Github © 2024
</Link>
</TypographyG>
<Link href="https://github.com/ZeusWPI/ZeSS" width="33%" textAlign="end">
Github © 2024
</Link>
</Box>
</Container>
)
</Box>
</Container>
);
};
6 changes: 3 additions & 3 deletions vinvoor/src/hooks/useVersion.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useQuery } from "@tanstack/react-query";
import { convertVersionJSON, Version, VersionJSON } from '../types/version';
import { convertVersionJSON, Version, VersionJSON } from "../types/version";
import { getApi } from "../util/fetch";

const ENDPOINT = "version";
Expand All @@ -8,5 +8,5 @@ export const useVersion = () =>
useQuery<Version>({
queryKey: ["version"],
queryFn: () => getApi<Version, VersionJSON>(ENDPOINT, convertVersionJSON),
retry: 1
})
retry: 1,
});

0 comments on commit 4b69967

Please sign in to comment.