mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-02-11 22:45:04 -05:00
feat: meta tags for player pages feat: meta tags for quest pages feat: meta tags for patrons page fix: typos, extra tags feat: HeadComponent for metadata feat: HeadComponent in pages Implements the HeadComponent from components/Seo.tsx to take props and render the relevant meta tags in the pages fix: type-cast to string fix: string for playersDescriptionmeta fix: optional chaining player meta data fix: text consistency and typo-fixes fix: use player helpers for meta feat: meta tags for guilds route feat: meta tags for player pages feat: meta tags for quest pages feat: meta tags for patrons page feat: HeadComponent in pages Implements the HeadComponent from components/Seo.tsx to take props and render the relevant meta tags in the pages fix: type-cast to string fix: import Head in _app
32 lines
903 B
TypeScript
32 lines
903 B
TypeScript
import { PageContainer } from 'components/Container';
|
|
import { PatronList } from 'components/Patron/PatronList';
|
|
import { HeadComponent } from 'components/Seo';
|
|
import { getPatrons } from 'graphql/getPatrons';
|
|
import { InferGetStaticPropsType } from 'next';
|
|
import React from 'react';
|
|
|
|
type Props = InferGetStaticPropsType<typeof getStaticProps>;
|
|
|
|
export const getStaticProps = async () => {
|
|
const patrons = await getPatrons();
|
|
return {
|
|
props: {
|
|
patrons,
|
|
},
|
|
revalidate: 1,
|
|
};
|
|
};
|
|
|
|
const PatronsPage: React.FC<Props> = ({ patrons }) => (
|
|
<PageContainer>
|
|
<HeadComponent
|
|
title="Metagame's Patrons"
|
|
description="Metagame is a Massive Online Coordination Game! Metagame's Patrons enable us to succeed by helping us with funds."
|
|
url="https://my.metagame.wtf/patrons"
|
|
/>
|
|
<PatronList patrons={patrons} />
|
|
</PageContainer>
|
|
);
|
|
|
|
export default PatronsPage;
|