Creating customization with JS framework: Bootstrap

Slides:



Advertisements
Similar presentations
Slide 1 MIS3023 Professor: Akhilesh Bajaj The University of Tulsa.
Advertisements

Introduction to jQuery (for Drupal) Amit Asaravala “aasarava” on drupal.org.
1 Lesson 5 Introduction to Cascading Style Sheets HTML and JavaScript BASICS, 4 th Edition Barksdale / Turner.
Web Design with Cascading Style Sheet Lan Vu. Overview Introduction to CSS Designing CSS Using Visual Studio to create CSS Using template for web design.
CS428 Web Engineering Lecture 15 Introduction to Jquery.
Philly.NET Hands-On jQuery + Plug-ins Bill Wolff, Rob Keiser.
Bones – HTML5 Wordpress Theme Development
Understanding HTML Style Sheets. What is a style?  A style is a rule that defines the appearance and position of text and graphics. It may define the.
Kathy E. Responsive Design and Twitter Bootstrap.
Create a Website Session I Key Components Hands-on HTML.
Copyright © Texas Education Agency, All rights reserved. 1 Web Technologies Website Development with Dreamweaver.
Animation & Effects Using JQuery. What is jQuery? jQuery is a lightweight, JavaScript library. The purpose of jQuery is to make it much easier to use.
Lab 4: Bootstrap and Responsive Design User Interface Lab: GUI Lab Sep. 16 th, 2014.
Introduction to Bootstrap
Intro to jQuery. What is jQuery? A JavaScript library Lightweight (about 31KB for the minified version) Simplifies HTML document traversing (DOM), event.
CSS Cascading Style Sheets A very brief introduction CSS, Cascading Style Sheets1.
Dawn Pedersen. What is JavaScript? JavaScript is the basis for both jQuery and Spry applications JavaScript is referred to as a client-side scripting.
Adxstudio Portals Training
learn. do. dream. Bootstrapping with Twitter Bootstrap Responsive Layouts CSS Components JavaScript Font Awesome Select2 Themes.
Document Object Model Nasrullah. DOM When a page is loaded,browser creates a Document Object Model of the Page.
SHAREPOINT & JQUERY. Hi, my name and I am a product manager at lightning tools. I have been working with SharePoint for 5 years.
Chapter 1 Murach's JavaScript and jQuery, C1© 2012, Mike Murach & Associates, Inc.Slide 1.
05 | Integrating JavaScript and MVC 4 Jon Galloway | Tech Evangelist Christopher Harrison | Head Geek.
A gentle introduction to Bootstrap MIS 3502, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 2/18/
Customizing WebLink Lab 208 Alex Huang. Table of Contents Introduction – What is WebLink Disclaimer Customization Basics and Exercises Resources Questions.
TWITTER BOOTSTRAP Rick Mason. All houses were custom built on site.
1/7/2016www.infocampus.co.in1. 1/7/2016www.infocampus.co.in2 Web Development training gives you and all-round training in both the design and the development.
INTRODUCTION ABOUT DIV Most websites have put their content in multiple columns. Multiple columns are created by using or elements. The div element is.
SharePoint & jQuery. About me Phill Duffy – Product Manager at Lightning Tools Ltd – Author of ‘Pro SharePoint with jQuery’ – MCTS Application Developer.
Front End Design By Sylvester Ndung’u
Tips & Tricks with Multiple Skins
A Crash Course By TraversyMedia.com
Week-12 (Lecture-1) Cascading Style Sheets (CSS): describe how documents are presented on screens. Types of Style Sheets: External Style Sheet - Define.
CNIT131 Internet Basics & Beginning HTML
PHP MySQL Crash Course with HTML CSS
Twitter Bootstrap Grid System
A gentle introduction to Bootstrap
What’s New In Bootstrap v4?
Front-End Framework for Responsive Web Sites
IGEM Wiki Workshop 11/05/2017.
Creating Websites With WordPress
Human Computer Interaction
Use Office UI Fabric React to Build Beauty with SharePoint
Introduction to Bootstrap Bootstrap සදහා හැදින්වීම
© 2016, Mike Murach & Associates, Inc.
What is Bootstrap? Front-End Framework Mobile First
CASCADING STYLE SHEET CSS.
Revision.
Developing Branding Solutions for 2013
Introducing Office UI Fabric
APTECH JANAKPURI INSTITUTE PROVIDING WEB DESIGNING COURSES Address:- J-1,2nd Floor, Opp Metro Pillar No – 559, Janakpuri East, Delhi /42.
Bootstrap Topics What is bootstrap? Documentation
Bootstrap Components Reusable components built to provide iconography, dropdowns, input groups, navigation, alerts, and much more.
Web Programming A different world! Three main languages/tools No Java
JQuery with ASP.NET.
A gentle introduction to Bootstrap
Chapter 11 - How to use jQuery plugins and jQuery UI Widgets
What are Cascading Stylesheets (CSS)?
Input CS 422: UI Design and Programming
Master a Skill / Learn for Life
Building ASP.NET Applications 2
Web Design and Development
Master a Skill / Learn for Life
HTML and CSS Basics.
04 | Visual Studio & ASP.NET Integration
Bootstrap Direct quote from source: bootstrap/
Bootstrap/WebFlow Web development of the future
Murach's JavaScript and jQuery (3rd Ed.)
© 2017, Mike Murach & Associates, Inc.
Murach's JavaScript and jQuery (3rd Ed.)
Presentation transcript:

Creating customization with JS framework: Bootstrap Author: Juan Davila If it's not responsive, user's are more likely to overlook it, and move on.

Bootstrap is a front-end framework, that utilizes CSS. Basically, a large stylesheet with a lot of rules. JavaScript comes with custom jQuery plugins. Lastly, The magic happens with conventions with structured html with class in the right place. 1. Bootstrap is a front-end framework. 2. A large style sheet with of rules. 3. Coordinates with jQuery. 4. Conventions and Semantics are important.

Requirements <script src="Scripts/jquery-1.8.3.js"/> Bootstrap.css <!-- Latest compiled and minified CSS --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstra p/3.3.4/css/bootstrap.min.css"> <!-- Optional theme --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstra p/3.3.4/css/bootstrap-theme.min.css"> <!-- Latest compiled and minified JavaScript --> <script src="https://maxcdn.bootstrapcdn.com/bootstra p/3.3.4/js/bootstrap.min.js"></script> <script src="Scripts/jquery-1.8.3.js"/> <script src="bootstrap/js/bootstrap.js/> Source: http://getbootstrap.com/getting-started/

Where to customize and how? Visit http://getbootstrap.com/customize/. http://lesscss.org/ https://www.npmjs.com/package/npm Less can be used created as .json config file.

Demo Visual Studio has a nuget package for bootstrap that can be used to install bootstrap, if you want more customization create the .Less file on the bootstrap and modify from there. Can modify/override the bootstrap styles.  Can use the F12 editor to locate the style to modify the site.css file for bootstrap. Make sure site.css is included in the html page, just after the bootstrap.css. Directly extract bootstrap in to project directory. CSS and IMG folders need to be on the same level, works because it references relevant URLs. Best to place them in the layout views, so that it goes into every page.

Managing dependencies Bower bootstrap/ ├── css/ │ ├── bootstrap.css │ ├── bootstrap.css.map │ ├── bootstrap.min.css │ ├── bootstrap-theme.css │ ├── bootstrap-theme.css.map │ └── bootstrap-theme.min.css ├── js/ │ ├── bootstrap.js │ └── bootstrap.min.js └── fonts/ ├── glyphicons-halflings-regular.eot ├── glyphicons-halflings-regular.svg ├── glyphicons-halflings-regular.ttf ├── glyphicons-halflings-regular.woff └── glyphicons-halflings-regular.woff2

Javascript can be use to check states Data-toggle Active at the end of button attributes Uses jQuery event delegate, uses the on method, the button state is set until after the click event  fires. The "button" for example will have active class btn btn-primary active.

Basic Setup Download the Bootstrap Reference the correct dependencies that may be needed. Modify any custom styles in the site.css, and included in the head element. IMPORTANT NOTE: Operates on 12 column grid layout

To be aware of what? Advantages Disadvantages Good for developing for responsive UI design. A lot of documentation is provided. Reusable by utilizing semantic class names. Convention(within a class that creates something like magic.) Difficult to differentiate from other websites that use bootstrap. Class names are not specific about implementation Will not accept 3rd party JavaScript libraries. PAGINATION or JUMBOTRON are good examples of conventions.

Information http://getbootstrap.com/2.3.2/ Sources: http://en.wikipedia.org/wiki/Bootstrap_(front-end_framework) http://www.pluralsight.com/training/Player?author=scott-allen&name=bootstrap-m1-introduction&clip=4&course=bootstrap-introduction http://lesscss.org/ https://www.npmjs.com/ http://www.w3schools.com/bootstrap/default.asp