From bb852ef6d20d65c87c4c0eaa5659e21a736c19b9 Mon Sep 17 00:00:00 2001 From: lyzno1 <92089059+lyzno1@users.noreply.github.com> Date: Sun, 10 Aug 2025 17:21:05 +0800 Subject: [PATCH] fix: improve dark mode UI consistency in signin page (#23684) --- .../components/base/select/locale-signin.tsx | 61 +++++++++++++++++++ web/app/signin/_header.tsx | 4 +- web/app/signin/assets/github-dark.svg | 17 ++++++ .../{normalForm.tsx => normal-form.tsx} | 9 ++- .../{oneMoreStep.tsx => one-more-step.tsx} | 0 web/app/signin/page.module.css | 4 ++ web/app/signin/page.tsx | 4 +- 7 files changed, 90 insertions(+), 9 deletions(-) create mode 100644 web/app/components/base/select/locale-signin.tsx create mode 100644 web/app/signin/assets/github-dark.svg rename web/app/signin/{normalForm.tsx => normal-form.tsx} (96%) rename web/app/signin/{oneMoreStep.tsx => one-more-step.tsx} (100%) diff --git a/web/app/components/base/select/locale-signin.tsx b/web/app/components/base/select/locale-signin.tsx new file mode 100644 index 0000000000..48dbee1ca3 --- /dev/null +++ b/web/app/components/base/select/locale-signin.tsx @@ -0,0 +1,61 @@ +'use client' +import { Menu, MenuButton, MenuItem, MenuItems, Transition } from '@headlessui/react' +import { Fragment } from 'react' +import { GlobeAltIcon } from '@heroicons/react/24/outline' + +type ISelectProps = { + items: Array<{ value: string; name: string }> + value?: string + className?: string + onChange?: (value: string) => void +} + +export default function LocaleSigninSelect({ + items, + value, + onChange, +}: ISelectProps) { + const item = items.filter(item => item.value === value)[0] + + return ( +
+ +
+ + +
+ + +
+ {items.map((item) => { + return + + + })} + +
+ +
+
+
+
+ ) +} diff --git a/web/app/signin/_header.tsx b/web/app/signin/_header.tsx index 03e05924b8..731a229b8e 100644 --- a/web/app/signin/_header.tsx +++ b/web/app/signin/_header.tsx @@ -1,7 +1,7 @@ 'use client' import React from 'react' import { useContext } from 'use-context-selector' -import Select from '@/app/components/base/select/locale' +import LocaleSigninSelect from '@/app/components/base/select/locale-signin' import Divider from '@/app/components/base/divider' import { languages } from '@/i18n-config/language' import type { Locale } from '@/i18n-config' @@ -33,7 +33,7 @@ const Header = () => { /> : }
-