-
-
Notifications
You must be signed in to change notification settings - Fork 262
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature(airdrops): Add seo and centralized config (#15571)
* add app config * add seo config * update header and footer links * update root layout * update index page * update index page * update campaign page
- Loading branch information
Showing
7 changed files
with
91 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/** | ||
* Configuration for the airdrops website | ||
*/ | ||
const STATIC_SITE_URL = 'https://unlock-protocol.com' | ||
|
||
export const config = { | ||
// Base URL for the airdrops website | ||
baseUrl: 'https://airdrops.unlock-protocol.com', | ||
|
||
// Static site URL | ||
staticSiteUrl: STATIC_SITE_URL, | ||
|
||
// Dashboard URL | ||
dashboardUrl: 'https://app.unlock-protocol.com', | ||
|
||
// App name and branding | ||
appName: { | ||
default: 'Airdrops', | ||
full: 'Unlock Airdrops', | ||
brand: 'Unlock Protocol', | ||
}, | ||
|
||
// Metadata descriptions | ||
descriptions: { | ||
default: | ||
'The Unlock Protocol belongs to its community of creators, developers, and users. Contribute code, docs, or just use the protocol and claim UP tokens.', | ||
}, | ||
|
||
// Images | ||
images: { | ||
default: `${STATIC_SITE_URL}/images/unlock.png`, | ||
thumbnail: `${STATIC_SITE_URL}/images/unlock.png`, | ||
favicon: '/favicon.ico', | ||
}, | ||
|
||
// Social media handles | ||
social: { | ||
twitter: '@UnlockProtocol', | ||
github: 'unlock-protocol', | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { Metadata } from 'next' | ||
import { config } from './app' | ||
|
||
// Shared metadata configuration for SEO | ||
export const SHARED_METADATA: Metadata = { | ||
title: { | ||
default: config.appName.default, | ||
template: `%s | ${config.appName.brand}`, | ||
}, | ||
description: config.descriptions.default, | ||
openGraph: { | ||
type: 'website', | ||
locale: 'en_US', | ||
url: config.baseUrl, | ||
siteName: config.appName.default, | ||
images: [ | ||
{ | ||
url: config.images.default, | ||
alt: config.appName.full, | ||
}, | ||
], | ||
}, | ||
twitter: { | ||
card: 'summary_large_image', | ||
site: config.social.twitter, | ||
creator: config.social.twitter, | ||
}, | ||
} |