Skip to content

Commit 2712db4

Browse files
chore: add meta tags
1 parent ebb18c4 commit 2712db4

File tree

6 files changed

+38
-0
lines changed

6 files changed

+38
-0
lines changed

src/components/Header/Header.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ export const Header: React.FC = () => {
118118
target="_blank"
119119
rel="noreferrer"
120120
href="https://lichess.org/@/maia1"
121+
className="uppercase"
121122
>
122123
Play
123124
</a>

src/pages/401.tsx

+8
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import Link from 'next/link'
2+
import Head from 'next/head'
23
import { useContext } from 'react'
34
import { useRouter } from 'next/router'
45
import Chessground from '@react-chess/chessground'
@@ -15,6 +16,13 @@ export default function Error401Page() {
1516

1617
return (
1718
<div className="absolute flex h-full w-full flex-col items-center justify-center gap-8 px-4 md:flex-row md:px-0">
19+
<Head>
20+
<title>Beta Access – Maia Chess</title>
21+
<meta
22+
name="description"
23+
content="Maia Chess is in beta! Sign up to get access"
24+
/>
25+
</Head>
1826
<div
1927
style={{
2028
width: 'min(40vw, 40vh)',

src/pages/blog/[id].tsx

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import Head from 'next/head'
12
import Link from 'next/link'
23
import { useRouter } from 'next/router'
34
import { GetStaticPaths, GetStaticProps } from 'next'
@@ -20,6 +21,13 @@ const BlogPost = ({ post }: BlogPostProps) => {
2021

2122
return (
2223
<div className={styles.page}>
24+
<Head>
25+
<title>Blog – Maia Chess</title>
26+
<meta
27+
name="description"
28+
content="Maia Chess is in beta! Sign up to get access"
29+
/>
30+
</Head>
2331
<div className="flex w-full flex-col items-center justify-start overflow-x-hidden">
2432
<div className="flex flex-col gap-2 md:w-8/12">
2533
<Link href="/blog">

src/pages/blog/index.tsx

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import Head from 'next/head'
12
import Link from 'next/link'
23

34
import { Post } from 'src/types'
@@ -7,6 +8,13 @@ import { getSortedPostsData } from 'src/blog/posts'
78
export default function Blog({ posts }: { posts: Post[] }) {
89
return (
910
<div className={styles.page}>
11+
<Head>
12+
<title>Blog – Maia Chess</title>
13+
<meta
14+
name="description"
15+
content="Maia Chess is in beta! Sign up to get access"
16+
/>
17+
</Head>
1018
<h1 className="text-4xl font-bold">Blog</h1>
1119
<div className="flex w-full flex-col gap-6 overflow-x-hidden overflow-y-scroll">
1220
{posts.map((post, index) => (

src/pages/leaderboard.tsx

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import Head from 'next/head'
12
import { useCallback, useEffect, useState } from 'react'
23

34
import {
@@ -58,6 +59,13 @@ const Leaderboard: React.FC = () => {
5859

5960
return (
6061
<div className="flex h-full w-full flex-col items-start justify-center gap-8 px-[4%] py-[2%]">
62+
<Head>
63+
<title>Leaderboard – Maia Chess</title>
64+
<meta
65+
name="description"
66+
content="Top users across all Maia Chess leaderboards"
67+
/>
68+
</Head>
6169
<div className="flex flex-col">
6270
<h1 className="text-4xl font-bold">Rating Leaderboards</h1>
6371
<p>

src/pages/profile.tsx

+5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1+
import Head from 'next/head'
12
import { AuthenticatedWrapper, UserProfile } from 'src/components'
23

34
export default function AuthenticatedProfilePage() {
45
return (
56
<AuthenticatedWrapper>
7+
<Head>
8+
<title>Profile – Maia Chess</title>
9+
<meta name="description" content="User profile and statistics" />
10+
</Head>
611
<UserProfile />
712
</AuthenticatedWrapper>
813
)

0 commit comments

Comments
 (0)