---
layout: layouts/parent.njk
---
<main id="skip" class="pokepage">
  <div>
    {{ content | safe }}
  </div>
</main>

<aside id="more-info">
  <div class="card">
    <div>Retour au <a href="/pokedex/g2">pokédex</a></div>
  </div>
  <figure class="card" style="text-align:center;">
      <img src="/img/pret/pokegold/{{ pokemon.sprite }}/front_gold.png" alt="Sprite de {{ pokemon.namefr }} dans Pokemon Or" />
      <img src="/img/pret/pokegold/{{ pokemon.sprite }}/front_silver.png" alt="Sprite de {{ pokemon.namefr }} dans Pokemon Argent" />
      <figcaption>{{ pokemon.namefr }} dans Or, Argent</figcaption>
    </figure>
  <div class="card maininfo" aria-label="Informations principales">
    <ul>
      <li><strong>Nom</strong>: {{ pokemon.namefr }}</li>
      <li><strong>Nom en</strong>: {{ pokemon.nameen }}</li>
      <li><strong>Nom jp</strong>: {{ pokemon.namejp }}</li>
      <li><strong>N° Dex (Kanto)</strong>: {{ pokemon.baseStats.dex }}</li>
      <li><strong>N° Dex (Johto)</strong>: {{ pokemon.internalId }}</li>
    </ul>
  </div>
  <div class="card maininfo" aria-label="Donnée">
    <ul>
      <li><strong>{{ pokemon.pokedex.species }}</strong></li>
      <li><strong>Taille</strong>: {{ pokemon.pokedex.height }}</li>
      <li><strong>Poids</strong>: {{ pokemon.pokedex.weight }}</li>
      <li><strong>Types</strong>: {{ pokemon.baseStats.types[0] }}{%- if pokemon.baseStats.types[0] !== pokemon.baseStats.types[1] -%}, {{ pokemon.baseStats.types[1] }} {%- endif -%}</li>
    </ul>
  </div>
  <div class="card maininfo" aria-label="Capture">
    <ul>
      <li><strong>Base capture</strong>: {{ pokemon.baseStats.catch_rate }}</li>
      <li><strong>Bonus exp</strong>: {{ pokemon.baseStats.base_exp }}</li>
      <li><strong>Evol exp</strong>: {{ pokemon.baseStats.growth_rate }}</li>
      <li><strong>Objets</strong>: 
        {% if pokemon.baseStats.items[0] !== "?" and pokemon.baseStats.items[1] !== "?" and pokemon.baseStats.items[1] !== pokemon.baseStats.items[0] -%} 
          {{ pokemon.baseStats.items[0] }}, {{ pokemon.baseStats.items[1] }}
        {%- endif -%}
        {% if pokemon.baseStats.items[0] !== "?" and pokemon.baseStats.items[1] !== "?" and pokemon.baseStats.items[1] === pokemon.baseStats.items[0] -%} 
          {{ pokemon.baseStats.items[0] }}
        {%- endif -%}
        {% if pokemon.baseStats.items[0] === "?" and pokemon.baseStats.items[1] !== "?" -%} 
          {{ pokemon.baseStats.items[1] }}
        {%- endif -%}
        {% if pokemon.baseStats.items[0] !== "?" and pokemon.baseStats.items[1] === "?" -%} 
          {{ pokemon.baseStats.items[0] }}
        {%- endif -%}
        {% if pokemon.baseStats.items[0] === "?" and pokemon.baseStats.items[1] === "?" -%} 
          Aucun
        {%- endif -%}
      </li>
    </ul>
  </div>
  <div class="card maininfo" aria-label="Reproduction">
    <ul>
      <li><strong>Œufs</strong>: {{ pokemon.baseStats.eggs[0] }}{%- if pokemon.baseStats.eggs[0] !== pokemon.baseStats.eggs[1] -%}, {{ pokemon.baseStats.eggs[1] }} {%- endif -%}</li>
      <li><strong>Sexe</strong>: {{ pokemon.baseStats.gender }}</li>
      <li><strong>Éclosion</strong>: {{ pokemon.baseStats.eclosion * 256 }} pas</li>
    </ul>
  </div>
</aside>
