diff --git a/src/lib/components/pokedex/PokedexCard.svelte b/src/lib/components/pokedex/PokedexCard.svelte new file mode 100644 index 0000000..1cb6949 --- /dev/null +++ b/src/lib/components/pokedex/PokedexCard.svelte @@ -0,0 +1,51 @@ + + +
+
+

+ {pokedex.name} +

+ + {#if pokedex.description} +

{pokedex.description}

+ {/if} + +
+ {#each typeBadges as badge} + {badge} + {/each} +
+ + {#if pokedex.gameScope} +
+ Game: + {pokedex.gameScope} +
+ {:else} +
+ Scope: All Games +
+ {/if} + +
+ + + +
+
+
diff --git a/src/lib/components/pokedex/PokedexEntryCatchRecord.svelte b/src/lib/components/pokedex/PokedexEntryCatchRecord.svelte index 85b931d..659126c 100644 --- a/src/lib/components/pokedex/PokedexEntryCatchRecord.svelte +++ b/src/lib/components/pokedex/PokedexEntryCatchRecord.svelte @@ -10,6 +10,7 @@ export let showForms: boolean; export let showShiny: boolean; export let userId: string | null = null; + export let pokedexId: string; // Create a default catch record if none exists $: if (!catchRecord) { @@ -17,6 +18,7 @@ _id: '', // Empty string, not temp ID - will be created by server userId: userId || '', pokedexEntryId: pokedexEntry._id, + pokedexId: pokedexId, haveToEvolve: false, caught: false, inHome: false, @@ -83,74 +85,76 @@ -
-
-
- -
-
-
-
- -
-
-
-
- -
-
- {#if pokedexEntry.canGigantamax && showForms} + {#if catchRecord} +
- {/if} -

- - -

-
+
+
+ +
+
+
+
+ +
+
+ {#if pokedexEntry.canGigantamax && showForms} +
+
+ +
+
+ {/if} +

+ + +

+
+ {/if}
{#if showOrigins} diff --git a/src/lib/components/pokedex/PokedexForm.svelte b/src/lib/components/pokedex/PokedexForm.svelte new file mode 100644 index 0000000..02a2656 --- /dev/null +++ b/src/lib/components/pokedex/PokedexForm.svelte @@ -0,0 +1,103 @@ + + +
+ + +
+ +
+ + +
+ +
+ +
+ + + + +
+
+ +
+ + +
+ + diff --git a/src/lib/components/pokedex/PokedexSidebar.svelte b/src/lib/components/pokedex/PokedexSidebar.svelte index fb25d38..28790b5 100644 --- a/src/lib/components/pokedex/PokedexSidebar.svelte +++ b/src/lib/components/pokedex/PokedexSidebar.svelte @@ -1,6 +1,8 @@