Skip to content

Commit

Permalink
Add footer & fix some text color
Browse files Browse the repository at this point in the history
  • Loading branch information
slhmy committed Sep 28, 2024
1 parent e3fd5fa commit f3fef00
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
13 changes: 13 additions & 0 deletions src/layouts/Footer.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
const Footer: React.FC = () => {
return (
<div className="footer flex w-full flex-col justify-center gap-1 text-xs text-base-content/80">
<p>©2024 OJ Lab</p>
<p className="flex flex-row">
Github:
<a href="https://github.com/oj-lab">https://github.com/oj-lab</a>
</p>
</div>
);
};

export default Footer;
2 changes: 2 additions & 0 deletions src/layouts/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
import { messageMapSelector } from "@/store/selectors";
import { joinClasses } from "@/utils/common";
import { useTranslation } from "react-i18next";
import Footer from "./Footer";

export interface LayoutProps {
children?: React.ReactNode;
Expand Down Expand Up @@ -47,6 +48,7 @@ const Layout: React.FC<LayoutProps> = (props) => {
<PageBreadcrumbs />
{props.children}
{!props.children && <Outlet />}
<Footer />
</main>
<div className="toast toast-center toast-top w-1/3 gap-1">
{Object.keys(messageMap).map((key, idx) => {
Expand Down
9 changes: 5 additions & 4 deletions src/pages/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,14 @@ const Login: React.FC = () => {
>
{loginMode === "oauth" ? (
<>
<PasswordIcon className="h-4 w-auto text-slate-500" />
<PasswordIcon className="h-4 w-auto text-base-content/80" />
<div>
<span className="!text-xs !font-normal text-slate-500">
<span className="!text-xs !font-normal text-base-content/80">
Password Login
</span>
<span className="!text-xs !font-normal text-slate-400">
&ensp;(Internal)
<span className="!text-xs !font-normal text-base-content/60">
{" "}
(Internal)
</span>
</div>
</>
Expand Down

0 comments on commit f3fef00

Please sign in to comment.