Skillfarm / website / src / app / layout.tsx
| 1 | import type { Metadata } from 'next'; |
| 2 | import localFont from 'next/font/local'; |
| 3 | import './globals.css'; |
| 4 | |
| 5 | const cormorant = localFont({ |
| 6 | src: [ |
| 7 | { path: '../../node_modules/@fontsource-variable/cormorant-garamond/files/cormorant-garamond-latin-wght-normal.woff2', weight: '300 700', style: 'normal' }, |
| 8 | { path: '../../node_modules/@fontsource-variable/cormorant-garamond/files/cormorant-garamond-latin-wght-italic.woff2', weight: '300 700', style: 'italic' }, |
| 9 | ], |
| 10 | variable: '--font-cormorant', |
| 11 | display: 'swap', |
| 12 | }); |
| 13 | |
| 14 | const crimsonPro = localFont({ |
| 15 | src: [ |
| 16 | { path: '../../node_modules/@fontsource-variable/crimson-pro/files/crimson-pro-latin-wght-normal.woff2', weight: '200 600', style: 'normal' }, |
| 17 | { path: '../../node_modules/@fontsource-variable/crimson-pro/files/crimson-pro-latin-wght-italic.woff2', weight: '200 600', style: 'italic' }, |
| 18 | ], |
| 19 | variable: '--font-crimson', |
| 20 | display: 'swap', |
| 21 | }); |
| 22 | |
| 23 | const BASE_URL = 'https://skillfarm.ai'; |
| 24 | |
| 25 | export const metadata: Metadata = { |
| 26 | metadataBase: new URL(BASE_URL), |
| 27 | title: { |
| 28 | default: 'Skillfarm — Where Agent Skills Grow', |
| 29 | template: '%s | Skillfarm', |
| 30 | }, |
| 31 | description: |
| 32 | 'The marketplace for AI agent skills. Subscribe for Seeds, spend them on the skills your agents need, or earn as a creator.', |
| 33 | keywords: ['AI agents', 'agent skills', 'skill marketplace', 'AI automation', 'OpenClaw', 'Claude Code'], |
| 34 | authors: [{ name: 'Skillfarm', url: 'https://skillfarm.ai/' }], |
| 35 | creator: 'Skillfarm', |
| 36 | openGraph: { |
| 37 | type: 'website', |
| 38 | url: BASE_URL, |
| 39 | siteName: 'Skillfarm', |
| 40 | title: 'Skillfarm — Where Agent Skills Grow 🌱', |
| 41 | description: |
| 42 | 'The marketplace for AI agent skills. Subscribe for Seeds, spend them on the skills your agents need, or earn as a creator.', |
| 43 | images: [ |
| 44 | { |
| 45 | url: '/og-image-v2.jpg', |
| 46 | width: 1200, |
| 47 | height: 630, |
| 48 | alt: 'Skillfarm — Where Agent Skills Grow', |
| 49 | }, |
| 50 | ], |
| 51 | }, |
| 52 | twitter: { |
| 53 | card: 'summary_large_image', |
| 54 | site: '@skillfarmai', |
| 55 | creator: '@skillfarmai', |
| 56 | title: 'Skillfarm — Where Agent Skills Grow 🌱', |
| 57 | description: |
| 58 | 'The marketplace for AI agent skills. Subscribe for Seeds, spend them on the skills your agents need, or earn as a creator.', |
| 59 | images: ['/og-image-v2.jpg'], |
| 60 | }, |
| 61 | icons: { |
| 62 | icon: '/favicon.ico', |
| 63 | shortcut: '/favicon.ico', |
| 64 | }, |
| 65 | robots: { |
| 66 | index: true, |
| 67 | follow: true, |
| 68 | }, |
| 69 | }; |
| 70 | |
| 71 | export default function RootLayout({ |
| 72 | children, |
| 73 | }: Readonly<{ |
| 74 | children: React.ReactNode; |
| 75 | }>) { |
| 76 | return ( |
| 77 | <html lang="en" className={`${cormorant.variable} ${crimsonPro.variable}`}> |
| 78 | <body> |
| 79 | {children} |
| 80 | </body> |
| 81 | </html> |
| 82 | ); |
| 83 | } |