Polish boursecu UX: branding logos, home price stats, assets, and desktop footer.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -52,5 +52,5 @@ function resolveSectionComponent(sectionId: HomeSectionId) {
|
||||
</template>
|
||||
</div>
|
||||
|
||||
<HomeSkeleton v-if="loading" class="w-full" />
|
||||
<HomeSkeleton v-else class="w-full" />
|
||||
</template>
|
||||
|
||||
@@ -1,21 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
import { computed, inject } from 'vue'
|
||||
import PriceStats from '../../components/PriceStats.vue'
|
||||
import { price } from '@/utils/price'
|
||||
import { HOME_PAGE_CONTEXT_KEY } from '../../composables/useHomePage'
|
||||
import { usePriceChart } from '../../composables/usePriceChart'
|
||||
|
||||
const ctx = inject(HOME_PAGE_CONTEXT_KEY)!
|
||||
const { maftolChartRatio } = usePriceChart()
|
||||
const layout = computed(() => (ctx.isBoursecuHomeLayout.value ? 'boursecu' : 'default'))
|
||||
const selectedMetal = computed(() => ctx.selectedChartMetal.value)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<PriceStats
|
||||
:price="price"
|
||||
:layout="layout"
|
||||
:selected-metal="selectedMetal"
|
||||
:maftol-ratio="maftolChartRatio"
|
||||
/>
|
||||
<PriceStats />
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user