mirror of
https://github.com/dtomlinson91/anno-production-chain-renderer.git
synced 2025-12-22 06:15:45 +00:00
wip: update for season 4
This commit is contained in:
100
src/pages/AnnoSeason1.vue
Normal file
100
src/pages/AnnoSeason1.vue
Normal file
@@ -0,0 +1,100 @@
|
||||
<template>
|
||||
<q-page class="custom-width">
|
||||
<div class="column masonry-container">
|
||||
<div class="flex-break hidden item"></div>
|
||||
<div class="flex-break item"></div>
|
||||
<div class="flex-break item"></div>
|
||||
<ChainTiers
|
||||
:title="expansionInfoItem.title"
|
||||
:col-break="false"
|
||||
class="masonry-col item"
|
||||
>
|
||||
<InfoCard
|
||||
:item-data="itemDataBase"
|
||||
:item-world-data="worldItemDataBase"
|
||||
>
|
||||
<InfoCardItem v-bind="expansionInfoItem"></InfoCardItem>
|
||||
</InfoCard>
|
||||
</ChainTiers>
|
||||
<ChainTiers
|
||||
v-for="tier in productionChainsSeason1"
|
||||
:key="tier.tierName"
|
||||
:title="tier.tierName"
|
||||
:col-break="tier.colBreak"
|
||||
class="masonry-col item"
|
||||
>
|
||||
<div v-if="!tier.colBreak">
|
||||
<ProductionChain
|
||||
v-for="chain in tier.productionChains"
|
||||
:key="chain.productionChain"
|
||||
:production-chain="chain.productionChain"
|
||||
:chain-multiplier="chain.chainMultiplier"
|
||||
:mermaid-definition="chain.mermaidDefinition"
|
||||
></ProductionChain>
|
||||
</div>
|
||||
</ChainTiers>
|
||||
</div>
|
||||
</q-page>
|
||||
</template>
|
||||
|
||||
<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
|
||||
import { productionChainsSeason1 } from './data/production-chains-season-1';
|
||||
|
||||
// Info Card Data
|
||||
import { itemDataBase, worldItemDataBase } from 'src/pages/data/info-card';
|
||||
|
||||
// Icons
|
||||
import * as icons from './data/icons';
|
||||
|
||||
// Mermaid
|
||||
import { initialiseMermaid } from 'composables/mermaid';
|
||||
|
||||
initialiseMermaid();
|
||||
const expansionInfoItem = ref({
|
||||
title: 'Season 1',
|
||||
icon: icons.passageIcon,
|
||||
text: 'All chains for Season 1 (Sunken Treasures, Botanica & The Passage).'
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
// Masonry Layout - 5 cols
|
||||
$column: 3;
|
||||
|
||||
.flex-break {
|
||||
flex: 1 0 100% !important;
|
||||
width: 0 !important;
|
||||
}
|
||||
|
||||
@for $i from 1 through ($column - 1) {
|
||||
.masonry-container > .item:nth-child(#{$column}n + #{$i}) {
|
||||
order: #{$i};
|
||||
}
|
||||
}
|
||||
|
||||
.masonry-container > .item:nth-child(#{$column}n) {
|
||||
order: #{$column};
|
||||
}
|
||||
|
||||
.masonry-container {
|
||||
height: 1400px;
|
||||
|
||||
.masonry-col {
|
||||
width: 1000px;
|
||||
padding: 1px;
|
||||
}
|
||||
}
|
||||
|
||||
.custom-width {
|
||||
width: 3100px;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user