dify/web/app/education-apply/components/education-apply-page.tsx

92 lines
3.5 KiB
TypeScript
Raw Normal View History

2025-03-12 10:05:10 +08:00
'use client'
2025-03-12 17:36:44 +08:00
import { useTranslation } from 'react-i18next'
2025-03-11 15:49:41 +08:00
import UserInfo from './user-info'
import SearchInput from './search-input'
2025-03-12 17:36:44 +08:00
import RoleSelector from './role-selector'
2025-03-12 10:05:10 +08:00
import Button from '@/app/components/base/button'
import Checkbox from '@/app/components/base/checkbox'
2025-03-11 15:49:41 +08:00
const EducationApplyAge = () => {
2025-03-12 17:36:44 +08:00
const { t } = useTranslation()
2025-03-11 15:49:41 +08:00
return (
2025-03-12 10:05:10 +08:00
<div className='flex justify-center p-6 w-full h-full'>
<div className='relative max-w-[1408px] w-full border border-effects-highlight bg-background-default-subtle rounded-2xl'>
2025-03-12 17:36:44 +08:00
<div
className="absolute top-0 w-full h-[349px] rounded-t-2xl overflow-hidden bg-no-repeat bg-cover bg-center"
style={{
backgroundImage: 'url(/education/bg.png)',
}}
>
2025-03-12 10:05:10 +08:00
</div>
<div className='relative flex items-center justify-between px-8 py-6 h-[88px] z-10'>
2025-03-12 17:36:44 +08:00
<img
src='/logo/logo-site-dark.png'
alt='dify logo'
className='h-10'
/>
2025-03-11 15:49:41 +08:00
</div>
2025-03-12 17:36:44 +08:00
<div className='relative m-auto px-8 max-w-[720px] z-10'>
<div className='flex flex-col justify-end mb-2 pt-3 pb-4 h-[192px] text-text-primary-on-surface'>
<div className='mb-2 title-5xl-bold shadow-xs'>{t('education.toVerified')}</div>
<div className='system-md-medium shadow-xs'>
{t('education.toVerifiedTip.front')}
<span className='system-md-semibold underline'>{t('education.toVerifiedTip.coupon')}</span>
{t('education.toVerifiedTip.end')}
</div>
2025-03-11 15:49:41 +08:00
</div>
<div className='mb-7'>
<UserInfo />
</div>
<div className='mb-7'>
<div className='flex items-center mb-1 h-6 system-md-semibold text-text-secondary'>
2025-03-12 17:36:44 +08:00
{t('education.form.schoolName.title')}
2025-03-11 15:49:41 +08:00
</div>
<SearchInput />
</div>
<div className='mb-7'>
<div className='flex items-center mb-1 h-6 system-md-semibold text-text-secondary'>
2025-03-12 17:36:44 +08:00
{t('education.form.schoolRole.title')}
2025-03-11 15:49:41 +08:00
</div>
2025-03-12 17:36:44 +08:00
<RoleSelector
value='student'
onChange={() => {}}
/>
2025-03-11 15:49:41 +08:00
</div>
<div className='mb-7'>
<div className='flex items-center mb-1 h-6 system-md-semibold text-text-secondary'>
2025-03-12 17:36:44 +08:00
{t('education.form.terms.title')}
2025-03-11 15:49:41 +08:00
</div>
<div className='mb-1 system-md-regular text-text-tertiary'>
2025-03-12 17:36:44 +08:00
{t('education.form.terms.desc.front')}
<a href='' className='text-text-secondary'>{t('education.form.terms.desc.termsOfService')}</a>
{t('education.form.terms.desc.and')}
<a href='' className='text-text-secondary'>{t('education.form.terms.desc.privacyPolicy')}</a>
{t('education.form.terms.desc.end')}
2025-03-11 15:49:41 +08:00
</div>
<div className='py-2 system-md-regular text-text-primary'>
<div className='flex mb-2'>
2025-03-12 10:05:10 +08:00
<Checkbox className='shrink-0 mr-2' />
2025-03-12 17:36:44 +08:00
{t('education.form.terms.option.age')}
2025-03-11 15:49:41 +08:00
</div>
<div className='flex'>
2025-03-12 10:05:10 +08:00
<Checkbox className='shrink-0 mr-2' />
2025-03-12 17:36:44 +08:00
{t('education.form.terms.option.inSchool')}
2025-03-11 15:49:41 +08:00
</div>
</div>
</div>
2025-03-12 10:05:10 +08:00
<Button
variant='primary'
disabled={false}
>
2025-03-12 17:36:44 +08:00
{t('education.submit')}
2025-03-12 10:05:10 +08:00
</Button>
2025-03-11 15:49:41 +08:00
</div>
</div>
</div>
)
}
export default EducationApplyAge