diff --git a/full-skies-nuxt/pages/astres/_slug.vue b/full-skies-nuxt/pages/astres/_slug.vue index 43d4f8e..e9d4854 100644 --- a/full-skies-nuxt/pages/astres/_slug.vue +++ b/full-skies-nuxt/pages/astres/_slug.vue @@ -3,14 +3,31 @@

- {{ celestial.name }} + {{ celestial.name }} + / {{ celestial.englishName }} + - {{ celestial.type }}

-
- Une erreur est survenue : {{ error }} -
-
{{ celestial }}
+
+
+

+ Informations +

+

+ Découvert par {{ celestial.discoveredBy }} le {{ celestial.discoveryDate }} +

+

Facteur Gravité : {{ celestial.gravity }}

+

Facteur Densité : {{ celestial.density }}

+

Inclinaison : {{ celestial.inclination }}

+
+
+

+ Lunes orbitant {{ celestial.name }} +

+ +
+
@@ -25,7 +42,6 @@ import { fetchCelestial } from '@/api/le-systeme-solaire' // import { fetchWikipediaExcerpt } from "@/api/wikipedia"; // Global methods -import { addCelestialType } from '@/plugins/methods' import NestLoader from '@/components/NestLoader.vue' export default { @@ -47,16 +63,13 @@ export default { // Fetches from API... fetchCelestial(this.$route.params.slug) .then((res) => { - this.celestial = addCelestialType(res) + this.celestial = res this.celestialLoaded = true return this.celestial }) .catch(() => { this.error = "Impossible de récupérer l'astre demandé." }) - .then(() => { - // fetchWikipediaExcerpt(celestial); - }) } } @@ -70,5 +83,11 @@ export default { &:after { background-image: url("/celestials_bg-min.jpg"); } + + .celestial-body { + .celestial-type { + text-transform: capitalize; + } + } }