import Vue from "vue";
import VueRouter from "vue-router";
import Home from "../views/Home.vue";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    name: "Home",
    component: Home,
    children: [
      {
        path: "methane_upgrade",
        name: "MethaneUpgrade",
        component: () =>
          import(/* webpackChunkName: "about" */ "../pages/methaneUpgrade"),
      },
      {
        path: "biomass_energy_warm",
        name: "BiomassEnergyWarm",
        component: () =>
          import(
            /* webpackChunkName: "about" */ "../pages/biomassEnergyWarm"
          ),
      },
      {
        path: "biogas_manure_eco_agriculture",
        name: "BiogasManureEcoAgriculture",
        component: () =>
          import(
            /* webpackChunkName: "about" */ "../pages/biogasManureEcoAgriculture"
          ),
      },
      {
        path: "renewable_energy_village",
        name: "RenewableEnergyVillage",
        component: () =>
          import(
            /* webpackChunkName: "about" */ "../pages/renewableEnergyVillage/index"
          ),
      },
    ],
  },
];

const router = new VueRouter({
  routes,
});

export default router;
