page.tsx 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. import React from 'react'
  2. import cn from 'classnames'
  3. import Script from 'next/script'
  4. import Forms from './forms'
  5. import Header from './_header'
  6. import style from './page.module.css'
  7. import { IS_CE_EDITION } from '@/config'
  8. const SignIn = () => {
  9. return (
  10. <>
  11. {!IS_CE_EDITION && (
  12. <>
  13. <Script strategy="beforeInteractive" async src={'https://www.googletagmanager.com/gtag/js?id=AW-11217955271"}'}></Script>
  14. <Script
  15. id="ga-monitor-register"
  16. dangerouslySetInnerHTML={{
  17. __html: `
  18. window.dataLayer2 = window.dataLayer2 || [];
  19. function gtag(){dataLayer2.push(arguments);}
  20. gtag('js', new Date());
  21. gtag('config', 'AW-11217955271"');
  22. `,
  23. }}
  24. >
  25. </Script>
  26. </>
  27. )}
  28. <div className={cn(
  29. style.background,
  30. 'flex w-full min-h-screen',
  31. 'sm:p-4 lg:p-8',
  32. 'gap-x-20',
  33. 'justify-center lg:justify-start',
  34. )}>
  35. <div className={
  36. cn(
  37. 'flex w-full flex-col bg-white shadow rounded-2xl shrink-0',
  38. 'space-between',
  39. )
  40. }>
  41. <Header />
  42. <Forms />
  43. <div className='px-8 py-6 text-sm font-normal text-gray-500'>
  44. © {new Date().getFullYear()} LangGenius, Inc. All rights reserved.
  45. </div>
  46. </div>
  47. </div>
  48. </>
  49. )
  50. }
  51. export default SignIn