Skip to content

Commit

Permalink
feat: Page with information about tha games CurseForge supports, eith…
Browse files Browse the repository at this point in the history
…er on web, app (OW/standalone) or in-game.
  • Loading branch information
itssimple committed May 12, 2024
1 parent 33c1f98 commit d8b1507
Show file tree
Hide file tree
Showing 6 changed files with 983 additions and 4 deletions.
14 changes: 14 additions & 0 deletions .github/ISSUE_TEMPLATE/game-info.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: Invalid game info
about: Fix game info for this website
title: 'Invalid game: <name here>'
labels: game-info
assignees: ''

---

**What is the name of the game that has invalid information?**
_Enter the name of the game here_

**Could you tell us what's wrong with the info?**
_Enter the information that is incorrect here_
5 changes: 5 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ const config = {
navbar: {
title: "CurseForge Community",
items: [
{
to: "/games",
position: "left",
label: "Games",
},
{
to: "/tools",
position: "left",
Expand Down
20 changes: 16 additions & 4 deletions src/components/HomepageFeatures/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import styles from "./styles.module.css";

type FeatureItem = {
title: string;
Svg: React.ComponentType<React.ComponentProps<"svg">>;
Svg?: React.ComponentType<React.ComponentProps<"svg">>;
description: JSX.Element;
};

Expand All @@ -20,14 +20,26 @@ const FeatureList: FeatureItem[] = [
</>
),
},
{
title: "CurseForge Games Support Information",
description: (
<>
Find information about the games supported by CurseForge, and the
platforms that they are available on.<br />
<a href="/games">CurseForge Games</a>
</>
),
}
];

function Feature({ title, Svg, description }: FeatureItem) {
return (
<div className={clsx("col col--12")}>
<div className="text--center">
<Svg className={styles.featureSvg} role="img" />
</div>
{Svg ?
<div className="text--center">
<Svg className={styles.featureSvg} role="img" />
</div>
: null}
<div className="text--center padding-horiz--md">
<h3>{title}</h3>
<p>{description}</p>
Expand Down
Loading

0 comments on commit d8b1507

Please sign in to comment.