---
import Layout from '@/layouts/Layout.astro'
import NavMenu from '@/components/NavMenu/index.jsx'
import ScrollingNavbar from '@/components/ScrollingNavbar.astro'
import Carousel from '@/components/children/Carousel.astro'
import Text from '@/components/children/Text.astro'
import ImgPro from '@/components/ImgPro.astro'
import VerticalNavigationContent from '@/components/VerticalNavigationContent.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/security/topic/security-products-pc.jpg',
  title: '电商系统',
  content: '电商系统电商系统',
}
const carouselList = [
  [
    {
      id: '1',
      title: '电商系统',
      content:
        '电商系统电商系统电商系统电商系统电商系统电商系统电商系统电商系统',
    },
    {
      id: '2',
      title: '电商系统',
      content:
        '电商系统电商系统电商系统电商系统电商系统电商系统电商系统电商系统',
    },
    {
      id: '3',
      title: '电商系统',
      content:
        '电商系统电商系统电商系统电商系统电商系统电商系统电商系统电商系统',
    },
  ],
]
const verticalNavigationContentList = [
  {
    id: '1',
    tabName: '彩页',
    children: [
      {
        title: '电商系统电商系统电商系统电商系统电商系统电商系统',
      },
      {
        title:
          '电商系统电商系统电商系统电商系统电商系统电商系统电商系统电商系统电商系统电商系统',
      },
      {
        title:
          '电商系统电商系统电商系统电商系统电商系统电商系统电商系统电商系统电商系统电商系统电商系统电商系统',
      },
      {
        title:
          '电商系统电商系统电商系统电商系统电商系统电商系统电商系统电商系统电商系统',
      },
    ],
  },
]
---

<Layout title="电商系统">
  <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"
  />
  <Carousel
    componentTitle="电商产品"
    list={carouselList}
    Children={Text}
    mdSize="4"
    titleTextAlign="text-center"
    textAlign="text-center"
  />
  <VerticalNavigationContent
    list={verticalNavigationContentList}
    ellipsis="line-ellipsis-small"
    btnDisplay={true}
    Children={Text}
    componentTitle="相关资源"
    titleTextAlign="text-left"
    textAlign="text-left"
  />
  <Footer lang={lang} />
</Layout>
