import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import ImpactFund from '../views/ImpactFund.vue'
import OpenData from '../views/OpenData.vue'
import Faqs from '../views/Faqs.vue'


Vue.use(VueRouter)

const routes = [{
        path: '/',
        name: 'Home',
        component: Home
    },
    {
        path: '/impact-fund',
        name: 'Impact Fund',
        component: ImpactFund
    },
    {
        path: '/open-data',
        name: 'Open Data',
        component: OpenData
    },
    {
        path: '/faqs',
        name: 'Faqs',
        component: Faqs
    }
]

const router = new VueRouter({
    mode: 'history',
    base: process.env.BASE_URL,
    routes
})

export default router