import Vue from 'vue'
import VueRouter from 'vue-router';
import VueBreadcrumbs from 'vue-2-breadcrumbs';
import home from "./pages/home.vue";
import projects from "./pages/projects.vue";
import services from "./pages/services.vue";
import contacts from "./pages/contacts.vue";
import siteHeader from './components/header/headerLayout.vue'
import siteFooter from './components/siteFooter.vue'
Vue.use(VueBreadcrumbs);
Vue.use(VueRouter);
const routes = [
{
path: '/',
name: 'Главная',
component: home
},
{
path: '/projects',
name: 'Проекты',
component: projects
},
{
path: '/services',
name: 'Услуги',
component: services
},
{
path: '/contacts',
name: 'Контакты',
component: contacts
},
]
const router = new VueRouter({
mode: 'history',
routes // сокращённая запись для `routes: routes`
})
const app = new Vue({
el: '#app',
router: router,
data: {},
components: {
siteHeader,
siteFooter,
}
});