| 1 | import { baseUrl } from '@/lib/metadata' |
| 2 | import { faq } |
| 3 | |
| 4 | const siteUrl = baseUrl |
| 5 | |
| 6 | const organizationSchema = { |
| 7 | '@context': 'https://schema.org', |
| 8 | '@type': 'Organization', |
| 9 | '@id': `${siteUrl |
| 10 | name: 'Saturn', |
| 11 | url: siteUrl, |
| 12 | logo: `${siteUrl} |
| 13 | sameAs: [ |
| 14 | 'https://github.com/phantomknight287/saturn', |
| 15 | 'https://twitter.com/gurpalsingh287', |
| 16 | ], |
| 17 | } |
| 18 | |
| 19 | const websiteSchema = { |
| 20 | '@context': 'https://schema.org', |
| 21 | '@type': 'WebSite', |
| 22 | '@id': `${siteUrl |
| 23 | url: siteUrl, |
| 24 | name: 'Saturn', |
| 25 | description: |
| 26 | 'Saturn brings projects, timesheets, invoices, and client management into one place — the operating system for your freelance business.', |
| 27 | publisher: { '@id': |
| 28 | } |
| 29 | |
| 30 | const softwareApplicationSchema = { |
| 31 | '@context': 'https://schema.org', |
| 32 | '@type': 'SoftwareApplication', |
| 33 | name: 'Saturn', |
| 34 | applicationCategory: 'BusinessApplication', |
| 35 | operatingSystem: 'Web', |
| 36 | url: siteUrl, |
| 37 | description: |
| 38 | 'Projects, proposals, time, timesheets, expenses, and invoices — the operating system for freelancers, agencies, and solo builders.', |
| 39 | offers: [ |
| 40 | { |
| 41 | '@type': 'Offer', |
| 42 | name: 'Free', |
| 43 | price: '0', |
| 44 | priceCurrency: 'USD', |
| 45 | }, |
| 46 | { |
| 47 | '@type': 'Offer', |
| 48 | name: 'Pro', |
| 49 | price: '3', |
| 50 | priceCurrency: 'USD', |
| 51 | }, |
| 52 | ], |
| 53 | } |
| 54 | |
| 55 | const faqSchema = { |
| 56 | '@context': 'https://schema.org', |
| 57 | '@type': 'FAQPage', |
| 58 | mainEntity: faq.map |
| 59 | '@type': 'Question', |
| 60 | name: item.q |
| 61 | acceptedAnswer: { |
| 62 | '@type': 'Answer', |
| 63 | text: item.a |
| 64 | }, |
| 65 | })), |
| 66 | } |
| 67 | |
| 68 | const breadcrumbSchema = { |
| 69 | '@context': 'https://schema.org', |
| 70 | '@type': 'BreadcrumbList', |
| 71 | itemListElement: [ |
| 72 | { |
| 73 | '@type': 'ListItem', |
| 74 | position: 1, |
| 75 | name: 'Home', |
| 76 | item: siteUrl, |
| 77 | }, |
| 78 | ], |
| 79 | } |
| 80 | |
| 81 | const schemas = [ |
| 82 | organizationSchema, |
| 83 | websiteSchema, |
| 84 | softwareApplicationSchema, |
| 85 | faqSchema, |
| 86 | breadcrumbSchema, |
| 87 | ] |
| 88 | |
| 89 | export function LandingStructuredData() |
| 90 | return ( |
| 91 | <script |
| 92 | // biome-ignore lint/security/noDangerouslySetInnerHtml: JSON-LD requires raw script content |
| 93 | dangerouslySetInnerHTML={{ __html: |
| 94 | type='application/ld+json' |
| 95 | /> |
| 96 | ) |
| 97 | } |