Hello.
Great project.
I having a problem tho.
When I try to replica your menu I dont get the toggle to work.
The menu folds in to the hamburger, but when I push the button there is no respond at all.
Here is my code. Can you see any errors? I cant se what different I have make from you.
App.vue
<template>
<div id="app" class="container">
<main>
<nav class="navbar navbar-expand-lg navbar-light bg-light" id="nav">
<button
class="navbar-toggler collapsed"
type="button"
data-target="#navbarText"
aria-controls="navbarText"
aria-expanded="false"
aria-label="Toggle navigation"
v-b-toggle="'navbarText'"
>
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarText">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link" href="#">Link 1</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link 2</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Link 3</a>
</li>
</ul>
</div>
</nav>
</main>
</div>
</template>
<script lang="ts">
import Vue from "vue";
export default Vue.extend({
name: "app"
});
</script>
<style lang="scss">
@import "../node_modules/bootstrap/dist/css/bootstrap.min.css";
@import "../node_modules/@fortawesome/fontawesome-free/css/all.css";
#app {
font-family: "Avenir", Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
}
#nav {
padding: 15px;
a {
font-weight: bold;
color: #2c3e50;
&.router-link-exact-active {
color: #42b983;
}
}
}
html {
position: relative;
min-height: 100%;
}
body {
margin-bottom: 60px; /* Margin bottom by footer height */
}
.footer {
position: relative;
bottom: 0;
width: 100%;
height: 60px; /* Set the fixed height of the footer here */
background-color: #f5f5f5;
}
footer {
background-color: #f2f2f2;
padding: 25px;
}
.footer p,
.footer div {
display: inline;
vertical-align: top;
font-family: "Open Sans", sans-serif;
font-size: 16px;
line-height: 28px;
}
.footer p {
font-weight: bold;
}
* a {
color: #42b983;
}
* .fa {
font-size: 18px;
}
.buttonGreen-outline {
width: 100%;
color: #41b883;
background-color: transparent;
border-color: #41b883;
}
.buttonGreen-outline:hover {
color: #ffffff;
background-color: #41b883;
border-color: #41b883;
}
.buttonGreen {
color: #fff;
background-color: #41b883;
}
.buttonGreen:hover {
background-color: #42a97b;
}
</style>
{
"name": "affiliet-cms",
"version": "0.1.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
},
"dependencies": {
"bootstrap": "^4.2.1",
"bootstrap-vue": "^2.0.0-rc.11",
"path": "^0.12.7",
"serverless": "^1.36.1",
"serverless-offline": "^4.0.0",
"serverless-webpack": "^5.2.0",
"typescript": "^3.1.6",
"vue": "^2.5.21",
"webpack": "^4.28.4"
},
"devDependencies": {
"@fortawesome/fontawesome-free": "^5.6.3",
"@vue/cli-plugin-babel": "^3.3.0",
"@vue/cli-plugin-eslint": "^3.3.0",
"@vue/cli-plugin-typescript": "^3.3.0",
"@vue/cli-service": "^3.3.0",
"@vue/eslint-config-typescript": "^3.2.0",
"babel-eslint": "^10.0.1",
"eslint": "^5.8.0",
"eslint-plugin-vue": "^5.0.0",
"node-sass": "^4.11.0",
"sass-loader": "^7.1.0",
"vue-template-compiler": "^2.5.21"
},
"eslintConfig": {
"root": true,
"env": {
"node": true
},
"extends": [
"plugin:vue/essential",
"eslint:recommended",
"@vue/typescript"
],
"rules": {},
"parserOptions": {
"parser": "typescript-eslint-parser"
}
},
"postcss": {
"plugins": {
"autoprefixer": {}
}
},
"browserslist": [
"> 1%",
"last 2 versions",
"not ie <= 8"
]
}