diff --git a/src/cards.ts b/src/cards.ts
new file mode 100644
index 0000000..f81f0d4
--- /dev/null
+++ b/src/cards.ts
@@ -0,0 +1,41 @@
+import {
+ DominionCard,
+ TYPE_ACTION,
+ TYPE_DURATION,
+ TYPE_REACTION,
+ TYPE_TREASURE,
+ TYPE_VICTORY,
+} from "./types.ts";
+
+const expansionIcon = "";
+const author = "Dylan";
+
+export const cards: DominionCard[] = [
+ {
+ orientation: "card",
+ title: "Flask",
+ description:
+ "+2 Cards\n\nAt the start of your Clean-up phase, you may put a card from your hand onto your deck.",
+ types: [TYPE_TREASURE],
+ image: "",
+ artist: "",
+ author,
+ version: "0.1",
+ cost: "$6",
+ preview: "",
+ expansionIcon,
+ },
+ {
+ orientation: "card",
+ title: "Promising Land",
+ description: "Worth 1% per 3 cards you have that cost $4 or $5.",
+ types: [TYPE_VICTORY],
+ image: "",
+ artist: "",
+ author,
+ version: "",
+ cost: "$3",
+ preview: "",
+ expansionIcon,
+ },
+];
diff --git a/src/client/App.tsx b/src/client/App.tsx
index 3a52d31..d700c3e 100644
--- a/src/client/App.tsx
+++ b/src/client/App.tsx
@@ -1,12 +1,12 @@
import { useState } from "react";
-import { sampleCards } from "../sampleData.ts";
+import { cards } from "../cards.ts";
import { Card } from "./Card.tsx";
export const App = () => {
const [count, setCount] = useState(0);
return
- {sampleCards.map((sampleCard) => {
- return
+ {cards.map((card) => {
+ return
})}
;
diff --git a/src/sampleData.ts b/src/sampleData.ts
index 4d54d2a..0e73904 100644
--- a/src/sampleData.ts
+++ b/src/sampleData.ts
@@ -15,6 +15,7 @@ export const sampleCards: DominionCard[] = [
"+*\n\nReveal the top card of your deck. If it's an Action card, +1 Action. If it has ^ in its cost, +1 Card.",
types: [TYPE_ACTION, TYPE_DURATION, TYPE_REACTION],
image: "https://wiki.dominionstrategy.com/images/7/76/AdventurerArt.jpg",
+ expansionIcon: "",
artist: "Dall-E",
author: "John Doe",
version: "",
@@ -27,6 +28,7 @@ export const sampleCards: DominionCard[] = [
description: "+1 Card\n+1 Action\n+1 Buy\n+$1",
types: [TYPE_ACTION],
image: "",
+ expansionIcon: "",
artist: "Leonardo DaVinci",
author: "Jane Smith",
version: "",
@@ -40,6 +42,7 @@ export const sampleCards: DominionCard[] = [
"+2 Cards\n\nAt the start of your Clean-up phase, you may put a card from your hand onto your deck.",
types: [TYPE_TREASURE],
image: "",
+ expansionIcon: "",
artist: "",
author: "",
version: "",
@@ -52,6 +55,7 @@ export const sampleCards: DominionCard[] = [
description: "Worth 1% per 3 cards you have that cost $4 or $5.",
types: [TYPE_VICTORY],
image: "",
+ expansionIcon: "",
artist: "",
author: "",
version: "",
@@ -64,6 +68,7 @@ export const sampleCards: DominionCard[] = [
description: "Choose one: +3 Cards, or +2 Actions.\n\n\n-\n\n\n2%",
types: [TYPE_ACTION, TYPE_VICTORY],
image: "",
+ expansionIcon: "",
artist: "",
author: "",
version: "",
diff --git a/src/types.ts b/src/types.ts
index 2d22d0c..2fed73a 100644
--- a/src/types.ts
+++ b/src/types.ts
@@ -43,6 +43,7 @@ export type DominionCard =
author: string;
version: string;
cost: DominionText;
+ expansionIcon: string;
preview?: DominionText;
}
| {