summaryrefslogblamecommitdiff
path: root/iridescence/src/router/index.js
blob: 1dc6e6326bcd93ca73edf25e57ef708e0fdcaa8b (plain) (tree)
1
2
3
4
5
6
7
8
9
                      
                                   
                                     

                                     
                                       

                                             
                                           


                   
                





                   

                           
                    









                       














                            





                              

                                   


                      
import Vue from "vue";
import VueRouter from "vue-router";
import Home from "../views/Home.vue";
import Care from "../views/Care.vue";
import Faq from "../views/Faq.vue";
import Admin from "../views/Admin.vue";
import Cart from "../views/Cart.vue";
import Checkout from "../views/Checkout.vue";
import Privacy from "../views/Privacy.vue";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    name: "Home",
    component: Home
  },
  {
    path: "/admin",
    name: "Administration",
    component: Admin
  },
  {
    path: "/cart",
    name: "Cart",
    component: Cart
  },
  {
    path: "/checkout",
    name: "Checkout",
    component: Checkout
  },
  {
    path: "/faq",
    name: "F.A.Q.",
    component: Faq
  },
  {
    path: "/care",
    name: "Care & Handling",
    component: Care
  },
  {
    path: "/privacy",
    name: "Privacy",
    component: Privacy
  }
];

const router = new VueRouter({
  mode: "history",
  base: process.env.BASE_URL,
  routes,
  linkExactActiveClass: "is-active"
});

export default router;