page.tsx 1.5 KB

1234567891011121314151617181920212223242526272829303132
  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 } from '@/i18n/i18next-serverside-config'
  6. const AppList = async () => {
  7. const locale = getLocaleOnServer()
  8. const { t } = await useTranslation(locale, 'app')
  9. return (
  10. <div className='flex flex-col overflow-auto bg-gray-100 shrink-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. {/* <p className='mt-3 text-sm'> */}
  16. {/* <a className='inline-flex items-center gap-1 link' target='_blank' href={`https://docs.dify.ai${locale === 'en' ? '' : '/v/zh-hans'}/community/product-roadmap`}> */}
  17. {/* {t('roadmap')} */}
  18. {/* <span className={style.linkIcon} /> */}
  19. {/* </a> */}
  20. {/* </p> */}
  21. <div className='flex items-center gap-2 mt-3'>
  22. <a className={style.socialMediaLink} target='_blank' href='https://github.com/langgenius/dify'><span className={classNames(style.socialMediaIcon, style.githubIcon)} /></a>
  23. <a className={style.socialMediaLink} target='_blank' href='https://discord.gg/FngNHpbcY7'><span className={classNames(style.socialMediaIcon, style.discordIcon)} /></a>
  24. </div>
  25. </footer>
  26. </div >
  27. )
  28. }
  29. export default AppList