base page, auth header, language and theme switches

This commit is contained in:
Alex Holliday committed 2026-02-06 20:32:10 +00:00
1 parent 1c390a8baf
commit 527543d79f
10 files changed
+291 -20

No files matched your search

-18
View File
@@ -1,18 +0,0 @@
import React from "react";
import AppBar from "@/Components/v1/Common/AppBar.jsx";
import Footer from "@/Components/v1/Common/Footer.jsx";
import { useTranslation } from "react-i18next";
const AboutUs = () => {
const { t } = useTranslation();
return (
<div>
<AppBar />
<h1>{t("aboutus")}</h1>
<Footer />
</div>
);
};
export default AboutUs;
+14
View File
@@ -0,0 +1,14 @@
import { BaseAuthPage } from "@/Components/v2/design-elements";
import { useTranslation } from "react-i18next";
const LoginPage = () => {
const { t } = useTranslation();
return (
<BaseAuthPage
title={t("pages.auth.login.title")}
subtitle={t("pages.auth.login.subtitle")}
></BaseAuthPage>
);
};
export default LoginPage;
File renamed without changes.
@@ -0,0 +1,53 @@
import Stack, { type StackProps } from "@mui/material/Stack";
import Typography from "@mui/material/Typography";
import Logo from "@/assets/icons/checkmate-icon.svg?react";
import { LanguageSelector, SwitchTheme } from "@/Components/v2/inputs";
import { useTheme } from "@mui/material/styles";
import { useTranslation } from "react-i18next";
interface HeaderAuthControlsProps extends StackProps {
hideLogo?: boolean;
}
export const HeaderAuthControls = ({
hideLogo = false,
...stackProps
}: HeaderAuthControlsProps) => {
// Hooks
const theme = useTheme();
const { t } = useTranslation();
return (
<Stack
width={"100%"}
direction="row"
alignItems="center"
justifyContent="space-between"
px={theme.spacing(12)}
gap={theme.spacing(4)}
{...stackProps}
>
<Stack
direction="row"
alignItems="center"
gap={theme.spacing(4)}
>
{!hideLogo && (
<>
<Logo style={{ borderRadius: theme.shape.borderRadius }} />
<Typography sx={{ userSelect: "none" }}>{t("common.appName")}</Typography>
</>
)}
</Stack>
<Stack
direction="row"
spacing={theme.spacing(2)}
alignItems="center"
>
<LanguageSelector />
<SwitchTheme />
</Stack>
</Stack>
);
};