Skip to content

Commit

Permalink
chore: add meta tags
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinjosethomas committed Nov 2, 2024
1 parent ebb18c4 commit 2712db4
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ export const Header: React.FC = () => {
target="_blank"
rel="noreferrer"
href="https://lichess.org/@/maia1"
className="uppercase"
>
Play
</a>
Expand Down
8 changes: 8 additions & 0 deletions src/pages/401.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Link from 'next/link'
import Head from 'next/head'
import { useContext } from 'react'
import { useRouter } from 'next/router'
import Chessground from '@react-chess/chessground'
Expand All @@ -15,6 +16,13 @@ export default function Error401Page() {

return (
<div className="absolute flex h-full w-full flex-col items-center justify-center gap-8 px-4 md:flex-row md:px-0">
<Head>
<title>Beta Access – Maia Chess</title>
<meta
name="description"
content="Maia Chess is in beta! Sign up to get access"
/>
</Head>
<div
style={{
width: 'min(40vw, 40vh)',
Expand Down
8 changes: 8 additions & 0 deletions src/pages/blog/[id].tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import Head from 'next/head'
import Link from 'next/link'
import { useRouter } from 'next/router'
import { GetStaticPaths, GetStaticProps } from 'next'
Expand All @@ -20,6 +21,13 @@ const BlogPost = ({ post }: BlogPostProps) => {

return (
<div className={styles.page}>
<Head>
<title>Blog – Maia Chess</title>
<meta
name="description"
content="Maia Chess is in beta! Sign up to get access"
/>
</Head>
<div className="flex w-full flex-col items-center justify-start overflow-x-hidden">
<div className="flex flex-col gap-2 md:w-8/12">
<Link href="/blog">
Expand Down
8 changes: 8 additions & 0 deletions src/pages/blog/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import Head from 'next/head'
import Link from 'next/link'

import { Post } from 'src/types'
Expand All @@ -7,6 +8,13 @@ import { getSortedPostsData } from 'src/blog/posts'
export default function Blog({ posts }: { posts: Post[] }) {
return (
<div className={styles.page}>
<Head>
<title>Blog – Maia Chess</title>
<meta
name="description"
content="Maia Chess is in beta! Sign up to get access"
/>
</Head>
<h1 className="text-4xl font-bold">Blog</h1>
<div className="flex w-full flex-col gap-6 overflow-x-hidden overflow-y-scroll">
{posts.map((post, index) => (
Expand Down
8 changes: 8 additions & 0 deletions src/pages/leaderboard.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import Head from 'next/head'
import { useCallback, useEffect, useState } from 'react'

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

return (
<div className="flex h-full w-full flex-col items-start justify-center gap-8 px-[4%] py-[2%]">
<Head>
<title>Leaderboard – Maia Chess</title>
<meta
name="description"
content="Top users across all Maia Chess leaderboards"
/>
</Head>
<div className="flex flex-col">
<h1 className="text-4xl font-bold">Rating Leaderboards</h1>
<p>
Expand Down
5 changes: 5 additions & 0 deletions src/pages/profile.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
import Head from 'next/head'
import { AuthenticatedWrapper, UserProfile } from 'src/components'

export default function AuthenticatedProfilePage() {
return (
<AuthenticatedWrapper>
<Head>
<title>Profile – Maia Chess</title>
<meta name="description" content="User profile and statistics" />
</Head>
<UserProfile />
</AuthenticatedWrapper>
)
Expand Down

0 comments on commit 2712db4

Please sign in to comment.