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

const { lang = 'zh' } = Astro.params
const sNav = [
  '选择云致的理由',
  '场景化解决方案',
  '我们如何帮助客户成功',
  '配套产品',
  '相关资源',
]

const imgProData = {
  url: '//e.huawei.com/-/mediae/images/products/storage/all-flash-storage/all-flash-storage-banner-pc_001.jpg',
  title: 'ERP',
  content: 'ERPERP',
}
const leftImgRightTextList = [
  {
    id: '1',
    url: 'https://e.huawei.com/-/mediae/images/case-studies/industries/education/2022/southeast-university-smart-campus/banner-bequoted1.jpg',
    children: {
      title: 'ERPERPERPERPERPERPERPERP',
      content:
        'ERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERP',
    },
  },
  {
    id: '2',
    url: 'https://e.huawei.com/-/mediae/images/case-studies/solutions/campus/2023/chongqing-lianglu-guoyuan-port/banner-bequoted.jpg',
    children: {
      title: 'ERPERPERPERPERPERPERPERP',
      content:
        'ERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERPERP',
    },
  },
]
const informationList = [
  {
    id: '1',
    url: 'https://e.huawei.com/-/mediae/EBG/Images/SolutionV4/mining-2021/xiejuting/daka/shouye/br-box-1.jpg',
    children: {
      title: 'ERP',
      content: 'ERPERPERPERPERPERPERP',
    },
  },
  {
    id: '2',
    url: 'https://e.huawei.com/-/mediae/EBG/Images/SolutionV4/mining-2021/xiejuting/daka/shouye/br-box-2.jpg',
    children: {
      title: 'ERP',
      content: 'ERPERPERPERPERPERPERP',
    },
  },
  {
    id: '3',
    url: 'https://e.huawei.com/-/mediae/EBG/Images/SolutionV4/mining-2021/xiejuting/daka/shouye/br-box-4.jpg',
    children: {
      title: 'ERP',
      content: 'ERPERPERPERPERPERPERP',
    },
  },
]
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: 'ERP',
          content: 'ERPERPERPERPERPERPERPERP',
        },
      },
    ],
  ],
  [
    [
      {
        id: '2',
        url: 'https://e.huawei.com/-/mediae/images/case-studies/solutions/campus/2023/chongqing-lianglu-guoyuan-port/banner-bequoted.jpg',
        children: {
          title: 'ERP',
          content: 'ERPERPERPERPERPERPERPERP',
        },
      },
    ],
  ],
]
const informationList2 = [
  {
    id: '1',
    url: 'https://e.huawei.com/-/mediae/EBG/Images/SolutionV4/mining-2021/xiejuting/daka/shouye/br-box-1.jpg',
    children: {
      title: 'ERP',
      content: 'ERPERPERPERPERPERPERP',
    },
  },
  {
    id: '2',
    url: 'https://e.huawei.com/-/mediae/EBG/Images/SolutionV4/mining-2021/xiejuting/daka/shouye/br-box-2.jpg',
    children: {
      title: 'ERP',
      content: 'ERPERPERPERPERPERPERP',
    },
  },
  {
    id: '3',
    url: 'https://e.huawei.com/-/mediae/EBG/Images/SolutionV4/mining-2021/xiejuting/daka/shouye/br-box-4.jpg',
    children: {
      title: 'ERP',
      content: 'ERPERPERPERPERPERPERP',
    },
  },
]
const carouselList2 = [
  [
    {
      id: '1',
      title: 'ERP',
      content: 'ERPERPERPERPERPERPERPERP',
    },
    {
      id: '2',
      title: 'ERP',
      content: 'ERPERPERPERPERPERPERPERP',
    },
  ],
]
---

<Layout title="ERP">
  <NavMenu lang={lang} client:load />
  <ScrollingNavbar sNav={sNav} />
  <ImgPro
    listOrData={imgProData}
    ratio="3 / 1"
    btnDisplay={true}
    titleColor="text-light"
    contentColor="text-light"
    titleSize="fs-1"
    childrenSize="fs-4"
    ellipsis="line-ellipsis-small"
    position="positionMiddle"
  />
  <LeftImgRightText
    listOrData={leftImgRightTextList}
    componentTitle="选择云致的理由"
    textAlign="text-center"
  />
  <LeftMiddleRightImgText
    componentTitle="场景化解决方案"
    listOrData={informationList}
  />
  <Carousel
    componentTitle="我们如何帮助客户成功"
    list={carouselList}
    line="0"
    Children={LeftImgRightText}
  />
  <LeftMiddleRightImgText
    componentTitle="配套产品"
    listOrData={informationList2}
  />
  <Carousel
    componentTitle="相关资源"
    list={carouselList2}
    Children={Text}
    mdSize="4"
    titleTextAlign="text-center"
    textAlign="text-center"
  />
  <Footer lang={lang} />
</Layout>
