Skip to content

Commit

Permalink
Add pixel-art icons for ambassadors (#58)
Browse files Browse the repository at this point in the history
* Add icon assets from LazyGoose

* Add getAmbassadorIconImage + ambassadorIconImages

* Update version
  • Loading branch information
MattIPv4 authored Apr 2, 2024
1 parent 7c78a0a commit 92bc0e3
Show file tree
Hide file tree
Showing 40 changed files with 91 additions and 3 deletions.
Binary file added assets/ambassadors/abbott/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/ambassadors/appa/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/ambassadors/barbaraBakedBean/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/ambassadors/bb/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/ambassadors/chipsAhoy/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/ambassadors/coconut/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/ambassadors/ducky/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/ambassadors/fenn/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/ambassadors/georgie/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/ambassadors/hankMrMctrain/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/ambassadors/henrietta/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/ambassadors/henrique/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/ambassadors/jalapeno/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/ambassadors/marty/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/ambassadors/mia/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/ambassadors/miley/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/ambassadors/momo/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/ambassadors/moomin/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/ambassadors/nillaWafer/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/ambassadors/noodle/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/ambassadors/nugget/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/ambassadors/oliver/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/ambassadors/orion/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/ambassadors/patchy/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/ambassadors/pickles/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/ambassadors/polly/icon.png
Binary file added assets/ambassadors/puppy/icon.png
Binary file added assets/ambassadors/pushPop/icon.png
Binary file added assets/ambassadors/reed/icon.png
Binary file added assets/ambassadors/serrano/icon.png
Binary file added assets/ambassadors/siren/icon.png
Binary file added assets/ambassadors/snork/icon.png
Binary file added assets/ambassadors/stompy/icon.png
Binary file added assets/ambassadors/tico/icon.png
Binary file added assets/ambassadors/toasterStrudel/icon.png
Binary file added assets/ambassadors/tortellini/icon.png
Binary file added assets/ambassadors/winnieTheMoo/icon.png
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@alveusgg/data",
"version": "0.33.0",
"version": "0.34.0",
"private": true,
"license": "SEE LICENSE IN LICENSE.md",
"repository": {
Expand Down
88 changes: 88 additions & 0 deletions src/ambassadors/images.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,116 +7,146 @@ import {
import abbottImage1 from "../../assets/ambassadors/abbott/01.jpg";
import abbottImage2 from "../../assets/ambassadors/abbott/02.jpg";
import abbottImage3 from "../../assets/ambassadors/abbott/03.png";
import abbottImageIcon from "../../assets/ambassadors/abbott/icon.png";

import appaImage1 from "../../assets/ambassadors/appa/01.jpg";
import appaImage2 from "../../assets/ambassadors/appa/02.jpg";
import appaImage3 from "../../assets/ambassadors/appa/03.jpg";
import appaImageIcon from "../../assets/ambassadors/appa/icon.png";

import barbaraBakedBeanImage1 from "../../assets/ambassadors/barbaraBakedBean/01.jpg";
import barbaraBakedBeanImage2 from "../../assets/ambassadors/barbaraBakedBean/02.jpg";
import barbaraBakedBeanImage3 from "../../assets/ambassadors/barbaraBakedBean/03.jpg";
import barbaraBakedBeanImageIcon from "../../assets/ambassadors/barbaraBakedBean/icon.png";

import bbImage1 from "../../assets/ambassadors/bb/01.jpg";
import bbImage2 from "../../assets/ambassadors/bb/02.jpg";
import bbImageIcon from "../../assets/ambassadors/bb/icon.png";

import chipsAhoyImage1 from "../../assets/ambassadors/chipsAhoy/01.jpg";
import chipsAhoyImage2 from "../../assets/ambassadors/chipsAhoy/02.jpg";
import chipsImageIcon from "../../assets/ambassadors/chipsAhoy/icon.png";

import coconutImage1 from "../../assets/ambassadors/coconut/01.png";
import coconutImage2 from "../../assets/ambassadors/coconut/02.jpg";
import coconutImageIcon from "../../assets/ambassadors/coconut/icon.png";

import duckyImage1 from "../../assets/ambassadors/ducky/01.jpg";
import duckyImage2 from "../../assets/ambassadors/ducky/02.jpg";
import duckyImageIcon from "../../assets/ambassadors/ducky/icon.png";

import fennImage1 from "../../assets/ambassadors/fenn/01.jpg";
import fennImage2 from "../../assets/ambassadors/fenn/02.jpg";
import fennImage3 from "../../assets/ambassadors/fenn/03.jpg";
import fennImage4 from "../../assets/ambassadors/fenn/04.jpg";
import fennImage5 from "../../assets/ambassadors/fenn/05.jpg";
import fennImageIcon from "../../assets/ambassadors/fenn/icon.png";

import georgieImage1 from "../../assets/ambassadors/georgie/01.jpg";
import georgieImage2 from "../../assets/ambassadors/georgie/02.jpg";
import georgieImage3 from "../../assets/ambassadors/georgie/03.jpg";
import georgieImage4 from "../../assets/ambassadors/georgie/04.png";
import georgieImage5 from "../../assets/ambassadors/georgie/05.jpg";
import georgieImageMerch from "../../assets/ambassadors/georgie/merch.jpg";
import georgieImageIcon from "../../assets/ambassadors/georgie/icon.png";

import hankMrMctrainImage1 from "../../assets/ambassadors/hankMrMctrain/01.jpg";
import hankMrMctrainImage2 from "../../assets/ambassadors/hankMrMctrain/02.jpg";
import hankMrMctrainImage3 from "../../assets/ambassadors/hankMrMctrain/03.jpg";
import hankMrMctrainImageIcon from "../../assets/ambassadors/hankMrMctrain/icon.png";

import henriettaImage1 from "../../assets/ambassadors/henrietta/01.jpg";
import henriettaImageIcon from "../../assets/ambassadors/henrietta/icon.png";

import henriqueImage1 from "../../assets/ambassadors/henrique/01.jpg";
import henriqueImage2 from "../../assets/ambassadors/henrique/02.jpg";
import henriqueImage3 from "../../assets/ambassadors/henrique/03.jpg";
import henriqueImageIcon from "../../assets/ambassadors/henrique/icon.png";

import jalapenoImage1 from "../../assets/ambassadors/jalapeno/01.jpg";
import jalapenoImage2 from "../../assets/ambassadors/jalapeno/02.jpg";
import jalapenoImage3 from "../../assets/ambassadors/jalapeno/03.jpg";
import jalapenoImage4 from "../../assets/ambassadors/jalapeno/04.png";
import jalapenoImage5 from "../../assets/ambassadors/jalapeno/05.jpg";
import jalapenoImageIcon from "../../assets/ambassadors/jalapeno/icon.png";

import martyImage1 from "../../assets/ambassadors/marty/01.jpg";
import martyImage2 from "../../assets/ambassadors/marty/02.jpg";
import martyImage3 from "../../assets/ambassadors/marty/03.jpg";
import martyImageIcon from "../../assets/ambassadors/marty/icon.png";

import miaImage1 from "../../assets/ambassadors/mia/01.jpg";
import miaImage2 from "../../assets/ambassadors/mia/02.jpg";
import miaImage3 from "../../assets/ambassadors/mia/03.jpg";
import miaImage4 from "../../assets/ambassadors/mia/04.jpg";
import miaImage5 from "../../assets/ambassadors/mia/05.jpg";
import miaImageIcon from "../../assets/ambassadors/mia/icon.png";

import mileyImage1 from "../../assets/ambassadors/miley/01.jpg";
import mileyImage2 from "../../assets/ambassadors/miley/02.jpg";
import mileyImage3 from "../../assets/ambassadors/miley/03.jpg";
import mileyImage4 from "../../assets/ambassadors/miley/04.jpg";
import mileyImageIcon from "../../assets/ambassadors/miley/icon.png";

import momoImage1 from "../../assets/ambassadors/momo/01.jpg";
import momoImageIcon from "../../assets/ambassadors/momo/icon.png";

import moominImage1 from "../../assets/ambassadors/moomin/01.jpg";
import moominImage2 from "../../assets/ambassadors/moomin/02.jpg";
import moominImageIcon from "../../assets/ambassadors/moomin/icon.png";

import nillaWaferImage1 from "../../assets/ambassadors/nillaWafer/01.jpg";
import nillaWaferImage2 from "../../assets/ambassadors/nillaWafer/02.jpg";
import nillaWaferImageIcon from "../../assets/ambassadors/nillaWafer/icon.png";

import noodleImage1 from "../../assets/ambassadors/noodle/01.jpg";
import noodleImage2 from "../../assets/ambassadors/noodle/02.jpg";
import noodleImage3 from "../../assets/ambassadors/noodle/03.jpg";
import noodleImage4 from "../../assets/ambassadors/noodle/04.jpg";
import noodleImageIcon from "../../assets/ambassadors/noodle/icon.png";

import nuggetImage1 from "../../assets/ambassadors/nugget/01.jpg";
import nuggetImage2 from "../../assets/ambassadors/nugget/02.jpg";
import nuggetImage3 from "../../assets/ambassadors/nugget/03.jpg";
import nuggetImageIcon from "../../assets/ambassadors/nugget/icon.png";

import oliverImage1 from "../../assets/ambassadors/oliver/01.jpg";
import oliverImage2 from "../../assets/ambassadors/oliver/02.jpg";
import oliverImage3 from "../../assets/ambassadors/oliver/03.jpg";
import oliverImageIcon from "../../assets/ambassadors/oliver/icon.png";

import orionImage1 from "../../assets/ambassadors/orion/01.jpg";
import orionImageIcon from "../../assets/ambassadors/orion/icon.png";

import patchyImage1 from "../../assets/ambassadors/patchy/01.png";
import patchyImage2 from "../../assets/ambassadors/patchy/02.jpg";
import patchyImageIcon from "../../assets/ambassadors/patchy/icon.png";

import picklesImage1 from "../../assets/ambassadors/pickles/01.jpg";
import picklesImageIcon from "../../assets/ambassadors/pickles/icon.png";

import pollyImage1 from "../../assets/ambassadors/polly/01.jpg";
import pollyImageIcon from "../../assets/ambassadors/polly/icon.png";

import puppyImage1 from "../../assets/ambassadors/puppy/01.jpg";
import puppyImageIcon from "../../assets/ambassadors/puppy/icon.png";

import pushPopImage1 from "../../assets/ambassadors/pushPop/01.jpg";
import pushPopImage2 from "../../assets/ambassadors/pushPop/02.jpg";
import pushPopImageIcon from "../../assets/ambassadors/pushPop/icon.png";

import reedImage1 from "../../assets/ambassadors/reed/01.jpg";
import reedImage2 from "../../assets/ambassadors/reed/02.jpg";
import reedImage3 from "../../assets/ambassadors/reed/03.jpg";
import reedImage4 from "../../assets/ambassadors/reed/04.jpg";
import reedImage5 from "../../assets/ambassadors/reed/05.jpg";
import reedImageIcon from "../../assets/ambassadors/reed/icon.png";

import serranoImage1 from "../../assets/ambassadors/serrano/01.jpg";
import serranoImage2 from "../../assets/ambassadors/serrano/02.jpg";
import serranoImage3 from "../../assets/ambassadors/serrano/03.jpg";
import serranoImage4 from "../../assets/ambassadors/serrano/04.jpg";
import serranoImageIcon from "../../assets/ambassadors/serrano/icon.png";

import sirenImage1 from "../../assets/ambassadors/siren/01.jpg";
import sirenImage2 from "../../assets/ambassadors/siren/02.jpg";
Expand All @@ -126,9 +156,11 @@ import sirenImage5 from "../../assets/ambassadors/siren/05.jpg";
import sirenImage6 from "../../assets/ambassadors/siren/06.jpg";
import sirenImage7 from "../../assets/ambassadors/siren/07.jpg";
import sirenImageMerch from "../../assets/ambassadors/siren/merch.png";
import sirenImageIcon from "../../assets/ambassadors/siren/icon.png";

import snorkImage1 from "../../assets/ambassadors/snork/01.jpg";
import snorkImage2 from "../../assets/ambassadors/snork/02.jpg";
import snorkImageIcon from "../../assets/ambassadors/snork/icon.png";

import stompyImage1 from "../../assets/ambassadors/stompy/01.jpg";
import stompyImage2 from "../../assets/ambassadors/stompy/02.jpg";
Expand All @@ -137,19 +169,23 @@ import stompyImage4 from "../../assets/ambassadors/stompy/04.jpg";
import stompyImage5 from "../../assets/ambassadors/stompy/05.jpg";
import stompyImage6 from "../../assets/ambassadors/stompy/06.jpg";
import stompyImageMerch from "../../assets/ambassadors/stompy/merch.jpg";
import stompyImageIcon from "../../assets/ambassadors/stompy/icon.png";

import ticoImage1 from "../../assets/ambassadors/tico/01.jpg";
import ticoImage2 from "../../assets/ambassadors/tico/02.jpg";
import ticoImage3 from "../../assets/ambassadors/tico/03.jpg";
import ticoImageIcon from "../../assets/ambassadors/tico/icon.png";

import toasterStrudelImage1 from "../../assets/ambassadors/toasterStrudel/01.jpg";
import toasterStrudelImage2 from "../../assets/ambassadors/toasterStrudel/02.jpg";
import toasterStrudelImage3 from "../../assets/ambassadors/toasterStrudel/03.jpg";
import toasterStrudelImage4 from "../../assets/ambassadors/toasterStrudel/04.jpg";
import toasterStrudelImage5 from "../../assets/ambassadors/toasterStrudel/05.jpg";
import toasterStrudelImageIcon from "../../assets/ambassadors/toasterStrudel/icon.png";

import tortelliniImage1 from "../../assets/ambassadors/tortellini/01.jpg";
import tortelliniImage2 from "../../assets/ambassadors/tortellini/02.jpg";
import tortelliniImageIcon from "../../assets/ambassadors/tortellini/icon.png";

import winnieTheMooImage1 from "../../assets/ambassadors/winnieTheMoo/01.jpg";
import winnieTheMooImage2 from "../../assets/ambassadors/winnieTheMoo/02.jpg";
Expand All @@ -159,6 +195,7 @@ import winnieTheMooImage5 from "../../assets/ambassadors/winnieTheMoo/05.jpg";
import winnieTheMooImage6 from "../../assets/ambassadors/winnieTheMoo/06.jpg";
import winnieTheMooImage7 from "../../assets/ambassadors/winnieTheMoo/07.jpg";
import winnieTheMooImageMerch from "../../assets/ambassadors/winnieTheMoo/merch.png";
import winnieTheMooImageIcon from "../../assets/ambassadors/winnieTheMoo/icon.png";

type OneToNine = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
type ZeroToNine = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
Expand Down Expand Up @@ -462,6 +499,50 @@ export const ambassadorMerchImages: {
winnieTheMoo: { src: winnieTheMooImageMerch, alt: "" },
};

// Marked as Partial as these images are provided by a community member,
// LazyGoose, and so might not exist when adding a new ambassador.
export const ambassadorIconImages: Partial<{
[key in AmbassadorKey]: AmbassadorImage;
}> = {
abbott: { src: abbottImageIcon, alt: "" },
appa: { src: appaImageIcon, alt: "" },
barbaraBakedBean: { src: barbaraBakedBeanImageIcon, alt: "" },
bb: { src: bbImageIcon, alt: "" },
chipsAhoy: { src: chipsImageIcon, alt: "" },
coconut: { src: coconutImageIcon, alt: "" },
ducky: { src: duckyImageIcon, alt: "" },
fenn: { src: fennImageIcon, alt: "" },
georgie: { src: georgieImageIcon, alt: "" },
hankMrMctrain: { src: hankMrMctrainImageIcon, alt: "" },
henrietta: { src: henriettaImageIcon, alt: "" },
henrique: { src: henriqueImageIcon, alt: "" },
jalapeno: { src: jalapenoImageIcon, alt: "" },
marty: { src: martyImageIcon, alt: "" },
mia: { src: miaImageIcon, alt: "" },
miley: { src: mileyImageIcon, alt: "" },
momo: { src: momoImageIcon, alt: "" },
moomin: { src: moominImageIcon, alt: "" },
nillaWafer: { src: nillaWaferImageIcon, alt: "" },
noodle: { src: noodleImageIcon, alt: "" },
nugget: { src: nuggetImageIcon, alt: "" },
oliver: { src: oliverImageIcon, alt: "" },
orion: { src: orionImageIcon, alt: "" },
patchy: { src: patchyImageIcon, alt: "" },
pickles: { src: picklesImageIcon, alt: "" },
polly: { src: pollyImageIcon, alt: "" },
puppy: { src: puppyImageIcon, alt: "" },
pushPop: { src: pushPopImageIcon, alt: "" },
reed: { src: reedImageIcon, alt: "" },
serrano: { src: serranoImageIcon, alt: "" },
siren: { src: sirenImageIcon, alt: "" },
snork: { src: snorkImageIcon, alt: "" },
stompy: { src: stompyImageIcon, alt: "" },
tico: { src: ticoImageIcon, alt: "" },
toasterStrudel: { src: toasterStrudelImageIcon, alt: "" },
tortellini: { src: tortelliniImageIcon, alt: "" },
winnieTheMoo: { src: winnieTheMooImageIcon, alt: "" },
};

export const getAmbassadorImages = ((ambassador: AmbassadorKey | string) => {
if (!isAmbassadorKey(ambassador)) return undefined;

Expand All @@ -477,3 +558,10 @@ export const getAmbassadorMerchImage = ((
return ambassadorMerchImages[ambassador];
}) as ((ambassador: AmbassadorWithPlushKey<Ambassadors>) => AmbassadorImage) &
((ambassador: string) => AmbassadorImage | undefined);

export const getAmbassadorIconImage = ((ambassador: AmbassadorKey | string) => {
if (!isAmbassadorKey(ambassador)) return undefined;

return ambassadorIconImages[ambassador];
}) as ((ambassador: AmbassadorKey) => AmbassadorImage | undefined) &
((ambassador: string) => AmbassadorImage | undefined);

0 comments on commit 92bc0e3

Please sign in to comment.