25.06.2018 Views

Full-Stack Vue.js 2 and Laravel 5

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Main files<br />

Open the vuebnb-prototype directory in your IDE. Note that the following index.html<br />

file is included. It's mostly comprised of boilerplate code, but also has some<br />

structural markup included in the body tag.<br />

Also note that this file links to style.css, where our CSS rules will be added, <strong>and</strong><br />

app.<strong>js</strong>, where our JavaScript will be added.<br />

index.html: <br />

<strong>Vue</strong>bnb vuebnb <br />

<br />

Currently app.<strong>js</strong> is an empty file, but I have included some CSS rules in style.css<br />

to get us started.<br />

style.css: body { font-family: 'Open Sans', sans-serif; color: #484848;<br />

font-size: 17px; margin: 0; }<br />

.container { margin: 0 auto; padding: 0 12px; }<br />

@media (min-width: 744px) { .container { width: 696px; } }<br />

#toolbar { display: flex; align-items: center; border-bottom: 1px solid #e4e4e4;<br />

box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1); }<br />

#toolbar .icon { height: 34px; padding: 16px 12px 16px 24px; display: inline-

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!