generated from nhcarrigan/template
### Explanation _No response_ ### Issue _No response_ ### Attestations - [x] I have read and agree to the [Code of Conduct](https://docs.nhcarrigan.com/community/coc/) - [x] I have read and agree to the [Community Guidelines](https://docs.nhcarrigan.com/community/guide/). - [x] My contribution complies with the [Contributor Covenant](https://docs.nhcarrigan.com/dev/covenant/). ### Dependencies - [ ] I have pinned the dependencies to a specific patch version. ### Style - [x] I have run the linter and resolved any errors. - [x] My pull request uses an appropriate title, matching the conventional commit standards. - [x] My scope of feat/fix/chore/etc. correctly matches the nature of changes in my pull request. ### Tests - [x] My contribution adds new code, and I have added tests to cover it. - [ ] My contribution modifies existing code, and I have updated the tests to reflect these changes. - [x] All new and existing tests pass locally with my changes. - [x] Code coverage remains at or above the configured threshold. ### Documentation _No response_ ### Versioning Minor - My pull request introduces a new non-breaking feature. Reviewed-on: https://codeberg.org/nhcarrigan/portfolio/pulls/42 Co-authored-by: Naomi Carrigan <commits@nhcarrigan.com> Co-committed-by: Naomi Carrigan <commits@nhcarrigan.com>
38 lines
1.0 KiB
TypeScript
38 lines
1.0 KiB
TypeScript
/**
|
|
* @copyright nhcarrigan
|
|
* @license Naomi's Public License
|
|
* @author Naomi Carrigan
|
|
*/
|
|
import { PlayComponent } from "../../components/play";
|
|
import { Rule } from "../../components/rule";
|
|
import { Play } from "../../config/Play";
|
|
import type { JSX } from "react";
|
|
|
|
/**
|
|
* Renders the /play page.
|
|
* @returns A React Component.
|
|
*/
|
|
const PlayPage = (): JSX.Element => {
|
|
return (
|
|
<main className="w-[95%] text-center
|
|
max-w-4xl m-auto mt-16 mb-16 rounded-lg">
|
|
<h1 className="text-5xl">{`Play with Naomi`}</h1>
|
|
<section>
|
|
<p className="mb-2">
|
|
{`I play some silly li'l mobile games to keep myself from working non-stop. Here's what I'm currently playing - will you play with me?`}
|
|
</p>
|
|
<Rule />
|
|
<div className="w-full">
|
|
{Play.toSorted((a, b) => {
|
|
return a.name.localeCompare(b.name);
|
|
}).map((game) => {
|
|
return <PlayComponent key={game.name} {...game} />;
|
|
})}
|
|
</div>
|
|
</section>
|
|
</main>
|
|
);
|
|
};
|
|
|
|
export default PlayPage;
|