diff --git a/src/App.vue b/src/App.vue index 0726de4..4d7e859 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,56 +1,96 @@ - @@ -128,6 +189,22 @@ export default { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; color: #2c3e50; - margin-top: 60px; + margin-top: 0px; +} + +#datepicker { + padding: 10px; +} + +#panel .md-layout { + flex: initial; +} + +#toolbar-title { + flex: 1; +} + +#login-form { + width: 200px; } diff --git a/src/Attendee.vue b/src/Attendee.vue new file mode 100644 index 0000000..6a28bbd --- /dev/null +++ b/src/Attendee.vue @@ -0,0 +1,71 @@ + + + diff --git a/src/Group.vue b/src/Group.vue new file mode 100644 index 0000000..3611175 --- /dev/null +++ b/src/Group.vue @@ -0,0 +1,124 @@ + + + diff --git a/src/main.js b/src/main.js index a9d813a..2207c57 100644 --- a/src/main.js +++ b/src/main.js @@ -1,22 +1,28 @@ // The Vue build version to load with the `import` command // (runtime-only or standalone) has been set in webpack.base.conf with an alias. -import Vue from 'vue' -import App from './App' -require("vue-resource") -/* -import 'jquery/dist/jquery.min.js' -import 'materialize-css/bin/materialize.css' -import 'materialize-css/bin/materialize.js' -require("material-ui-vue") -*/ -var VueResource = require("vue-resource"); -require("jquery"); +import Vue from 'vue'; +import VueRouter from 'vue-router'; +import VueResource from 'vue-resource'; +import VueMaterial from 'vue-material'; +import 'vue-material/dist/vue-material.css'; +import 'roboto-fontface/css/roboto/roboto-fontface.css'; +import 'material-design-icons/iconfont/material-icons.css'; +import jQuery from 'jquery'; +import App from './App'; +Vue.use(VueRouter); Vue.use(VueResource); +Vue.use(VueMaterial); -/* eslint-disable no-new */ -new Vue({ - el: '#app', - template: '', - components: { App } -}) +var routes = [ + {path: '/day/:day', component: App} +]; + +const router = new VueRouter({routes}); + +var vue = new Vue({ + el: '#app', + template: '', + router: router, + components: { App } +});