mirror of
https://github.com/dtomlinson91/anno-production-chain-renderer.git
synced 2025-12-21 22:05:46 +00:00
add expansion info card item
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<q-list separator class="big-font text-left">
|
<q-list separator class="big-font text-left">
|
||||||
|
<slot></slot>
|
||||||
<InfoCardItemWorld
|
<InfoCardItemWorld
|
||||||
v-for="item in itemWorldData"
|
v-for="item in itemWorldData"
|
||||||
:key="item.icon"
|
:key="item.icon"
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
<div class="flex-break item"></div>
|
<div class="flex-break item"></div>
|
||||||
<div class="flex-break item"></div>
|
<div class="flex-break item"></div>
|
||||||
<div class="flex-break item"></div>
|
<div class="flex-break item"></div>
|
||||||
|
|
||||||
<ChainTiers
|
<ChainTiers
|
||||||
title="Information"
|
title="Information"
|
||||||
:col-break="false"
|
:col-break="false"
|
||||||
@@ -15,7 +14,9 @@
|
|||||||
<InfoCard
|
<InfoCard
|
||||||
:item-data="itemDataBase"
|
:item-data="itemDataBase"
|
||||||
:item-world-data="worldItemDataBase"
|
:item-world-data="worldItemDataBase"
|
||||||
></InfoCard>
|
>
|
||||||
|
<InfoCardItem v-bind="expansionInfoItem"></InfoCardItem>
|
||||||
|
</InfoCard>
|
||||||
</ChainTiers>
|
</ChainTiers>
|
||||||
<ChainTiers
|
<ChainTiers
|
||||||
v-for="tier in productionChainsBase"
|
v-for="tier in productionChainsBase"
|
||||||
@@ -39,21 +40,31 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
import { ref } from 'vue';
|
||||||
|
|
||||||
|
// Components
|
||||||
|
import ChainTiers from 'components/ChainTiers.vue';
|
||||||
|
import ProductionChain from 'components/ProductionChain.vue';
|
||||||
|
import InfoCard from 'components/InfoCard.vue';
|
||||||
|
import InfoCardItem from 'components/InfoCard/InfoCardItem.vue';
|
||||||
|
|
||||||
// Production Chain Data
|
// Production Chain Data
|
||||||
import { productionChainsBase } from './data/production-chains-base';
|
import { productionChainsBase } from './data/production-chains-base';
|
||||||
|
|
||||||
// Info Card Data
|
// Info Card Data
|
||||||
import { itemDataBase, worldItemDataBase } from 'src/pages/data/info-card';
|
import { itemDataBase, worldItemDataBase } from 'src/pages/data/info-card';
|
||||||
|
|
||||||
|
// Icons
|
||||||
|
import * as icons from './data/icons';
|
||||||
|
|
||||||
// Mermaid
|
// Mermaid
|
||||||
import { initialiseMermaid } from 'composables/mermaid';
|
import { initialiseMermaid } from 'composables/mermaid';
|
||||||
|
|
||||||
// Components
|
|
||||||
import ChainTiers from 'components/ChainTiers.vue';
|
|
||||||
import ProductionChain from 'components/ProductionChain.vue';
|
|
||||||
import InfoCard from 'components/InfoCard.vue';
|
|
||||||
|
|
||||||
initialiseMermaid();
|
initialiseMermaid();
|
||||||
|
const expansionInfoItem = ref({
|
||||||
|
icon: icons.landOfLionsIcon,
|
||||||
|
text: 'Contains all chains from Base Game through to Season 2 (Land of Lions).'
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
@@ -76,7 +87,7 @@ $column: 5;
|
|||||||
}
|
}
|
||||||
|
|
||||||
.masonry-container {
|
.masonry-container {
|
||||||
height: $page-height;
|
height: 6100px;
|
||||||
|
|
||||||
.masonry-col {
|
.masonry-col {
|
||||||
width: 1000px;
|
width: 1000px;
|
||||||
|
|||||||
@@ -14,7 +14,9 @@
|
|||||||
<InfoCard
|
<InfoCard
|
||||||
:item-data="itemDataExpansions"
|
:item-data="itemDataExpansions"
|
||||||
:item-world-data="worldItemDataExpansions"
|
:item-world-data="worldItemDataExpansions"
|
||||||
></InfoCard>
|
>
|
||||||
|
<InfoCardItem v-bind="expansionInfoItem"></InfoCardItem>
|
||||||
|
</InfoCard>
|
||||||
</ChainTiers>
|
</ChainTiers>
|
||||||
<ChainTiers
|
<ChainTiers
|
||||||
v-for="tier in productionChainsExpansions"
|
v-for="tier in productionChainsExpansions"
|
||||||
@@ -38,6 +40,14 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
import { ref } from 'vue';
|
||||||
|
|
||||||
|
// Components
|
||||||
|
import ChainTiers from 'components/ChainTiers.vue';
|
||||||
|
import ProductionChain from 'components/ProductionChain.vue';
|
||||||
|
import InfoCard from 'components/InfoCard.vue';
|
||||||
|
import InfoCardItem from 'components/InfoCard/InfoCardItem.vue';
|
||||||
|
|
||||||
// Production Chain Data
|
// Production Chain Data
|
||||||
import { productionChainsExpansions } from './data/production-chains-expansions';
|
import { productionChainsExpansions } from './data/production-chains-expansions';
|
||||||
|
|
||||||
@@ -47,15 +57,17 @@ import {
|
|||||||
worldItemDataExpansions
|
worldItemDataExpansions
|
||||||
} from 'src/pages/data/info-card';
|
} from 'src/pages/data/info-card';
|
||||||
|
|
||||||
|
// Icons
|
||||||
|
import * as icons from './data/icons';
|
||||||
|
|
||||||
// Mermaid
|
// Mermaid
|
||||||
import { initialiseMermaid } from 'composables/mermaid';
|
import { initialiseMermaid } from 'composables/mermaid';
|
||||||
|
|
||||||
// Components
|
|
||||||
import ChainTiers from 'components/ChainTiers.vue';
|
|
||||||
import ProductionChain from 'components/ProductionChain.vue';
|
|
||||||
import InfoCard from 'components/InfoCard.vue';
|
|
||||||
|
|
||||||
initialiseMermaid();
|
initialiseMermaid();
|
||||||
|
const expansionInfoItem = ref({
|
||||||
|
icon: icons.empireOfTheSkiesIcon,
|
||||||
|
text: 'Contains all chains from Season 3 through to Season 4 (Empire of the Skies).'
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
@@ -78,7 +90,7 @@ $columns: 5;
|
|||||||
}
|
}
|
||||||
|
|
||||||
.masonry-container {
|
.masonry-container {
|
||||||
height: $page-height;
|
height: 8180px;
|
||||||
|
|
||||||
.masonry-col {
|
.masonry-col {
|
||||||
width: 1000px;
|
width: 1000px;
|
||||||
|
|||||||
Reference in New Issue
Block a user