mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 01:17:16 +00:00
Add style to plugins-vendor example
This commit is contained in:
parent
d47775ebfd
commit
90a97d76ce
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div>
|
||||
<div class="container">
|
||||
<img :src="thumbnailUrl" />
|
||||
<p><router-link to="/">Home</router-link> - About</p>
|
||||
</div>
|
||||
@ -10,7 +10,15 @@ import axios from 'axios'
|
||||
|
||||
export default {
|
||||
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>
|
||||
|
||||
<style>
|
||||
.container {
|
||||
text-align: center;
|
||||
padding-top: 100px;
|
||||
font-family: sans-serif;
|
||||
}
|
||||
</style>
|
||||
|
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div>
|
||||
<div class="container">
|
||||
<p><button @click="showLoginError">Notif me!</button></p>
|
||||
<p>Home - <router-link to="/about">About</router-link></p>
|
||||
</div>
|
||||
@ -26,3 +26,11 @@ export default {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.container {
|
||||
text-align: center;
|
||||
padding-top: 100px;
|
||||
font-family: sans-serif;
|
||||
}
|
||||
</style>
|
||||
|
Loading…
Reference in New Issue
Block a user