Home.vue 3.5 KB
<template>
  <div class="">
    <v-carousel cycle height="450" hide-delimiter-background show-arrows="hover">
      <v-carousel-item src="/banner1.png" cover> </v-carousel-item>
      <v-carousel-item src="/banner2.jpeg" cover> </v-carousel-item>
      <v-carousel-item src="/banner3.jpeg" cover> </v-carousel-item>
    </v-carousel>
  </div>
  <!-- 优势 -->
  <!-- <div class="tw-mb-[64px]">
      <MainTitleList
        :cardNum="3"
        :title="t('优势')"
        :list="strengths"
        desc="Canrd is aimed to be the world's top one-stop service provider in the field of new energy research Dedicated, professional, and quick response/solution"
      />
    </div> -->
  <!-- 能源材料 -->
  <div class="tw-p-[64px]">
    <MainTitleList
      :title="t('材料试剂')"
      :list="materials"
      :disabled="true"
      :responsive="true"
      desc="Leading global provider of energy storage research materials and providing other professional/universal experimental materials. "
    />
  </div>
  <v-container class="pt-0">
    <!-- 设备 -->
    <div class="tw-mb-[64px]">
      <MainTitleList
        titleCls="text-h4"
        title="Lab Device"
        titleDivider
        :list="lab.list"
        desc="Self-built High-precision Machining Center with Powerful Design and Manufacturing Capabilities. "
        href="/equipment"
      />
    </div>

    <!-- Customized Battery -->
    <div class="tw-mb-[64px]">
      <MainTitleList
        titleCls="text-h4"
        :title="t('Customized Battery')"
        titleDivider
        :list="batteries"
        href="/customize"
        desc="200mAh~10Ah, Winding/Stacking, Unfilled/Filled Electrolyte Cells, Three-Electrode, and More. "
      />
    </div>
    <!-- Testing -->
    <div class="tw-mb-[64px]">
      <MainTitleList
        titleCls="text-h4"
        titleDivider
        :title="t('Testing')"
        :list="tests"
        href="/test"
        desc="Self built testing center and signed strategic cooperation with ATL, Tsinghua and other units. "
      />
    </div>
    <!-- Pack -->
    <div class="tw-mb-[64px]">
      <MainTitleList
        titleDivider
        titleCls="text-h4"
        :cardNum="3"
        :title="t('Pack')"
        href="/pack"
        :list="packs"
        desc="Focusing on energy materials/new energy storage systems/modules and other fields, mastering advanced technologies to provide high-quality services. "
      />
    </div>
  </v-container>
</template>

<script setup lang="ts">
import MainTitleList from '@/components/MainTitleList.vue'
import { useCategoryStore } from '@/stores/category'
import { useI18n } from 'vue-i18n'
import { computed } from 'vue'

const { t } = useI18n()

const store = useCategoryStore()

const lab = computed(
  () =>
    store?.list?.[3] || {
      categoryDisplayName: '',
      list: []
    }
)

const strengths = [{ name: t('优势1') }, { name: t('优势2') }, { name: t('优势3') }]
const materials = [
  { name: 'Energy materials', imageUrl: '/home/1.svg' },
  { name: 'Universal consumables', imageUrl: '/home/2.svg' },
  { name: 'Low dimensional materials', imageUrl: '/home/3.svg' }
]
const tests = [
  { name: 'Electrochemical performance' },
  { name: 'Reliability testing' },
  { name: 'Material testing' },
  { name: 'Calibration' }
]
const batteries = [
  { name: 'Material evaluation' },
  { name: 'R&D foundry' },
  { name: 'Chemical system' },
  { name: 'Semi product customization' }
]
const packs = [
  { name: 'Power bank' },
  { name: 'Energy storage' },
  { name: 'low-dimensional materials' }
]
</script>