Getting Started

How to get started with Binsar!

Bootstrap 5 version is the most popular css framework in which we have a lot of components. You can create a template using it, apart from this, we have made a lot of sections in it and web pages.

Much obliged to you for buying binsar We're happy that you discovered what you were searching for. It is our objective that you are consistently content with what you purchased from us, and We trust that you will actually want to make an extraordinary site with our topic without any problem

Dev setup

Follow the steps given below to setup your project

  1. Make sure you have Node installed since Binsar uses npm to manage dependencies. If you don't, installing is quite easy, just visit the Node js and install it.
  2. Unzip Binsar theme and open your command line, making sure your command line prompt is at the root of the unzipped theme directory.
  3. npm install gulp-cli -g: If you do not have the Gulp command line interface, you have to install it.
  4. npm install: Open your command line to the root directory of Binsar unzipped theme and run to install all of Binsar's dependencies.
Compiling

You can use and manage gulp Binsar development. just open your command line to the root directory of the theme to use the following commands:

  • gulp: You can compile the SCSS/JS/HTML, use Live Reload to update any browsers instantly, start a local server and pop a tab in your default browser such as internet explorer. Any changes made to the source files will be compiled.
  • gulp build: You can see generates all files a /dist directory with all the output files

Folder Structure

When you download the theme and extract it, then you will get this kind of folder structure.

  • 📁 dist - Generated output files
  • 📁 node_modules - Directory where npm installs dependencies.
  • 📁 src
    • 📁 assets
      • 📁 css - Compiled CSS
      • 📁 images - All images
      • 📁 js - Javascript source files
      • 📁 php - php contact file
      • 📁 scss - SCSS source of Binsar theme
      • 📁 webfonts - Lexend Sans web font
    • 📁 documantaion - Documentation pages
    • 📁 html - All HTML Files
    • 📁 partials - All HTML partials Files
  • 📄 gulpfile.js - All the build commands
  • 📄 package.json - List of dependencies and npm information
  • 📄 .gitignore - Hide all unnecessary files from Git
Gulp file includes

The gulp-file-include package is used to make partials easier to use for initial development. For Binsar, we only use it for a handful of components that are found on most pages. The following partials are available:

Easily create new .html partials inside the /partials folder and point to them from any file by specifying the path to the partial file and using the @@include keyword in your HTML pages.

  • head.html
      @@pageTitle (string) - Parameter for the page title
  • preloader.html
  • navigation.html
  • top-scroll.html
  • script.html

Please read the official gulp file include documentation for more info.