Nuxt/examples/hello-world/pages/about.vue

37 lines
631 B
Vue
Raw Normal View History

2016-11-07 01:34:58 +00:00
<template>
<div class="container">
2016-11-15 13:23:55 +00:00
<img src="~static/nuxt-black.png" />
2016-11-10 01:19:47 +00:00
<h2>Thank you for testing nuxt.js</h2>
<p>Loaded from the {{ name }}</p>
2016-11-10 01:19:47 +00:00
<p><router-link to="/">Back home</router-link></p>
</div>
2016-11-07 01:34:58 +00:00
</template>
<script>
export default {
data ({ req, error }) {
return {
name: req ? 'server' : 'client'
}
}
}
</script>
<style scoped>
.container {
2016-11-10 01:19:47 +00:00
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
background: black;
color: white;
font-family: "Lucida Console", Monaco, monospace;
padding-top: 130px;
text-align: center;
}
2016-11-10 01:19:47 +00:00
a {
color: silver;
}
</style>