From 93d0f7fe7a709a295c6c1ae8162d8be966ce9367 Mon Sep 17 00:00:00 2001 From: kimatata <117462761+kimatata@users.noreply.github.com> Date: Sat, 26 Jul 2025 15:28:40 +0900 Subject: [PATCH] feat: Footer component (#255) --- frontend/components/Footer.tsx | 15 +- .../src/app/[locale]/account/authPage.tsx | 158 +++++++++--------- 2 files changed, 93 insertions(+), 80 deletions(-) diff --git a/frontend/components/Footer.tsx b/frontend/components/Footer.tsx index 649c096..a100da3 100644 --- a/frontend/components/Footer.tsx +++ b/frontend/components/Footer.tsx @@ -1,3 +1,4 @@ +import Image from 'next/image'; import { Link, NextUiLinkClasses } from '@/src/i18n/routing'; import { LocaleCodeType } from '@/types/locale'; @@ -7,10 +8,18 @@ type Props = { export default function Footer({ locale }: Props) { return ( -
-
Copyright © 2024-present UnitTCMS
+
+ + Logo + +
+ Copyright © 2024-present + + UnitTCMS + +
- + Status
diff --git a/frontend/src/app/[locale]/account/authPage.tsx b/frontend/src/app/[locale]/account/authPage.tsx index 5f6623e..d83cea3 100644 --- a/frontend/src/app/[locale]/account/authPage.tsx +++ b/frontend/src/app/[locale]/account/authPage.tsx @@ -11,6 +11,7 @@ import { TokenContext } from '@/utils/TokenProvider'; import { useRouter } from '@/src/i18n/routing'; import Config from '@/config/config'; import { LocaleCodeType } from '@/types/locale'; +import Footer from '@/components/Footer'; const isDemoSite = Config.isDemoSite; type Props = { @@ -93,74 +94,56 @@ export default function AuthPage({ isSignup, messages, locale }: Props) { }; return ( - - -

{messages.title}

- -
- -
- {errorMessage &&
{errorMessage}
} - { - setUser({ - ...user, - email: e.target.value, - }); - }} - /> - {isSignup && ( +
+ + +

{messages.title}

+ +
+ + + {errorMessage &&
{errorMessage}
} { setUser({ ...user, - username: e.target.value, + email: e.target.value, }); }} /> - )} - - {isPasswordVisible ? : } - - } - onChange={(e) => { - setUser({ - ...user, - password: e.target.value, - }); - }} - /> - {isSignup && ( + {isSignup && ( + { + setUser({ + ...user, + username: e.target.value, + }); + }} + /> + )} } onChange={(e) => { - setConfirmPassword(e.target.value); + setUser({ + ...user, + password: e.target.value, + }); }} /> - )} - - {isDemoSite &&
{messages.demoPageWarning}
} - -
- - {!isSignup && isDemoSite && ( - + {isSignup && ( + + {isPasswordVisible ? : } + + } + onChange={(e) => { + setConfirmPassword(e.target.value); + }} + /> )} -
- -
-
+ + {isDemoSite &&
{messages.demoPageWarning}
} + +
+ + {!isSignup && isDemoSite && ( + + )} +
+ + + +
); }