You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_app.tsx 2.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. import '../styles/globals.css'
  2. import Head from 'next/head'
  3. import useGtag from 'utils/useGtag'
  4. import { init } from 'utils/sentry'
  5. import type { AppProps } from 'next/app'
  6. import type React from 'react'
  7. init()
  8. const APP_NAME = 'tldraw'
  9. const APP_DESCRIPTION = 'A tiny little drawing app.'
  10. const APP_URL = 'https://tldraw.com'
  11. const IMAGE = 'https://tldraw.com/social-image.png'
  12. function MyApp({ Component, pageProps }: AppProps) {
  13. useGtag()
  14. return (
  15. <>
  16. <Head>
  17. <meta name="application-name" content={APP_NAME} />
  18. <meta name="apple-mobile-web-app-capable" content="yes" />
  19. <meta name="apple-mobile-web-app-status-bar-style" content="black" />
  20. <meta name="apple-mobile-web-app-title" content={APP_NAME} />
  21. <meta name="description" content={APP_DESCRIPTION} />
  22. <meta name="format-detection" content="telephone=no" />
  23. <meta name="mobile-web-app-capable" content="yes" />
  24. <meta name="theme-color" content="#fafafa" />
  25. <meta name="twitter:url" content={APP_URL} />
  26. <meta name="twitter:title" content={APP_NAME} />
  27. <meta name="twitter:description" content={APP_DESCRIPTION} />
  28. <meta name="twitter:card" content="summary_large_image" />
  29. <meta name="twitter:creator" content="@tldraw" />
  30. <meta name="twitter:site" content="@tldraw" />
  31. <meta name="twitter:image" content={IMAGE} />
  32. <meta property="og:type" content="website" />
  33. <meta property="og:title" content={APP_NAME} />
  34. <meta property="og:description" content={APP_DESCRIPTION} />
  35. <meta property="og:site_name" content={APP_NAME} />
  36. <meta property="og:url" content={APP_URL} />
  37. <meta property="og:image" content={IMAGE} />
  38. <meta
  39. name="viewport"
  40. content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no"
  41. />
  42. <link rel="manifest" href="/manifest.json" />
  43. <link rel="shortcut icon" href="/favicon.ico" />
  44. <link rel="apple-touch-icon" sizes="180x180" href="/icons/apple-touch-icon.png" />
  45. <title>tldraw</title>
  46. </Head>
  47. <Component {...pageProps} />
  48. </>
  49. )
  50. }
  51. export default MyApp