page.tsx 1.2 KB

123456789101112131415161718192021222324252627
  1. import classNames from 'classnames'
  2. import style from '../list.module.css'
  3. import Apps from './Apps'
  4. import { getLocaleOnServer } from '@/i18n/server'
  5. import { useTranslation as translate } from '@/i18n/i18next-serverside-config'
  6. const AppList = async () => {
  7. const locale = getLocaleOnServer()
  8. const { t } = await translate(locale, 'app')
  9. return (
  10. <div className='relative flex flex-col overflow-y-auto bg-gray-100 shrink-0 h-0 grow'>
  11. <Apps />
  12. <footer className='px-12 py-6 grow-0 shrink-0'>
  13. <h3 className='text-xl font-semibold leading-tight text-gradient'>{t('join')}</h3>
  14. <p className='mt-1 text-sm font-normal leading-tight text-gray-700'>{t('communityIntro')}</p>
  15. <div className='flex items-center gap-2 mt-3'>
  16. <a className={style.socialMediaLink} target='_blank' href='https://github.com/langgenius/dify'><span className={classNames(style.socialMediaIcon, style.githubIcon)} /></a>
  17. <a className={style.socialMediaLink} target='_blank' href='https://discord.gg/FngNHpbcY7'><span className={classNames(style.socialMediaIcon, style.discordIcon)} /></a>
  18. </div>
  19. </footer>
  20. </div >
  21. )
  22. }
  23. export default AppList