Skip to content

Commit

Permalink
feat(MagicCalculatorPage): add page footer
Browse files Browse the repository at this point in the history
  • Loading branch information
rudnovd committed Aug 7, 2022
1 parent 9be6c83 commit cc2c7d7
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion src/views/MagicCalculatorPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,39 @@
/>
</TransitionGroup>
</main>

<PageFooter :about="{ text: t('components.damageCalculatorPage.about') }" border="none">
<template #aboutModal>
<h2>{{ t('components.damageCalculatorPage.data.1') }}</h2>
<p>{{ t('components.damageCalculatorPage.data.2') }}</p>

<i18n-t keypath="components.damageCalculatorPage.data.3" tag="p">
<template #email>
<a href="mailto:feedback@heroes3.tools" target="_blank">feedback@heroes3.tools</a>
</template>
</i18n-t>
</template>
</PageFooter>
</section>
</template>

<script lang="ts">
import CalculatorTabs from '@/components/CalculatorTabs.vue'
import { Battle } from '@/models/Battle'
import { defineComponent, Ref, ref } from 'vue'
import { defineAsyncComponent, defineComponent, Ref, ref } from 'vue'
import { useI18n } from 'vue-i18n'
import MagicCalculator from '../components/MagicCalculator.vue'
export default defineComponent({
name: 'MagicCalculatorPage',
components: {
CalculatorTabs,
MagicCalculator,
PageFooter: defineAsyncComponent(() => import('@/components/PageFooter.vue')),
},
setup() {
const { t } = useI18n()
const calculators = ref<Array<Battle>>([new Battle()]) as Ref<Array<Battle>>
const activeIndex = ref(0)
Expand Down Expand Up @@ -69,6 +86,7 @@ export default defineComponent({
}
return {
t,
calculators,
activeIndex,
Expand Down

0 comments on commit cc2c7d7

Please sign in to comment.