Added main page and basic axios query

This commit is contained in:
Alexis
2021-03-04 21:39:23 +01:00
parent dae29530c4
commit 434fe4f6fd
12 changed files with 190 additions and 17 deletions

View File

@@ -0,0 +1,31 @@
<template>
<div class="celestial-list-wrapper">
<ul v-if="celestials" class="celestial-list grid no-style">
<li
v-for="(celestial, index) in celestials"
:key="index"
class="celestial-item"
>
<celestial-card :celestial="celestial" />
</li>
</ul>
</div>
</template>
<script lang="ts">
import { defineComponent } from "vue";
import CelestialCard from "@/components/celestials/CelestialCard.vue";
export default defineComponent({
name: "celestial-list",
components: {
CelestialCard
},
props: {
celestials: {
type: Array
}
}
});
</script>