From 0d9f3dd9eb522501449b6bf33dd7671f043f577b Mon Sep 17 00:00:00 2001 From: jollygrin Date: Tue, 2 Apr 2024 01:46:14 +0200 Subject: [PATCH] adding default icons --- components/BoardCanvas/Tokens/index.tsx | 2 +- components/BoardCanvas/defaultTokenImages.ts | 21 ++++++++++++++++++++ components/Positions/position.modal.tsx | 13 +++++++----- public/tokens/Alien.svg | 5 +++++ public/tokens/BrickWall.svg | 5 +++++ public/tokens/CloudFog.svg | 5 +++++ public/tokens/Fire.svg | 5 +++++ public/tokens/Flag.svg | 5 +++++ public/tokens/HandShield.svg | 5 +++++ public/tokens/ShieldHalf.svg | 5 +++++ public/tokens/Totem.svg | 5 +++++ public/tokens/Trap.svg | 5 +++++ 12 files changed, 75 insertions(+), 6 deletions(-) create mode 100644 components/BoardCanvas/defaultTokenImages.ts create mode 100644 public/tokens/Alien.svg create mode 100644 public/tokens/BrickWall.svg create mode 100644 public/tokens/CloudFog.svg create mode 100644 public/tokens/Fire.svg create mode 100644 public/tokens/Flag.svg create mode 100644 public/tokens/HandShield.svg create mode 100644 public/tokens/ShieldHalf.svg create mode 100644 public/tokens/Totem.svg create mode 100644 public/tokens/Trap.svg diff --git a/components/BoardCanvas/Tokens/index.tsx b/components/BoardCanvas/Tokens/index.tsx index bdfeaa2..0ada566 100644 --- a/components/BoardCanvas/Tokens/index.tsx +++ b/components/BoardCanvas/Tokens/index.tsx @@ -1,5 +1,5 @@ const Image = ({ imageUrl }: { imageUrl: string }) => - ` Tokens - + Add Token (via url) {imageUrl && } setImageUrl(e.target.value)} /> @@ -235,9 +236,11 @@ const TokenPreview = ({ Default Tokens - setImage("https://picsum.photos/200")}> - - + {DEFAULT_TOKEN_IMAGES.map((img) => ( + setImage(img)}> + + + ))} diff --git a/public/tokens/Alien.svg b/public/tokens/Alien.svg new file mode 100644 index 0000000..96bfd17 --- /dev/null +++ b/public/tokens/Alien.svg @@ -0,0 +1,5 @@ + + + diff --git a/public/tokens/BrickWall.svg b/public/tokens/BrickWall.svg new file mode 100644 index 0000000..2955fe7 --- /dev/null +++ b/public/tokens/BrickWall.svg @@ -0,0 +1,5 @@ + + + diff --git a/public/tokens/CloudFog.svg b/public/tokens/CloudFog.svg new file mode 100644 index 0000000..f285ca3 --- /dev/null +++ b/public/tokens/CloudFog.svg @@ -0,0 +1,5 @@ + + + diff --git a/public/tokens/Fire.svg b/public/tokens/Fire.svg new file mode 100644 index 0000000..e20cf65 --- /dev/null +++ b/public/tokens/Fire.svg @@ -0,0 +1,5 @@ + + + diff --git a/public/tokens/Flag.svg b/public/tokens/Flag.svg new file mode 100644 index 0000000..12b1710 --- /dev/null +++ b/public/tokens/Flag.svg @@ -0,0 +1,5 @@ + + + diff --git a/public/tokens/HandShield.svg b/public/tokens/HandShield.svg new file mode 100644 index 0000000..4775a39 --- /dev/null +++ b/public/tokens/HandShield.svg @@ -0,0 +1,5 @@ + + + diff --git a/public/tokens/ShieldHalf.svg b/public/tokens/ShieldHalf.svg new file mode 100644 index 0000000..3061fd3 --- /dev/null +++ b/public/tokens/ShieldHalf.svg @@ -0,0 +1,5 @@ + + + diff --git a/public/tokens/Totem.svg b/public/tokens/Totem.svg new file mode 100644 index 0000000..0e0c879 --- /dev/null +++ b/public/tokens/Totem.svg @@ -0,0 +1,5 @@ + + + diff --git a/public/tokens/Trap.svg b/public/tokens/Trap.svg new file mode 100644 index 0000000..5d8c5f5 --- /dev/null +++ b/public/tokens/Trap.svg @@ -0,0 +1,5 @@ + + +