Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added new images #43

Merged
merged 1 commit into from
Jan 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed public/meta/article-og.png
Binary file not shown.
Binary file removed public/meta/developer-portal-og-image.jpg
Binary file not shown.
Binary file added public/meta/developer.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/meta/ecosystem-og-image.jpg
Binary file not shown.
Binary file added public/meta/ecosystem.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/meta/glossary-og-image.jpg
Binary file not shown.
Binary file added public/meta/light.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/meta/og-image-default.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/meta/og-image.jpg
Binary file not shown.
Binary file added public/meta/tia.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 16 additions & 17 deletions src/components/Meta/Meta.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
const meta = (seo = { title: null, description: null, image: null }) => {
const defaultSeo = {
title: "Celestia",
description:
"Celestia is the modular blockchain powering unstoppable applications with full-stack customizability.",
image: "/meta/og-image.jpg",
};
const defaultSeo = {
title: "Celestia",
description: "Celestia is the modular blockchain powering unstoppable applications with full-stack customizability.",
image: "/meta/og-image-default.jpg",
};

const { title, description, image } = seo;
const metaTitle = title ? `${title} | ${defaultSeo.title}` : defaultSeo.title;
const metaDescription = description || defaultSeo.description;
const metaImage = image || defaultSeo.image;
const { title, description, image } = seo;
const metaTitle = title ? `${title} | ${defaultSeo.title}` : defaultSeo.title;
const metaDescription = description || defaultSeo.description;
const metaImage = image || defaultSeo.image;

return {
title: metaTitle,
description: metaDescription,
openGraph: {
images: [`${process.env.NEXT_PUBLIC_SITE_URL}${metaImage}`],
},
};
return {
title: metaTitle,
description: metaDescription,
openGraph: {
images: [`${process.env.NEXT_PUBLIC_SITE_URL}${metaImage}`],
},
};
};

export default meta;
7 changes: 3 additions & 4 deletions src/data/build/seo.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
const seo = {
title: "Developer Portal",
description:
"The homepage for Celestia developers. Tutorials. Resources. Community.",
image: "/meta/developer-portal-og-image.jpg",
title: "Developer Portal",
description: "The homepage for Celestia developers. Tutorials. Resources. Community.",
image: "/meta/developer.jpg",
};

export default seo;
6 changes: 3 additions & 3 deletions src/data/careers/seo.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const seo = {
title: "Careers",
description:
"Join our team of leading engineers, researchers, and entrepreneurs in pioneering the first modular blockchain design.",
title: "Careers",
description: "Join our team of leading engineers, researchers, and entrepreneurs in pioneering the first modular blockchain design.",
image: "/meta/og-image-default.jpg",
};

export default seo;
6 changes: 3 additions & 3 deletions src/data/community/seo.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const seo = {
title: "Community",
description:
"Discover community hubs, discussion forums, and resources that are used by the global Celestia community.",
title: "Community",
description: "Discover community hubs, discussion forums, and resources that are used by the global Celestia community.",
image: "/meta/og-image-default.jpg",
};

export default seo;
7 changes: 3 additions & 4 deletions src/data/ecosystem/seo.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
const seo = {
title: "Ecosystem",
description:
"Celestia Ecosystem provides a wide range of apps and services built in the Celestia ecosystem.",
image: "/meta/ecosystem-og-image.jpg",
title: "Ecosystem",
description: "Celestia Ecosystem provides a wide range of apps and services built in the Celestia ecosystem.",
image: "/meta/ecosystem.jpg",
};

export default seo;
6 changes: 3 additions & 3 deletions src/data/faq/seo.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const seo = {
title: "FAQ",
description: "Find answers to frequently asked questions about Celestia.",
image: "/meta/og-image.jpg",
title: "FAQ",
description: "Find answers to frequently asked questions about Celestia.",
image: "/meta/og-image-default.jpg",
};

export default seo;
6 changes: 3 additions & 3 deletions src/data/glossary/seo.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const seo = {
title: "Glossary",
description: "Explore new terms about Celestia and modular blockchains.",
image: "/meta/og-image.jpg",
title: "Glossary",
description: "Explore new terms about Celestia and modular blockchains.",
image: "/meta/og-image-default.jpg",
};

export default seo;
7 changes: 3 additions & 4 deletions src/data/learn/seo.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
const seo = {
title: "Learn Modular",
description:
"Welcome to learn modular, your go-to place to learn about modular blockchains and everything in between.",
image: "/meta/og-image.jpg",
title: "Learn Modular",
description: "Welcome to learn modular, your go-to place to learn about modular blockchains and everything in between.",
image: "/meta/og-image-default.jpg",
};

export default seo;
6 changes: 3 additions & 3 deletions src/data/press/seo.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const seo = {
title: "Press",
description: "Find branding, news, social channels, and press contacts.",
image: "/meta/og-image.jpg",
title: "Press",
description: "Find branding, news, social channels, and press contacts.",
image: "/meta/og-image-default.jpg",
};

export default seo;
7 changes: 3 additions & 4 deletions src/data/run-a-light-node/seo.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
const seo = {
title: "Run a Node",
description:
"Build games with new capabilities. Celestia scales with the number of users so games can scale with their usebase.",
image: "/meta/og-image.jpg",
title: "Run a Node",
description: "Build games with new capabilities. Celestia scales with the number of users so games can scale with their usebase.",
image: "/meta/light.jpg",
};

export default seo;
3 changes: 2 additions & 1 deletion src/data/tos/seo.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const seo = {
title: "Terms of Service",
title: "Terms of Service",
image: "/meta/og-image-default.jpg",
};

export default seo;
8 changes: 4 additions & 4 deletions src/data/what-is-celestia/seo.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const seo = {
title: "What is Celestia?",
description:
"A complete beginner's guide to how Celestia works, its key benefits, and how anyone in the world will be able to create their own blockchain in minutes.",
image: "/meta/what-is-celestia-og-image.jpg",
title: "What is Celestia?",
description:
"A complete beginner's guide to how Celestia works, its key benefits, and how anyone in the world will be able to create their own blockchain in minutes.",
image: "/meta/og-image-default.jpg",
};

export default seo;
6 changes: 3 additions & 3 deletions src/data/what-is-da/seo.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const seo = {
title: "What is DA?",
description: "",
image: "/meta/og-image.jpg",
title: "What is DA?",
description: "",
image: "/meta/og-image-default.jpg",
};

export default seo;
6 changes: 3 additions & 3 deletions src/data/what-is-tia/seo.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const seo = {
title: "What is TIA?",
description: "Learn about TIA, the native token of the Celestia blockchain.",
image: "/meta/og-image.jpg",
title: "What is TIA?",
description: "Learn about TIA, the native token of the Celestia blockchain.",
image: "/meta/tia.jpg",
};

export default seo;
Loading