Move to frontend folder

This commit is contained in:
Ben Ramey
2018-04-17 07:35:43 -05:00
committed by benjaminramey
parent 2b5b821721
commit d7330814b6
35 changed files with 0 additions and 0 deletions

17
frontend/src/App.vue Normal file
View File

@@ -0,0 +1,17 @@
<template>
<div id="app">
<router-view/>
</div>
</template>
<script>
export default {
name: 'App'
}
</script>
<style>
#app {
font-family: Helvetica, Arial, sans-serif;
}
</style>

View File

View File

@@ -0,0 +1,29 @@
<template>
<div id="start">
<a href="#">start a lunch run</a>
</div>
</template>
<script>
export default {
name: 'Start'
}
</script>
<style scoped>
#start {
}
#start a {
display: block;
width: 200px;
margin: 60px auto;
padding: 20px;
border: 1px solid #ccc;
border-radius: 10px;
box-shadow: 2px 2px 5px #eee;
text-align: center;
text-decoration: none;
color: #333;
}
</style>

15
frontend/src/main.js Normal file
View File

@@ -0,0 +1,15 @@
// 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'
import router from './router'
Vue.config.productionTip = false
/* eslint-disable no-new */
new Vue({
el: '#app',
router,
components: { App },
template: '<App/>'
})

View File

@@ -0,0 +1,15 @@
import Vue from 'vue'
import Router from 'vue-router'
import Start from '@/components/Start'
Vue.use(Router)
export default new Router({
routes: [
{
path: '/',
name: 'Start',
component: Start
}
]
})