Adding a footer
To improve the design of Vuebnb, let's add a footer to the bottom of each page. We'll make it a reusable component, so let's begin by creating that:
$ touch resources/assets/components/CustomFooter.vueHere is the markup. For now, it's just a stateless component.
resources/assets/js/CustomFooter.vue:
<template>
<div id="footer">
<div class="hr"></div>
<div class="container">
<p>
<img class="icon" src="/images/logo_grey.png">
<span>
<strong>Vuebnb</strong>. A full-stack Vue.js and Laravel demo
app
</span>
</p>
</div>
</div>
</template>
<style>
#footer {
margin-bottom: 3em;
}
#footer .icon {
height: 23px;
display: inline-block;
margin-bottom: -6px;
}
.hr {
border-bottom: 1px solid #dbdbdb;
margin: 3em 0;
}
#footer p {
font-size: 15px;
color: #767676 !important;
...