---
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 LeftMiddleRightImgText from '@/components/LeftMiddleRightImgText.astro'
import Text from '@/components/children/Text.astro'
import LeftImgRightText from '@/components/LeftImgRightText.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: '//e.huawei.com/-/mediae/images/industries/commercial-market/commercial-market/commercial-market-branding-banner-pc2.jpg',
  title: '房源交易',
  content: '房源交易房源交易',
}
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: '房源交易',
          content:
            '房源交易房源交易房源交易房源交易房源交易房源交易房源交易房源交易',
        },
      },
    ],
  ],
  [
    [
      {
        id: '2',
        url: 'https://e.huawei.com/-/mediae/images/case-studies/solutions/campus/2023/chongqing-lianglu-guoyuan-port/banner-bequoted.jpg',
        children: {
          title: '房源交易',
          content:
            '房源交易房源交易房源交易房源交易房源交易房源交易房源交易房源交易',
        },
      },
    ],
  ],
]
const carouselList2 = [
  [
    [
      {
        id: '1',
        url: 'https://e.huawei.com/-/mediae/images/home/casestorys/casestorys-driving-bank-of-beijing-digital.jpg',
        children: {
          title: '房源交易',
          content: '房源交易房源交易房源交易房源交易房源交易房源交易',
        },
      },
      {
        id: '2',
        url: 'https://e.huawei.com/-/mediae/images/home/casestorys/casestorys-wuling-manufacturing-plant.jpg',
        children: {
          title: '房源交易',
          content:
            '房源交易房源交易房源交易房源交易房源交易房源交易房源交易房源交易房源交易房源交易房源交易房源交易房源交易房源交易房源交易',
        },
      },
      {
        id: '3',
        url: 'https://e.huawei.com/-/mediae/images/home/casestorys/casestorys-zjhtcm.jpg',
        children: {
          title: '房源交易',
          content:
            '房源交易房源交易房源交易房源交易房源交易房源交易房源交易房源交易房源交易房源交易房源交易房源交易房源交易房源交易房源交易',
        },
      },
    ],
  ],
]
const informationList = [
  {
    id: '1',
    url: 'https://e.huawei.com/-/mediae/EBG/Images/SolutionV4/mining-2021/xiejuting/daka/shouye/br-box-1.jpg',
    children: {
      title: '房源交易',
      content: '房源交易房源交易房源交易房源交易房源交易房源交易房源交易',
    },
  },
  {
    id: '2',
    url: 'https://e.huawei.com/-/mediae/EBG/Images/SolutionV4/mining-2021/xiejuting/daka/shouye/br-box-2.jpg',
    children: {
      title: '房源交易',
      content: '房源交易房源交易房源交易房源交易房源交易房源交易房源交易',
    },
  },
  {
    id: '3',
    url: 'https://e.huawei.com/-/mediae/EBG/Images/SolutionV4/mining-2021/xiejuting/daka/shouye/br-box-4.jpg',
    children: {
      title: '房源交易',
      content: '房源交易房源交易房源交易房源交易房源交易房源交易房源交易',
    },
  },
]
const list = [
  {
    id: '1',
    tabName: '彩页',
    children: [
      {
        title: '房源交易房源交易房源交易房源交易房源交易房源交易',
      },
      {
        title: '房源交易房源交易房源交易房源交易房源交易',
      },
      {
        title: '房源交易房源交易房源交易房源交易房源交易房源交易',
      },
      {
        title:
          '房源交易房源交易房源交易房源交易房源交易房源交易房源交易房源交易房源交易房源交易',
      },
      {
        title:
          '房源交易房源交易房源交易房源交易房源交易房源交易房源交易房源交易房源交易房源交易房源交易房源交易',
      },
      {
        title:
          '房源交易房源交易房源交易房源交易房源交易房源交易房源交易房源交易房源交易',
      },
    ],
  },
  {
    id: '2',
    tabName: '白皮书',
    children: [
      {
        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={LeftImgRightText}
    line="0"
    textAlign="text-center"
    titleTextAlign="text-center"
  />
  <Carousel
    componentTitle="新闻与活动"
    list={carouselList2}
    Children={LeftMiddleRightImgText}
    titleTextAlign="text-end"
    textAlign="text-end"
    line="0"
  />
  <LeftMiddleRightImgText
    componentTitle="选择适合您的产品"
    listOrData={informationList}
  />
  <VerticalNavigationContent
    list={list}
    ellipsis="line-ellipsis-small"
    btnDisplay={true}
    Children={Text}
    componentTitle="相关资源"
    titleTextAlign="text-left"
    textAlign="text-left"
  />
  <Footer lang={lang} />
</Layout>
