layout.tsx 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. import '@/styles/website.scss';
  2. import { creator, description, name, uiUrl } from '@/config/site';
  3. import PageProgress from '@/components/PageProgress';
  4. export const metadata = {
  5. metadataBase: uiUrl,
  6. title: {
  7. default: name,
  8. template: `%s - ${name}`,
  9. },
  10. description: description,
  11. keywords: [
  12. 'css',
  13. 'html',
  14. 'jekyll',
  15. 'sass',
  16. 'bootstrap',
  17. 'modular',
  18. 'html5',
  19. 'dashboard',
  20. 'sponsors',
  21. 'uikit',
  22. 'boilerplate-template',
  23. 'scss',
  24. 'admin-dashboard',
  25. 'themes',
  26. 'dashboards',
  27. 'ui-kit',
  28. 'adminpanel',
  29. 'dashboard-templates',
  30. 'bootstrap4-theme',
  31. 'bootstrap5',
  32. 'bootstrap',
  33. ],
  34. authors: [
  35. {
  36. name: creator,
  37. url: uiUrl,
  38. },
  39. ],
  40. creator: creator,
  41. themeColor: [
  42. { media: '(prefers-color-scheme: light)', color: 'white' },
  43. { media: '(prefers-color-scheme: dark)', color: 'black' },
  44. ],
  45. openGraph: {
  46. type: 'website',
  47. locale: 'en_US',
  48. url: uiUrl,
  49. siteName: name,
  50. },
  51. twitter: {
  52. card: 'summary_large_image',
  53. images: ['og.jpg'],
  54. creator: `@${creator}`,
  55. },
  56. icons: {
  57. icon: '/favicon.ico',
  58. shortcut: '/favicon-16x16.png',
  59. apple: '/apple-touch-icon.png',
  60. },
  61. };
  62. export default function RootLayout({ children }: { children: React.ReactNode }) {
  63. return (
  64. <html lang="en">
  65. <head>
  66. {process.env.NODE_ENV !== 'development' && (
  67. <>
  68. <script defer data-api="/stats/api/event" data-domain="tabler.io,tabler" src="/stats/js/script.js" />
  69. <script>{'window.plausible=window.plausible||function(){(window.plausible.q=window.plausible.q||[]).push(arguments)}'}</script>
  70. </>
  71. )}
  72. </head>
  73. <body className="body-gradient">
  74. <PageProgress />
  75. {children}
  76. <link rel="stylesheet" href="https://rsms.me/inter/inter.css" />
  77. <script src="https://assets.lemonsqueezy.com/lemon.js" defer />
  78. </body>
  79. </html>
  80. );
  81. }