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

Add jsonLd metadata #247

Merged
merged 2 commits into from
May 8, 2024
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
25 changes: 25 additions & 0 deletions packages/web-app/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,25 @@ import { Footer, Topbar } from '@/app/_ui/components';
import { Providers } from './_providers';
import Image from 'next/image';
import backgroundDesktop from '../public/background-desktop.png';
import Head from 'next/head';

const jsonLd = {
'@context': 'https://schema.org',
'@type': 'Organization',
image:
'https://uploads-ssl.webflow.com/6613ccb2950e14dbbe77a183/661fab3674735b20d0c82435_citizend-share-image.jpg',
url: 'https://app.citizend.xyz',
sameAs: [
'https://twitter.com/citizendxyz',
'https://discord.com/invite/citizendxyz',
'https://t.me/+QcSyoxz9bpYyZDhk',
'https://medium.com/@citizendxyz',
],
logo: 'https://uploads-ssl.webflow.com/6613ccb2950e14dbbe77a183/66214110832182d072dc54f2_citizend-logo.png',
name: 'citizend: Token Launch Platform',
description:
'Citizend is the community-curated token launch platform of web3 enabling both community contributions and token launches in a secure, transparent and compliant way. Find the next early gem here.',
};

export const metadata: Metadata = {
title: {
Expand Down Expand Up @@ -40,6 +59,12 @@ export default function RootLayout({
}>) {
return (
<html lang="en" className={`${nohemi.variable} font-nohemi`}>
<Head>
<script
type="application/ld+json"
dangerouslySetInnerHTML={{ __html: JSON.stringify(jsonLd) }}
/>
</Head>
<body className={`relative overflow-hidden bg-mono-900`}>
<Image
alt="background"
Expand Down
1 change: 1 addition & 0 deletions packages/web-app/app/opengraph-image.alt.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Citizend: Token Launch Platform
Binary file added packages/web-app/app/opengraph-image.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions packages/web-app/app/twitter-image.alt.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Citizend: Token Launch Platform
Binary file added packages/web-app/app/twitter-image.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading