Skip to content

Commit e3f359a

Browse files
committed
Add notes to landing page
1 parent 4825987 commit e3f359a

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

src/components/MetaContainer/MetaItem.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,24 @@ const MetaItem = React.forwardRef(
223223
>
224224
{gameEngine.description()}
225225
</ReactMarkdown>
226+
{gameEngine.notes() === undefined ? null : (
227+
<div
228+
style={{
229+
fontSize: "smaller",
230+
backgroundColor: "rgba(128,128,128,0.15)",
231+
padding: "0.5em",
232+
borderRadius: "0.5em",
233+
marginBottom: "1em",
234+
}}
235+
>
236+
<ReactMarkdown
237+
rehypePlugins={[rehypeRaw]}
238+
className="content"
239+
>
240+
{gameEngine.notes()}
241+
</ReactMarkdown>
242+
</div>
243+
)}
226244
<GameVariants
227245
metaGame={game.uid}
228246
variantsSetter={setSelectedVariants}

0 commit comments

Comments
 (0)