Start on lunch run home

This commit is contained in:
Ben Ramey
2018-04-11 22:06:48 -05:00
committed by benjaminramey
parent 79a56e7022
commit 2b5b821721
7 changed files with 34 additions and 124 deletions

View File

@@ -1,6 +1,5 @@
<template>
<div id="app">
<img src="./assets/logo.png">
<router-view/>
</div>
</template>
@@ -13,11 +12,6 @@ export default {
<style>
#app {
font-family: 'Avenir', Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
margin-top: 60px;
font-family: Helvetica, Arial, sans-serif;
}
</style>

0
src/assets/.gitkeep Normal file
View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.7 KiB

View File

@@ -1,113 +0,0 @@
<template>
<div class="hello">
<h1>{{ msg }}</h1>
<h2>Essential Links</h2>
<ul>
<li>
<a
href="https://vuejs.org"
target="_blank"
>
Core Docs
</a>
</li>
<li>
<a
href="https://forum.vuejs.org"
target="_blank"
>
Forum
</a>
</li>
<li>
<a
href="https://chat.vuejs.org"
target="_blank"
>
Community Chat
</a>
</li>
<li>
<a
href="https://twitter.com/vuejs"
target="_blank"
>
Twitter
</a>
</li>
<br>
<li>
<a
href="http://vuejs-templates.github.io/webpack/"
target="_blank"
>
Docs for This Template
</a>
</li>
</ul>
<h2>Ecosystem</h2>
<ul>
<li>
<a
href="http://router.vuejs.org/"
target="_blank"
>
vue-router
</a>
</li>
<li>
<a
href="http://vuex.vuejs.org/"
target="_blank"
>
vuex
</a>
</li>
<li>
<a
href="http://vue-loader.vuejs.org/"
target="_blank"
>
vue-loader
</a>
</li>
<li>
<a
href="https://github.com/vuejs/awesome-vue"
target="_blank"
>
awesome-vue
</a>
</li>
</ul>
</div>
</template>
<script>
export default {
name: 'HelloWorld',
data () {
return {
msg: 'Welcome to Your Vue.js App'
}
}
}
</script>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
h1, h2 {
font-weight: normal;
}
ul {
list-style-type: none;
padding: 0;
}
li {
display: inline-block;
margin: 0 10px;
}
a {
color: #42b983;
}
</style>

29
src/components/Start.vue Normal 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>

View File

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