Skip to content

Commit f477866

Browse files
Better quote block
Fixes #141
1 parent 1d4d8eb commit f477866

4 files changed

Lines changed: 171 additions & 15 deletions

File tree

content/posts/Mini-Game-Jam-20---Board-Game-Jam.mdx

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: 'Mini Game Jam #20 - Board Game Jam!'
2+
title: "Mini Game Jam #20 - Board Game Jam!"
33
author: UnsignedArduino
44
description: >-
55
The June 2024 MakeCode Arcade Mini Game Jam theme has been released - board
@@ -8,26 +8,30 @@ tags:
88
- mini game jam
99
- board game
1010
createdAt: 2024-06-04T01:03:55.875Z
11-
lastUpdated: 2024-06-04T01:06:40.621Z
11+
lastUpdated: 2024-07-11T01:37:47.540Z
1212
---
1313

1414
The June 2024 mini game jam theme has been released - board games! Check out the [forum post](https://forum.makecode.com/t/announcement-makecode-arcade-mini-game-jam-20-board-game-jam/29077?u=unsignedarduino) for more information and rules.
1515

1616
The theme "board game" for this mini game jam is for you to implement any games you could typically play together with friends/family at a table without devices, like card or dice-based games!
1717

18-
***
19-
20-
Some good examples of games that match this theme:
21-
22-
* Virtual card games like Slay the Spire, Hearthstone, and Balatro
23-
* Games with dice mechanics like Dicey Dungeons, Citizen Sleeper, and Slice and Dice
24-
* Board games like Mario Party 1 and this weird N64 Rugrats game 3 that my brother and I always rented from Blockbuster for some reason and I have super clear childhood memories of even though it's probably terrible
25-
26-
And of course any games that recreate classic games like mahjong, solitaire, yahtzee, etc.
27-
28-
*[Forum post](https://forum.makecode.com/t/announcement-makecode-arcade-mini-game-jam-20-board-game-jam/29077?u=unsignedarduino) by [@richard](https://forum.makecode.com/u/richard)*
29-
30-
***
18+
<Quote
19+
quote={
20+
<>
21+
Some good examples of games that match this theme: * Virtual card games
22+
like Slay the Spire, Hearthstone, and Balatro * Games with dice mechanics
23+
like Dicey Dungeons, Citizen Sleeper, and Slice and Dice * Board games
24+
like Mario Party 1 and this weird N64 Rugrats game 3 that my brother and I
25+
always rented from Blockbuster for some reason and I have super clear
26+
childhood memories of even though it's probably terrible And of course any
27+
games that recreate classic games like mahjong, solitaire, yahtzee, etc.
28+
</>
29+
}
30+
originalPlace="Forum post"
31+
originalPlaceURL="https://forum.makecode.com/t/announcement-makecode-arcade-mini-game-jam-20-board-game-jam/29077?u=unsignedarduino"
32+
authorName="@richard"
33+
authorNameURL="https://forum.makecode.com/u/richard"
34+
/>
3135

3236
It's funny how this month's mini game jam theme parallels the [weekly discussion topics](https://forum.makecode.com/t/weekly-topic-favorite-board-game/29067?u=unsignedarduino).
3337

src/components/Blog/Elements.tsx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,23 @@ const tinaComponents = {
1818
</ThemedSyntaxHighlighter>
1919
);
2020
},
21+
Quote: (props: any) => {
22+
return (
23+
<div className="border-start border-secondary border-2 ps-2">
24+
<blockquote cite={props.originalPlaceURL}>
25+
<RichTextSectionRenderer content={props.quote} />
26+
<footer>
27+
<AutoLink href={props.authorNameURL}>{props.authorName}</AutoLink>,{" "}
28+
<cite>
29+
<AutoLink href={props.originalPlaceURL}>
30+
{props.originalPlace}
31+
</AutoLink>
32+
</cite>
33+
</footer>
34+
</blockquote>
35+
</div>
36+
);
37+
},
2138
MakeCodeArcadeBlockDoc,
2239
MakeCodeArcadeProjectCode,
2340
MakeCodeArcadeProjectEditor,

tina/config.ts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,38 @@ export default defineConfig({
278278
label: "Body",
279279
isBody: true,
280280
templates: [
281+
{
282+
name: "Quote",
283+
label: "Quote",
284+
fields: [
285+
{
286+
name: "quote",
287+
label: "Quote",
288+
type: "rich-text",
289+
required: true,
290+
},
291+
{
292+
name: "originalPlace",
293+
label: "Original place",
294+
type: "string",
295+
},
296+
{
297+
name: "originalPlaceURL",
298+
label: "Original place URL",
299+
type: "string",
300+
},
301+
{
302+
name: "authorName",
303+
label: "Author",
304+
type: "string",
305+
},
306+
{
307+
name: "authorNameURL",
308+
label: "Author URL",
309+
type: "string",
310+
},
311+
],
312+
},
281313
{
282314
name: "MakeCodeArcadeBlockDoc",
283315
label: "MakeCode Arcade Block Documentation",

tina/tina-lock.json

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,55 @@
328328
"label": "Body",
329329
"isBody": true,
330330
"templates": [
331+
{
332+
"name": "Quote",
333+
"label": "Quote",
334+
"fields": [
335+
{
336+
"name": "quote",
337+
"label": "Quote",
338+
"type": "rich-text",
339+
"required": true,
340+
"namespace": ["post", "body", "Quote", "quote"],
341+
"searchable": true,
342+
"parser": { "type": "mdx" },
343+
"uid": false
344+
},
345+
{
346+
"name": "originalPlace",
347+
"label": "Original place",
348+
"type": "string",
349+
"namespace": ["post", "body", "Quote", "originalPlace"],
350+
"searchable": true,
351+
"uid": false
352+
},
353+
{
354+
"name": "originalPlaceURL",
355+
"label": "Original place URL",
356+
"type": "string",
357+
"namespace": ["post", "body", "Quote", "originalPlaceURL"],
358+
"searchable": true,
359+
"uid": false
360+
},
361+
{
362+
"name": "authorName",
363+
"label": "Author",
364+
"type": "string",
365+
"namespace": ["post", "body", "Quote", "authorName"],
366+
"searchable": true,
367+
"uid": false
368+
},
369+
{
370+
"name": "authorNameURL",
371+
"label": "Author URL",
372+
"type": "string",
373+
"namespace": ["post", "body", "Quote", "authorNameURL"],
374+
"searchable": true,
375+
"uid": false
376+
}
377+
],
378+
"namespace": ["post", "body", "Quote"]
379+
},
331380
{
332381
"name": "MakeCodeArcadeBlockDoc",
333382
"label": "MakeCode Arcade Block Documentation",
@@ -2594,6 +2643,52 @@
25942643
}
25952644
]
25962645
},
2646+
{
2647+
"kind": "InputObjectTypeDefinition",
2648+
"name": { "kind": "Name", "value": "PostBodyQuoteFilter" },
2649+
"fields": [
2650+
{
2651+
"kind": "InputValueDefinition",
2652+
"name": { "kind": "Name", "value": "quote" },
2653+
"type": {
2654+
"kind": "NamedType",
2655+
"name": { "kind": "Name", "value": "RichTextFilter" }
2656+
}
2657+
},
2658+
{
2659+
"kind": "InputValueDefinition",
2660+
"name": { "kind": "Name", "value": "originalPlace" },
2661+
"type": {
2662+
"kind": "NamedType",
2663+
"name": { "kind": "Name", "value": "StringFilter" }
2664+
}
2665+
},
2666+
{
2667+
"kind": "InputValueDefinition",
2668+
"name": { "kind": "Name", "value": "originalPlaceURL" },
2669+
"type": {
2670+
"kind": "NamedType",
2671+
"name": { "kind": "Name", "value": "StringFilter" }
2672+
}
2673+
},
2674+
{
2675+
"kind": "InputValueDefinition",
2676+
"name": { "kind": "Name", "value": "authorName" },
2677+
"type": {
2678+
"kind": "NamedType",
2679+
"name": { "kind": "Name", "value": "StringFilter" }
2680+
}
2681+
},
2682+
{
2683+
"kind": "InputValueDefinition",
2684+
"name": { "kind": "Name", "value": "authorNameURL" },
2685+
"type": {
2686+
"kind": "NamedType",
2687+
"name": { "kind": "Name", "value": "StringFilter" }
2688+
}
2689+
}
2690+
]
2691+
},
25972692
{
25982693
"kind": "InputObjectTypeDefinition",
25992694
"name": {
@@ -2690,6 +2785,14 @@
26902785
"kind": "InputObjectTypeDefinition",
26912786
"name": { "kind": "Name", "value": "PostBodyFilter" },
26922787
"fields": [
2788+
{
2789+
"kind": "InputValueDefinition",
2790+
"name": { "kind": "Name", "value": "Quote" },
2791+
"type": {
2792+
"kind": "NamedType",
2793+
"name": { "kind": "Name", "value": "PostBodyQuoteFilter" }
2794+
}
2795+
},
26932796
{
26942797
"kind": "InputValueDefinition",
26952798
"name": { "kind": "Name", "value": "MakeCodeArcadeBlockDoc" },

0 commit comments

Comments
 (0)