Add style to plugins-vendor example

This commit is contained in:
Sébastien Chopin 2016-11-08 03:48:18 +01:00
parent d47775ebfd
commit 90a97d76ce
2 changed files with 19 additions and 3 deletions

View File

@ -1,5 +1,5 @@
<template> <template>
<div> <div class="container">
<img :src="thumbnailUrl" /> <img :src="thumbnailUrl" />
<p><router-link to="/">Home</router-link> - About</p> <p><router-link to="/">Home</router-link> - About</p>
</div> </div>
@ -10,7 +10,15 @@ import axios from 'axios'
export default { export default {
data () { data () {
return axios.get('http://jsonplaceholder.typicode.com/photos/1').then(res => res.data) return axios.get('http://jsonplaceholder.typicode.com/photos/4').then(res => res.data)
} }
} }
</script> </script>
<style>
.container {
text-align: center;
padding-top: 100px;
font-family: sans-serif;
}
</style>

View File

@ -1,5 +1,5 @@
<template> <template>
<div> <div class="container">
<p><button @click="showLoginError">Notif me!</button></p> <p><button @click="showLoginError">Notif me!</button></p>
<p>Home - <router-link to="/about">About</router-link></p> <p>Home - <router-link to="/about">About</router-link></p>
</div> </div>
@ -26,3 +26,11 @@ export default {
} }
} }
</script> </script>
<style>
.container {
text-align: center;
padding-top: 100px;
font-family: sans-serif;
}
</style>