Disclaimer: please don't use this for production as this is for educational and development purpose only
Introduction
Foundation zurb is a cool scss framework for building your site. But it lack the ability to create a minimized toolbar like bootstrap, today i'm gonna show you how to create top bar like bootstrap navigation bar.
Prequisites
install nodejs for this i recommend using node v11.15.0
for most of this tutorial i will use linux command line. You can use wsl in windows for the equivalent of linux command line or git scm.
Step 1 - Bootstraping the angular app to use foundation zurb
follow this step below to create a bootstraping angularjs app that has scss foundation framework
go to src/pages/index.html ,remove all the html and change it will below
<divclass="title-bar"data-responsive-toggle="responsive-menu"data-hide-for="medium"><buttonclass="menu-icon"type="button"data-toggle="responsive-menu"></button><divclass="title-bar-title">Menu</div></div><divclass="top-bar"id="responsive-menu"><divclass="top-bar-left"><ulclass="dropdown menu"data-dropdown-menu><liclass="menu-text">Site Title</li><liclass="has-submenu"><ahref="#0">One</a><ulclass="submenu menu vertical"data-submenu><li><ahref="#0">One</a></li><li><ahref="#0">Two</a></li><li><ahref="#0">Three</a></li></ul></li><li><ahref="#0">Two</a></li><li><ahref="#0">Three</a></li></ul></div><divclass="top-bar-right"><ulclass="menu"><li><inputtype="search"placeholder="Search"></li><li><buttontype="button"class="button">Search</button></li></ul></div></div>
if success you can will get something like this
when minimized into mobile you will get something like this
we want the top bar to be something like bootstrap navigation like this one
with a burger bar on the right and menu on the bottom
now save the file and you will get something like this
this is different design than bootstrap one but i think will get you an idea later how to create bootstrap navigation bar using top bar foundation zurb
Please open all issues with this template on the main Foundation for Sites repo.
This is the official ZURB Template for use with Foundation for Sites. We use this template at ZURB to deliver static code to our clients. It has a Gulp-powered build system with these features:
Handlebars HTML templates with Panini
Sass compilation and prefixing
JavaScript module bundling with webpack
Built-in BrowserSync server
For production builds
CSS compression
JavaScript module bundling with webpack
Image compression
Installation
To use this template, your computer needs:
NodeJS (Version 6 or greater recommended, tested with 6.11.4 and 8.12.0)