accords-library.com/src/pages/index.tsx

32 lines
1.0 KiB
TypeScript
Raw Normal View History

import PostPage from "components/PostPage";
2022-05-08 19:37:41 +00:00
import {
getPostStaticProps,
PostStaticProps,
} from "graphql/getPostStaticProps";
import { Immutable } from "helpers/types";
2022-05-08 19:37:41 +00:00
export default function Home(props: Immutable<PostStaticProps>): JSX.Element {
const { post, langui, languages, currencies } = props;
return (
2022-05-07 09:19:28 +00:00
<PostPage
currencies={currencies}
languages={languages}
langui={langui}
post={post}
prependBody={
<div className="grid place-items-center place-content-center w-full gap-5 text-center">
<div className="[mask:url('/icons/accords.svg')] [mask-size:contain] [mask-repeat:no-repeat] [mask-position:center] w-32 aspect-square mobile:w-[50vw] bg-black" />
<h1 className="text-5xl mb-0">Accord&rsquo;s Library</h1>
<h2 className="text-xl -mt-5">
Discover Analyze Translate Archive
</h2>
</div>
}
displayTitle={false}
displayLanguageSwitcher
/>
);
}
2022-05-08 19:37:41 +00:00
export const getStaticProps = getPostStaticProps("home");