diff --git a/frontend/README.md b/frontend/README.md index aaba594..57c719e 100644 --- a/frontend/README.md +++ b/frontend/README.md @@ -5,7 +5,8 @@ Une fois compilé le frontend utilise [Bun](https://bun.sh/). # TODO - [ ] Fix : Mettre en forme la liste des cartes sur mobile -- [ ] Fix : Mettre en forme les titres de liste de carte +- [x] Fix : Mettre en forme les titres de liste de carte +- [ ] Fix : Ajouter les icones de couleur pour les tops commandants - [ ] Fix : Changer le menu mobile - [x] Fix : Changer les cartes recto / verso - [ ] Feat : Ajouter la liste des decks dans l'espace decks diff --git a/frontend/src/lib/components/icons/ArtifactIcon.svelte b/frontend/src/lib/components/icons/ArtifactIcon.svelte new file mode 100644 index 0000000..4bb8371 --- /dev/null +++ b/frontend/src/lib/components/icons/ArtifactIcon.svelte @@ -0,0 +1,5 @@ + + + diff --git a/frontend/src/lib/components/icons/CommanderIcon.svelte b/frontend/src/lib/components/icons/CommanderIcon.svelte new file mode 100644 index 0000000..c903447 --- /dev/null +++ b/frontend/src/lib/components/icons/CommanderIcon.svelte @@ -0,0 +1,5 @@ + + + diff --git a/frontend/src/lib/components/icons/CreatureIcon.svelte b/frontend/src/lib/components/icons/CreatureIcon.svelte new file mode 100644 index 0000000..7054398 --- /dev/null +++ b/frontend/src/lib/components/icons/CreatureIcon.svelte @@ -0,0 +1,5 @@ + + + diff --git a/frontend/src/lib/components/icons/EnchantmentIcon.svelte b/frontend/src/lib/components/icons/EnchantmentIcon.svelte new file mode 100644 index 0000000..f129964 --- /dev/null +++ b/frontend/src/lib/components/icons/EnchantmentIcon.svelte @@ -0,0 +1,5 @@ + + + diff --git a/frontend/src/lib/components/icons/InstantIcon.svelte b/frontend/src/lib/components/icons/InstantIcon.svelte new file mode 100644 index 0000000..fcb2aac --- /dev/null +++ b/frontend/src/lib/components/icons/InstantIcon.svelte @@ -0,0 +1,5 @@ + + + diff --git a/frontend/src/lib/components/icons/LandIcon.svelte b/frontend/src/lib/components/icons/LandIcon.svelte new file mode 100644 index 0000000..61eab5d --- /dev/null +++ b/frontend/src/lib/components/icons/LandIcon.svelte @@ -0,0 +1,5 @@ + + + diff --git a/frontend/src/lib/components/icons/PlaneswalkerIcon.svelte b/frontend/src/lib/components/icons/PlaneswalkerIcon.svelte new file mode 100644 index 0000000..0a29790 --- /dev/null +++ b/frontend/src/lib/components/icons/PlaneswalkerIcon.svelte @@ -0,0 +1,5 @@ + + + diff --git a/frontend/src/lib/components/icons/SorceryIcon.svelte b/frontend/src/lib/components/icons/SorceryIcon.svelte new file mode 100644 index 0000000..e01a3bb --- /dev/null +++ b/frontend/src/lib/components/icons/SorceryIcon.svelte @@ -0,0 +1,5 @@ + + + diff --git a/frontend/src/routes/bset/[slug]/+page.svelte b/frontend/src/routes/bset/[slug]/+page.svelte index 89b2c9f..36e3c74 100644 --- a/frontend/src/routes/bset/[slug]/+page.svelte +++ b/frontend/src/routes/bset/[slug]/+page.svelte @@ -1,8 +1,15 @@
-

{slug}

- -

Commandants

+
+ +

Commandants

+
{#each commander as card} {/each} -

Planeswalker

+
+ +

Planeswalker

+
{#each planeswalker as card} {/each} -

Creature

+
+ +

Créatures

+
{#each creature as card} {/each} -

Rituels

+
+ +

Rituels

+
{#each sorcery as card} {/each} -

Artefacts

+
+ +

Artefacts

+
{#each artifact as card} {/each} -

Éphémères

+
+ +

Éphemères

+
{#each instant as card} {/each} -

Enchantements

+
+ +

Enchantements

+
{#each enchantment as card} {/each} -

Terrains

+
+ +

Terrains

+
{#each land as card} diff --git a/frontend/src/routes/commander/[slug]/+page.svelte b/frontend/src/routes/commander/[slug]/+page.svelte index 0945f5c..6f7ace4 100644 --- a/frontend/src/routes/commander/[slug]/+page.svelte +++ b/frontend/src/routes/commander/[slug]/+page.svelte @@ -1,6 +1,13 @@
-

{slug}

- -

Commandants

+
+ +

Top Commandants {slug != "all" ? "- " + slug.charAt(0).toUpperCase() + slug.slice(1) : ""}

+
{#each commander as card}