---
import Layout from '@/layouts/Layout.astro'
import NavMenu from '@/components/NavMenu/index.jsx'
import ScrollingNavbar from '@/components/ScrollingNavbar.astro'
import LeftImgRightText from '@/components/LeftImgRightText.astro'
import LeftMiddleRightImgText from '@/components/LeftMiddleRightImgText.astro'
import Carousel from '@/components/children/Carousel.astro'
import ImgPro from '@/components/ImgPro.astro'
import VerticalNavigationContent from '@/components/VerticalNavigationContent.astro'
import Text from '@/components/children/Text.astro'
import Footer from '@/components/Footer.astro'

const { lang = 'zh' } = Astro.params
const sNav = ['选择适合您的交换机产品', '成功案例', '相关资源']
const imgProData = {
  url: 'https://e.huawei.com/-/mediae/EBG/Images/ProductV2/enterprise-networking/switches/topic/switches-banner-pc-1130.jpg',
  title: '云致MES',
  content: '云致MES',
}
const informationList = [
  {
    id: '1',
    url: 'https://e.huawei.com/-/mediae/images/solutions/campus/office-network/office-network-banner-bequoted.png',
    children: {
      title: '云致MES',
      content:
        '云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES',
    },
  },
  {
    id: '2',
    url: 'https://e.huawei.com/-/mediae/images/solutions/campus/sdwan/sdwan-banner-bequoted.jpg',
    children: {
      title: '云致MES',
      content:
        '云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES',
    },
  },
  {
    id: '3',
    url: 'https://e.huawei.com/-/mediae/images/solutions/campus/converged-production-network/banner-bequoted.png',
    children: {
      title: '云致MES',
      content:
        '云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES',
    },
  },
]
const carouselList = [
  [
    [
      {
        id: '1',
        url: 'https://e.huawei.com/-/mediae/images/case-studies/industries/education/2022/southeast-university-smart-campus/banner-bequoted1.jpg',
        children: {
          title: '云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES',
          content:
            '云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES',
        },
      },
    ],
  ],
  [
    [
      {
        id: '2',
        url: 'https://e.huawei.com/-/mediae/images/case-studies/solutions/campus/2023/chongqing-lianglu-guoyuan-port/banner-bequoted.jpg',
        children: {
          title: '云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES',
          content:
            '云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES',
        },
      },
    ],
  ],
]

const list = [
  {
    id: '1',
    tabName: '彩页',
    children: [
      {
        title: '云致MES云致MES云致MES云致MES云致MES云致MES',
      },
      {
        title:
          '云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES',
      },
      {
        title:
          '云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES',
      },
      {
        title:
          '云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES云致MES',
      },
    ],
  },
]
---

<Layout title="云致MES">
  <NavMenu lang={lang} client:load />
  <ScrollingNavbar sNav={sNav} />
  <ImgPro
    listOrData={imgProData}
    ratio="3 / 1"
    btnDisplay={true}
    titleSize="fs-1"
    childrenSize="fs-4"
    ellipsis="line-ellipsis-small"
    position="positionMiddle"
  />
  <LeftMiddleRightImgText
    componentTitle="选择适合您的交换机产品"
    listOrData={informationList}
    textAlign="text-center"
  />
  <Carousel
    componentTitle="成功案例"
    line="0"
    list={carouselList}
    Children={LeftImgRightText}
  />
  <VerticalNavigationContent
    list={list}
    ellipsis="line-ellipsis-small"
    btnDisplay={true}
    Children={Text}
    componentTitle="相关资源"
    titleTextAlign="text-left"
    textAlign="text-left"
  />
  <Footer lang={lang} />
</Layout>
