Skip to content

Commit

Permalink
refactor: use a DefaultSEO object for common pages metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
RiccardoM committed Sep 20, 2023
1 parent d5ff1ae commit aa5bf9f
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 33 deletions.
Binary file added public/cover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 2 additions & 31 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,39 +3,10 @@ import React from "react";
import Image from "next/image";
import Link from "next/link";
import mockupImage from "../../public/mockup-image-mobile.webp";
import DefaultSEO from "@/seo";

export const metadata = {
title: "Bondscape",
description: "Create real bonds with engaging event experiences",
alternates: {
canonical: "/",
languages: {
"en-US": "/en-US",
},
},
openGraph: {
type: "website",
url: "https://bondscape.app/",
title: "Bondscape",
description: "Create real bonds with engaging event experiences",
images: [
{
url: "https://bondscape.app/bondscapeLogo.png",
width: 500,
height: 100,
alt: "Bondscape logo picture",
type: "image/png",
},
],
siteName: "Bondscape",
},
twitter: {
creator: "@bondscape",
card: "summary_large_image",
title: "Bondscape",
description: "Create real bonds with engaging event experiences",
},
keywords: ["Desmos", "Event", "Crypto"],
...DefaultSEO,
};

export default function Home() {
Expand Down
4 changes: 3 additions & 1 deletion src/app/privacy/page.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import React from "react";
import MainLayout from "@/layouts/MainLayout";
import DefaultSEO from "@/seo";

export const metadata = {
title: "Bondscape | Privacy Policy",
...DefaultSEO,
title: "Privacy Policy | Bondscape",
};

export default function Privacy() {
Expand Down
35 changes: 35 additions & 0 deletions src/app/seo/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
const DefaultSEO = {
title: "Bondscape",
description: "Create real bonds with engaging event experiences",
alternates: {
canonical: "/",
languages: {
"en-US": "/en-US",
},
},
openGraph: {
type: "website",
url: "https://bondscape.app/",
title: "Bondscape",
description: "Create real bonds with engaging event experiences",
images: [
{
url: "https://bondscape.app/cover.png",
width: 1500,
height: 500,
alt: "Bondscape cover picture",
type: "image/png",
},
],
siteName: "Bondscape",
},
twitter: {
creator: "@bondscape",
card: "summary_large_image",
title: "Bondscape",
description: "Create real bonds with engaging event experiences",
},
keywords: ["Events", "Experiences", "Web3", "Bondscape", "Desmos"],
}

export default DefaultSEO;
4 changes: 3 additions & 1 deletion src/app/terms/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@

import React from "react";
import MainLayout from "@/layouts/MainLayout";
import DefaultSEO from "@/seo";

export const metadata = {
title: "Bondscape | Terms of Service",
...DefaultSEO,
title: "Terms of Service | Bondscape",
};

export default function Terms() {
Expand Down

0 comments on commit aa5bf9f

Please sign in to comment.