Skip to content

Commit d8b1507

Browse files
committed
feat: Page with information about tha games CurseForge supports, either on web, app (OW/standalone) or in-game.
1 parent 33c1f98 commit d8b1507

File tree

6 files changed

+983
-4
lines changed

6 files changed

+983
-4
lines changed

.github/ISSUE_TEMPLATE/game-info.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
name: Invalid game info
3+
about: Fix game info for this website
4+
title: 'Invalid game: <name here>'
5+
labels: game-info
6+
assignees: ''
7+
8+
---
9+
10+
**What is the name of the game that has invalid information?**
11+
_Enter the name of the game here_
12+
13+
**Could you tell us what's wrong with the info?**
14+
_Enter the information that is incorrect here_

docusaurus.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ const config = {
4949
navbar: {
5050
title: "CurseForge Community",
5151
items: [
52+
{
53+
to: "/games",
54+
position: "left",
55+
label: "Games",
56+
},
5257
{
5358
to: "/tools",
5459
position: "left",

src/components/HomepageFeatures/index.tsx

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import styles from "./styles.module.css";
44

55
type FeatureItem = {
66
title: string;
7-
Svg: React.ComponentType<React.ComponentProps<"svg">>;
7+
Svg?: React.ComponentType<React.ComponentProps<"svg">>;
88
description: JSX.Element;
99
};
1010

@@ -20,14 +20,26 @@ const FeatureList: FeatureItem[] = [
2020
</>
2121
),
2222
},
23+
{
24+
title: "CurseForge Games Support Information",
25+
description: (
26+
<>
27+
Find information about the games supported by CurseForge, and the
28+
platforms that they are available on.<br />
29+
<a href="/games">CurseForge Games</a>
30+
</>
31+
),
32+
}
2333
];
2434

2535
function Feature({ title, Svg, description }: FeatureItem) {
2636
return (
2737
<div className={clsx("col col--12")}>
28-
<div className="text--center">
29-
<Svg className={styles.featureSvg} role="img" />
30-
</div>
38+
{Svg ?
39+
<div className="text--center">
40+
<Svg className={styles.featureSvg} role="img" />
41+
</div>
42+
: null}
3143
<div className="text--center padding-horiz--md">
3244
<h3>{title}</h3>
3345
<p>{description}</p>

0 commit comments

Comments
 (0)