page.tsx 1.2 KB

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