<template>
  <div
    class="flex flex-col items-center border-t-[1px] border-[#E5E5E5] z-[1] min-h-[40vw] bg-[#FAF6F9] mt-8"
  >
    <h2
      class="font-semibold text-[5.11vw] lg:text-[1.69vw] text-[#383E43] mt-24"
    >
      نقشه راه از تولید به مصرف محصولات شینان
    </h2>
    <div class="relative mt-[10vw] lg:mt-0 flex justify-center">
      <svg
        class="box absolute mt-[8vw] lg:mt-12 h-[15.385vw] w-[15.385vw] lg:h-[5.625vw] lg:w-[5.625vw]"
        viewBox="0 0 108 108"
        fill="none"
        xmlns="http://www.w3.org/2000/svg"
      >
        <circle
          cx="54"
          cy="54"
          r="53"
          stroke="#383E43"
          stroke-width="2"
          stroke-dasharray="10 10"
        />
        <circle cx="54" cy="54" r="23" fill="white" />
        <path
          d="M57.3375 46.5L50.6625 46.5C46.5125 46.5 44.825 49.4375 46.8875 53.025L47.8125 54.625C48.0375 55.0125 48.45 55.25 48.9 55.25L59.1 55.25C59.55 55.25 59.9625 55.0125 60.1875 54.625L61.1125 53.025C63.175 49.4375 61.4875 46.5 57.3375 46.5Z"
          fill="#383E43"
        />
        <path
          d="M58.0125 56.5L49.9751 56.5C49.4876 56.5 49.1876 57.025 49.4376 57.4375L50.2376 58.8125C52.3001 62.4 55.7001 62.4 57.7626 58.8125L58.5625 57.4375C58.8 57.025 58.5 56.5 58.0125 56.5Z"
          fill="#383E43"
        />
      </svg>
      <svg
        class="motionPath hidden lg:block absolute mt-[8vw] w-[81.146vw] h-[107.604vw]"
        viewBox="0 0 1558 2066"
        fill="none"
        xmlns="http://www.w3.org/2000/svg"
      >
        <path
          d="M779.997 -3.39639e-05V-3.39639e-05C779.997 51.3625 738.36 93 686.997 93L100.997 93C45.7681 93 0.996454 137.771 0.996452 193L0.996417 974C0.996415 1029.23 45.768 1074 100.996 1074L1457 1074C1512.23 1074 1557 1118.77 1557 1174L1557 1595C1557 1650.23 1512.22 1695 1457 1695L258.996 1695C203.767 1695 158.996 1739.77 158.996 1795L158.996 2065.5"
          stroke="#383E43"
          stroke-width="2"
          stroke-dasharray="10 10"
        />
      </svg>
      <svg
        class="block absolute lg:hidden mt-[20vw]"
        width="98vw"
        height="359.487vw"
        viewBox="0 0 390 1402"
        fill="none"
        xmlns="http://www.w3.org/2000/svg"
      >
        <path
          d="M195.25 -8.51273e-06L195.211 9.21222C195.094 36.7434 172.743 59 145.212 59L50 59C22.3858 59 5.86356e-05 81.3858 5.88568e-05 109L6.27834e-05 599C6.30047e-05 626.614 22.3858 649 50.0001 649L339.999 649C367.613 649 389.999 671.386 389.999 699L389.999 1238C389.999 1265.61 367.613 1288 339.999 1288L245 1288C217.386 1288 195 1310.39 195 1338L195 1402"
          stroke="#383E43"
          stroke-dasharray="5 5"
        />
      </svg>
    </div>
    <home-page-road-map-componentsBanner />
    <home-page-road-map-componentsProductionStage />
    <home-page-road-map-componentsShopNavigator />
  </div>
</template>

<script setup>
// onMounted(() => {
//   useGsap.to(".box", {
  
//         scrollTrigger: {
//           trigger: '.box',
//           start: 'center center',
//           end: 'bottom 20%',
//           scrub: true,
//         },

//     });

//   let rotateTo = useGsap.quickTo(".box", "rotation");
//   let prevDirection = 0;
//   useGsap.to(".box", {
//     motionPath: {
//         path: 'M779.997 -3.39639e-05V-3.39639e-05C779.997 51.3625 738.36 93 686.997 93L100.997 93C45.7681 93 0.996454 137.771 0.996452 193L0.996417 974C0.996415 1029.23 45.768 1074 100.996 1074L1457 1074C1512.23 1074 1557 1118.77 1557 1174L1557 1595C1557 1650.23 1512.22 1695 1457 1695L258.996 1695C203.767 1695 158.996 1739.77 158.996 1795L158.996 2065.5',

//       },
//     scrollTrigger: {
//       trigger: ".motionPath",
//       start: "top center",
    
//       end: () =>
//         "+=" +
//         document.querySelector(".motionPath")?.getBoundingClientRect().height,
//       scrub: 0.5,
//       markers: true,
//       onUpdate: (self) => {
//         if (prevDirection !== self.direction) {
//           // only run this when we're changing direction
//           rotateTo(self.direction === 1 ? 0 : -180);
//           prevDirection = self.direction;
//         }
//       },
//     },
//   });




// });
</script>