|
| 1 | +import '@root/global.scss'; |
| 2 | + |
| 3 | +import * as Constants from '@common/constants'; |
| 4 | +import * as Utilities from '@common/utilities'; |
| 5 | + |
| 6 | +import DefaultLayout from '@components/page/DefaultLayout'; |
| 7 | +import DefaultActionBar from '@components/page/DefaultActionBar'; |
| 8 | +import Package from '@root/package.json'; |
| 9 | +import DebugGrid from '@components/DebugGrid'; |
| 10 | +import ModalStack from '@components/ModalStack'; |
| 11 | +import PageConceptOne from '@components/examples/PageConceptOne'; |
| 12 | + |
| 13 | +export const dynamic = 'force-static'; |
| 14 | + |
| 15 | +// NOTE(jimmylee) |
| 16 | +// https://nextjs.org/docs/app/api-reference/functions/generate-metadata |
| 17 | +export async function generateMetadata({ params, searchParams }) { |
| 18 | + const title = `${Package.name}: Concept I`; |
| 19 | + const description = Package.description; |
| 20 | + const url = 'https://sacred.computer/conept-1'; |
| 21 | + const handle = '@internetxstudio'; |
| 22 | + |
| 23 | + return { |
| 24 | + description, |
| 25 | + icons: { |
| 26 | + apple: [{ url: '/apple-touch-icon.png' }, { url: '/apple-touch-icon.png', sizes: '180x180', type: 'image/png' }], |
| 27 | + icon: '/favicon-32x32.png', |
| 28 | + other: [ |
| 29 | + { |
| 30 | + rel: 'apple-touch-icon-precomposed', |
| 31 | + url: '/apple-touch-icon-precomposed.png', |
| 32 | + }, |
| 33 | + ], |
| 34 | + shortcut: '/favicon-16x16.png', |
| 35 | + }, |
| 36 | + metadataBase: new URL('https://sacred.computer/concept-1'), |
| 37 | + openGraph: { |
| 38 | + description, |
| 39 | + images: [ |
| 40 | + { |
| 41 | + url: 'https://intdev-global.s3.us-west-2.amazonaws.com/public/internet-dev/57a5715d-d332-47d0-8ec8-40cfa75bf36f.png', |
| 42 | + width: 1500, |
| 43 | + height: 785, |
| 44 | + }, |
| 45 | + ], |
| 46 | + title, |
| 47 | + type: 'website', |
| 48 | + url, |
| 49 | + }, |
| 50 | + title, |
| 51 | + twitter: { |
| 52 | + card: 'summary_large_image', |
| 53 | + description, |
| 54 | + handle, |
| 55 | + images: ['https://intdev-global.s3.us-west-2.amazonaws.com/public/internet-dev/57a5715d-d332-47d0-8ec8-40cfa75bf36f.png'], |
| 56 | + title, |
| 57 | + url, |
| 58 | + }, |
| 59 | + url, |
| 60 | + }; |
| 61 | +} |
| 62 | + |
| 63 | +export default async function Page(props) { |
| 64 | + return ( |
| 65 | + <> |
| 66 | + <DebugGrid /> |
| 67 | + <DefaultActionBar /> |
| 68 | + <ModalStack /> |
| 69 | + <PageConceptOne /> |
| 70 | + </> |
| 71 | + ); |
| 72 | +} |
0 commit comments