|
1 | 1 | import React from "react"; |
| 2 | +import type { Metadata } from "next"; |
| 3 | +import { baseMetadata } from "@/utils/metadata"; |
| 4 | +import Script from "next/script"; |
| 5 | + |
| 6 | +export const metadata: Metadata = { |
| 7 | + ...baseMetadata, |
| 8 | + title: "About Collabydraw", |
| 9 | + description: |
| 10 | + "Learn about Collabydraw - a secure, end-to-end encrypted collaborative whiteboard tool. Discover features, privacy, encryption, and how it works.", |
| 11 | + openGraph: { |
| 12 | + ...baseMetadata.openGraph, |
| 13 | + title: "About Collabydraw", |
| 14 | + description: |
| 15 | + "Learn about Collabydraw - a secure, end-to-end encrypted collaborative whiteboard tool. Discover features, privacy, encryption, and how it works.", |
| 16 | + url: "https://collabydraw.xyz/about", |
| 17 | + }, |
| 18 | + twitter: { |
| 19 | + ...baseMetadata.twitter, |
| 20 | + title: "About Collabydraw", |
| 21 | + description: |
| 22 | + "Learn about Collabydraw - a secure, end-to-end encrypted collaborative whiteboard tool. Discover features, privacy, encryption, and how it works.", |
| 23 | + }, |
| 24 | + alternates: { |
| 25 | + canonical: "https://collabydraw.xyz/about", |
| 26 | + }, |
| 27 | +}; |
| 28 | + |
| 29 | +const aboutPageSchema = { |
| 30 | + "@context": "https://schema.org", |
| 31 | + "@type": "AboutPage", |
| 32 | + name: "About Collabydraw", |
| 33 | + url: "https://collabydraw.xyz/about", |
| 34 | + description: |
| 35 | + "Collabydraw is a web-based collaborative whiteboard where multiple users can draw, edit, and brainstorm together in real time.", |
| 36 | + mainEntity: { |
| 37 | + "@type": "SoftwareApplication", |
| 38 | + name: "Collabydraw", |
| 39 | + applicationCategory: "ProductivityApplication", |
| 40 | + operatingSystem: "Web Browser", |
| 41 | + offers: { |
| 42 | + "@type": "Offer", |
| 43 | + price: "0", |
| 44 | + priceCurrency: "USD", |
| 45 | + }, |
| 46 | + }, |
| 47 | +}; |
2 | 48 |
|
3 | 49 | export default function AboutPage() { |
4 | 50 | return ( |
5 | | - <div className="space-y-xl bg-page-gradient-purple py-40"> |
| 51 | + <> |
| 52 | + <Script |
| 53 | + id="about-page-schema" |
| 54 | + type="application/ld+json" |
| 55 | + dangerouslySetInnerHTML={{ |
| 56 | + __html: JSON.stringify(aboutPageSchema), |
| 57 | + }} |
| 58 | + /> |
| 59 | + <div className="space-y-xl bg-page-gradient-purple py-40"> |
6 | 60 | <section className="container max-w-screen-md space-y-sm text-color-primary-text"> |
7 | 61 | <h1 className="text-4xl sm:text-4xl lg:text-6xl font-semibold mb-6 text-center font-assistant"> |
8 | 62 | About CollabyDraw |
@@ -127,5 +181,6 @@ export default function AboutPage() { |
127 | 181 | </div> |
128 | 182 | </section> |
129 | 183 | </div> |
| 184 | + </> |
130 | 185 | ); |
131 | 186 | } |
0 commit comments