/ Changed html / data display
This commit is contained in:
@@ -1,42 +1,44 @@
|
||||
<template>
|
||||
<section class="celestial bg-image">
|
||||
<header>
|
||||
<h1 class="heading-1">
|
||||
<span>{{ celestial.name }}</span>
|
||||
<span v-if="celestial.name != celestial.englishName">/ {{ celestial.englishName }}</span>
|
||||
<span class="txt-capitalize">- {{ celestial.type }}</span>
|
||||
</h1>
|
||||
</header>
|
||||
<div class="section-content">
|
||||
<main v-if="celestial" class="celestial-body">
|
||||
<div>
|
||||
<h3 class="heading-3">
|
||||
Informations
|
||||
</h3>
|
||||
<p v-if="celestial.aroundPlanet">
|
||||
Orbite autour de
|
||||
<nuxt-link
|
||||
:to="`/astres/${celestial.aroundPlanet.planet}`"
|
||||
class="txt-capitalize"
|
||||
>
|
||||
{{ celestial.aroundPlanet.planet }}
|
||||
</nuxt-link>
|
||||
</p>
|
||||
<p v-if="celestial.discoveredBy">
|
||||
Découvert par {{ celestial.discoveredBy }} le {{ celestial.discoveryDate }}
|
||||
</p>
|
||||
<p>Facteur Gravité : {{ celestial.gravity }}</p>
|
||||
<p>Facteur Densité : {{ celestial.density }}</p>
|
||||
<p>Inclinaison : {{ celestial.inclination }}</p>
|
||||
<main v-if="celestial">
|
||||
<header>
|
||||
<h1 class="heading-1">
|
||||
<span>{{ celestial.name }}</span>
|
||||
<span v-if="celestial.name != celestial.englishName">/ {{ celestial.englishName }}</span>
|
||||
<span class="txt-capitalize">- {{ celestial.type }}</span>
|
||||
</h1>
|
||||
</header>
|
||||
<div class="section-content">
|
||||
<div class="celestial-body">
|
||||
<div>
|
||||
<h3 class="heading-3">
|
||||
Informations
|
||||
</h3>
|
||||
<p v-if="celestial.aroundPlanet">
|
||||
Orbite autour de
|
||||
<nuxt-link
|
||||
:to="`/astres/${celestial.aroundPlanet.planet}`"
|
||||
class="txt-capitalize"
|
||||
>
|
||||
{{ celestial.aroundPlanet.planet }}
|
||||
</nuxt-link>
|
||||
</p>
|
||||
<p v-if="celestial.discoveredBy">
|
||||
Découvert par {{ celestial.discoveredBy }} le {{ celestial.discoveryDate }}
|
||||
</p>
|
||||
<p>Facteur Gravité : {{ celestial.gravity }}</p>
|
||||
<p>Facteur Densité : {{ celestial.density }}</p>
|
||||
<p>Inclinaison : {{ celestial.inclination }}</p>
|
||||
</div>
|
||||
<div v-if="celestial.moons" class="celestial-moons">
|
||||
<h2 class="heading-2">
|
||||
Astres orbitant {{ celestial.name }}
|
||||
</h2>
|
||||
<celestials-list :celestials="celestial.moons" :has-filters="false" />
|
||||
</div>
|
||||
</div>
|
||||
<div v-if="celestial.moons" class="celestial-moons">
|
||||
<h2 class="heading-2">
|
||||
Astres orbitant {{ celestial.name }}
|
||||
</h2>
|
||||
<celestials-list :celestials="celestial.moons" :has-filters="false" />
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
@@ -49,7 +51,7 @@ export default {
|
||||
|
||||
data () {
|
||||
return {
|
||||
celestial: {}
|
||||
celestial: false
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@@ -1,13 +1,15 @@
|
||||
<template>
|
||||
<section class="celestials bg-image">
|
||||
<header>
|
||||
<h1 class="heading-1">
|
||||
Le système solaire
|
||||
</h1>
|
||||
</header>
|
||||
<div class="section-content">
|
||||
<celestials-list :celestials="celestials" />
|
||||
</div>
|
||||
<main>
|
||||
<header>
|
||||
<h1 class="heading-1">
|
||||
Le système solaire
|
||||
</h1>
|
||||
</header>
|
||||
<div class="section-content">
|
||||
<celestials-list :celestials="celestials" />
|
||||
</div>
|
||||
</main>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -1,13 +1,15 @@
|
||||
<template>
|
||||
<section class="favourites bg-image">
|
||||
<header>
|
||||
<h1 class="heading-1">
|
||||
Mes favoris
|
||||
</h1>
|
||||
</header>
|
||||
<div class="section-content">
|
||||
<celestials-list :celestials="favourites" />
|
||||
</div>
|
||||
<main>
|
||||
<header>
|
||||
<h1 class="heading-1">
|
||||
Mes favoris
|
||||
</h1>
|
||||
</header>
|
||||
<div class="section-content">
|
||||
<celestials-list :celestials="favourites" />
|
||||
</div>
|
||||
</main>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
@@ -22,7 +24,7 @@ export default {
|
||||
},
|
||||
|
||||
created () {
|
||||
// const favourites = this.$store.state.user.favourites
|
||||
console.log(this.$store.state.user.favourites)
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user