feat: add buefy example

This commit is contained in:
Clark Du 2017-11-07 11:22:19 +08:00
parent efd044fad6
commit 231ad4b4dc
No known key found for this signature in database
GPG Key ID: D0E5986AF78B86D9
6 changed files with 63 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

@ -0,0 +1,11 @@
module.exports = {
/*
** Customize the progress bar color
*/
loading: { color: '#3B8070' },
mode: 'spa',
plugins: ['~plugins/buefy'],
router: {
linkActiveClass: 'is-active'
}
}

View File

@ -0,0 +1,20 @@
{
"name": "with-buefy",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"scripts": {
"dev": "nuxt",
"build": "nuxt build",
"start": "nuxt start"
},
"dependencies": {
"buefy": "^0.5.4",
"nuxt": "latest",
"vue": "~2.4.4"
},
"devDependencies": {
"node-sass": "^4.6.0",
"sass-loader": "^6.0.6"
}
}

View File

@ -0,0 +1,3 @@
<template>
<h1>About</h1>
</template>

View File

@ -0,0 +1,25 @@
<template>
<nav class="navbar has-shadow is-light">
<div class="container">
<div class="navbar-brand">
<nuxt-link to="/" class="navbar-item">
<img src="~/assets/logo.png">
</nuxt-link>
</div>
<div class="navbar-menu">
<div class="navbar-start">
<nuxt-link to="/" class="navbar-item is-tab" exact>Home</nuxt-link>
<nuxt-link to="/about" class="navbar-item is-tab" exact>About</nuxt-link>
</div>
</div>
</div>
</nav>
</template>
<style lang="scss">
$primary: blue;
$navbar-tab-active-border-bottom-color: red;
@import "~bulma";
@import "~buefy/src/scss/buefy";
</style>

View File

@ -0,0 +1,4 @@
import Vue from 'vue'
import Buefy from 'buefy'
Vue.use(Buefy)