chore: independent page style update (#17176)

This commit is contained in:
KVOJJJin 2025-03-31 15:44:04 +08:00 committed by GitHub
parent ac850e559f
commit c66fda7c71
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 17 additions and 106 deletions

View File

@ -1,25 +1,12 @@
import React from 'react' import React from 'react'
import Header from '../signin/_header' import Header from '../signin/_header'
import style from '../signin/page.module.css'
import ActivateForm from './activateForm' import ActivateForm from './activateForm'
import cn from '@/utils/classnames' import cn from '@/utils/classnames'
const Activate = () => { const Activate = () => {
return ( return (
<div className={cn( <div className={cn('flex min-h-screen w-full justify-center bg-background-default-burn p-6')}>
'bg-background-body', <div className={cn('flex w-full shrink-0 flex-col rounded-2xl border border-effects-highlight bg-background-default-subtle')}>
style.background,
'flex min-h-screen w-full',
'sm:p-4 lg:p-8',
'gap-x-20',
'justify-center lg:justify-start',
)}>
<div className={
cn(
'flex w-full shrink-0 flex-col rounded-2xl bg-background-section-burn shadow',
'space-between',
)
}>
<Header /> <Header />
<ActivateForm /> <ActivateForm />
<div className='px-8 py-6 text-sm font-normal text-text-tertiary'> <div className='px-8 py-6 text-sm font-normal text-text-tertiary'>

View File

@ -1,9 +1,8 @@
'use client' 'use client'
import React from 'react' import React from 'react'
import classNames from 'classnames' import cn from 'classnames'
import { useSearchParams } from 'next/navigation' import { useSearchParams } from 'next/navigation'
import Header from '../signin/_header' import Header from '../signin/_header'
import style from '../signin/page.module.css'
import ForgotPasswordForm from './ForgotPasswordForm' import ForgotPasswordForm from './ForgotPasswordForm'
import ChangePasswordForm from '@/app/forgot-password/ChangePasswordForm' import ChangePasswordForm from '@/app/forgot-password/ChangePasswordForm'
@ -12,20 +11,8 @@ const ForgotPassword = () => {
const token = searchParams.get('token') const token = searchParams.get('token')
return ( return (
<div className={classNames( <div className={cn('flex min-h-screen w-full justify-center bg-background-default-burn p-6')}>
'bg-background-body', <div className={cn('flex w-full shrink-0 flex-col rounded-2xl border border-effects-highlight bg-background-default-subtle')}>
style.background,
'flex w-full min-h-screen',
'p-4 lg:p-8',
'gap-x-20',
'justify-center lg:justify-start',
)}>
<div className={
classNames(
'flex w-full flex-col bg-background-section-burn shadow rounded-2xl shrink-0',
'md:w-[608px] space-between',
)
}>
<Header /> <Header />
{token ? <ChangePasswordForm /> : <ForgotPasswordForm />} {token ? <ChangePasswordForm /> : <ForgotPasswordForm />}
<div className='px-8 py-6 text-sm font-normal text-text-tertiary'> <div className='px-8 py-6 text-sm font-normal text-text-tertiary'>

View File

@ -1,24 +1,11 @@
import React from 'react' import React from 'react'
import style from '../signin/page.module.css'
import InitPasswordPopup from './InitPasswordPopup' import InitPasswordPopup from './InitPasswordPopup'
import cn from '@/utils/classnames' import cn from '@/utils/classnames'
const Install = () => { const Install = () => {
return ( return (
<div className={cn( <div className={cn('flex min-h-screen w-full justify-center bg-background-default-burn p-6')}>
'bg-background-body', <div className={cn('flex w-full shrink-0 flex-col rounded-2xl border border-effects-highlight bg-background-default-subtle')}>
style.background,
'flex min-h-screen w-full',
'p-4 lg:p-8',
'gap-x-20',
'justify-center lg:justify-start',
)}>
<div className={
cn(
'flex w-full shrink-0 flex-col rounded-2xl bg-background-section-burn shadow',
'space-between',
)
}>
<div className="m-auto block w-96"> <div className="m-auto block w-96">
<InitPasswordPopup /> <InitPasswordPopup />
</div> </div>

View File

@ -1,25 +1,12 @@
import React from 'react' import React from 'react'
import Header from '../signin/_header' import Header from '../signin/_header'
import style from '../signin/page.module.css'
import InstallForm from './installForm' import InstallForm from './installForm'
import classNames from '@/utils/classnames' import cn from '@/utils/classnames'
const Install = () => { const Install = () => {
return ( return (
<div className={classNames( <div className={cn('flex min-h-screen w-full justify-center bg-background-default-burn p-6')}>
'bg-background-body', <div className={cn('flex w-full shrink-0 flex-col rounded-2xl border border-effects-highlight bg-background-default-subtle')}>
style.background,
'flex w-full min-h-screen',
'p-4 lg:p-8',
'gap-x-20',
'justify-center lg:justify-start',
)}>
<div className={
classNames(
'flex w-full flex-col bg-background-section-burn shadow rounded-2xl shrink-0',
'md:w-[608px] space-between',
)
}>
<Header /> <Header />
<InstallForm /> <InstallForm />
<div className='px-8 py-6 text-sm font-normal text-text-tertiary'> <div className='px-8 py-6 text-sm font-normal text-text-tertiary'>

View File

@ -1,24 +1,11 @@
import Header from '../signin/_header' import Header from '../signin/_header'
import style from '../signin/page.module.css'
import cn from '@/utils/classnames' import cn from '@/utils/classnames'
export default async function SignInLayout({ children }: any) { export default async function SignInLayout({ children }: any) {
return <> return <>
<div className={cn( <div className={cn('flex min-h-screen w-full justify-center bg-background-default-burn p-6')}>
'bg-background-body', <div className={cn('flex w-full shrink-0 flex-col rounded-2xl border border-effects-highlight bg-background-default-subtle')}>
style.background,
'flex min-h-screen w-full',
'sm:p-4 lg:p-8',
'gap-x-20',
'justify-center lg:justify-start',
)}>
<div className={
cn(
'flex w-full shrink-0 flex-col rounded-2xl bg-background-section-burn shadow',
'space-between',
)
}>
<Header /> <Header />
<div className={ <div className={
cn( cn(

View File

@ -91,8 +91,8 @@ export default function CheckCode() {
<div className='py-2'> <div className='py-2'>
<div className='h-px bg-gradient-to-r from-background-gradient-mask-transparent via-divider-regular to-background-gradient-mask-transparent'></div> <div className='h-px bg-gradient-to-r from-background-gradient-mask-transparent via-divider-regular to-background-gradient-mask-transparent'></div>
</div> </div>
<Link href={`/signin?${searchParams.toString()}`} className='flex h-9 items-center justify-center text-text-tertiary'> <Link href={`/signin?${searchParams.toString()}`} className='flex h-9 items-center justify-center text-text-tertiary hover:text-text-primary'>
<div className='bg-background-default-dimm inline-block rounded-full p-1'> <div className='inline-block rounded-full bg-background-default-dimmed p-1'>
<RiArrowLeftLine size={12} /> <RiArrowLeftLine size={12} />
</div> </div>
<span className='system-xs-regular ml-2'>{t('login.backToLogin')}</span> <span className='system-xs-regular ml-2'>{t('login.backToLogin')}</span>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 224 KiB

View File

@ -1,32 +1,13 @@
import Header from './_header' import Header from './_header'
import style from './page.module.css'
import cn from '@/utils/classnames' import cn from '@/utils/classnames'
export default async function SignInLayout({ children }: any) { export default async function SignInLayout({ children }: any) {
return <> return <>
<div className={cn( <div className={cn('flex min-h-screen w-full justify-center bg-background-default-burn p-6')}>
'bg-background-body', <div className={cn('flex w-full shrink-0 flex-col rounded-2xl border border-effects-highlight bg-background-default-subtle')}>
style.background,
'flex min-h-screen w-full',
'sm:p-4 lg:p-8',
'gap-x-20',
'justify-center lg:justify-start',
)}>
<div className={
cn(
'flex w-full shrink-0 flex-col rounded-2xl bg-background-section-burn shadow',
'space-between',
)
}>
<Header /> <Header />
<div className={ <div className={cn('flex w-full grow flex-col items-center justify-center px-6 md:px-[108px]')}>
cn(
'flex w-full grow flex-col items-center justify-center',
'px-6',
'md:px-[108px]',
)
}>
<div className='flex flex-col md:w-[400px]'> <div className='flex flex-col md:w-[400px]'>
{children} {children}
</div> </div>

View File

@ -4,9 +4,4 @@
.googleIcon { .googleIcon {
background: center/contain url('./assets/google.svg'); background: center/contain url('./assets/google.svg');
}
.background {
background-image: url('./assets/background.png');
background-size: cover;
} }