article

Introduction to MVC

Lesson 6 - Bootstrap

[WHAT]

  1. ] VIDEO SUMMARY - notes on this lesson which explains what bootstrap is and how you can use it to developn and improve the front end design of your web applications

[WHY]

  1. ] bootstrap -  makes it very easy to build responsive sites
  2. ] themes - to get a custom look for your sites
  3. ] components - many pre built items you can use in your web site
  4. ] included in MVC framework
  5. ] support in VS IDE for enhanced bootstrap productivity

[WHERE]

  1. ] WATCH THE FULL VIDEO
    1. ] Microsoft MVC intro - Lesson 6 - AngularJS -  by microsoft's Jon Galloway and Christopher Harrison

[WHEN]

  1. ] 2014-06-24 - produced

[EXAMPLE]

  1. [00:00] bootstrap
    1. ] a framework for front end development, included with MVC framework
    2. ] can also be used with asp.net web forms projects
    3. ] REFERENCE - http://jameschambers.com - has a very good 30 day project example, 1 post on bootstrap
    4. ] boostrap how to make html views look good, how to make it work on your mobile devices
    5. ] ? in chat re: jquery VS bootstrap
      1. ]-jquery - quickly finding a control and updating it across mutliple browsers, plugins,
      2. ] bootstrap - has additional, a bootstrap view, css, class
    6. ] bootstrap is/has become a defacto standard, you dont have to use it, it does have some "cringy" stuff but for the most part its pretty good, including the docs  
  2. [00:00] why
    1. ] css by itself is hard, making cross browser sites where everything is uniform across all browsers
    2. ] things like buttons, tables with styles(ex hightlight alt rows), for those a lot of the time its difficult to do, bootstrap makes it easy
    3. ] theme support  -
    4. ] responsive design - your site will adapt to narrow or wide screens or device types, letting css deal with it
    5. ] grid - makes position elements on your page differently, depending on the device the page is being displayed on.
    6. ] components - lots of different
    7. ] VS support - set html attributes to pull in css classes, VS and VS WE do a lot of things for you
  3. [09:00] DEMO - themes
    1. ] drop in a new css theme to make your site look different from other bootstrap sites
    2. ] there are tons of different themes, you can writer your own too
    3. ] its very easy to do
    4. *] REMEMBER layout file used the "magic" Styles.Render() method, ] AppStart directory CONTAINS a BundlesConfig.cs class where you specify which css files to Bundle, (the bundling system automatically includes the .min version), downloaded files are located in the /Content directory
    5. ] you can buy pre built themes from many sites, including http://wrapbootstrap.com  like or find free ones as well http://bootswatch.com 
    6. ] use copy full path option in VS to get target directory, then download new theme to that directory
    7. ] choose theme "Lumen", didnt like it, just download another theme(superhero) liked this one better, its very easy to change them out
    8. ] CDN's - many devs host their themes on these, if you dont want to download them
    9. ] performance tips - stay off the database, avoid round trips, CDN's
  4. [15:00] DEMO - Responsive layouts
    1. ] making your site look good across all size screens
    2. ] using @media queries, - apply to all screens with a min-width of x pix
    3. ] shows example of hiding content for specific screen sizes
  5. [19:00] DEMO - grids
    1. ] sometimes grids can constrain you, this goes in this column but overall a good thing
    2. ] you define how much width, things take up at different screen sizes
    3. ] examples  ] ex large > 1200 px, ] medium > 992, ] small > 768 ] extra small < 768
    4. ] chris says some people are still using tables, should get away from that, this makes it easy, ] using tables - elements inside are fixed/rigid, they dont adjust
    5. ] demos adusting col-width of elements in code, from 3 with = size, to 3 with varying sizes
    6. ] demos adjusting col size for different devices by adding a new bootstrap class to the element, - if it is desktop/laptop screen it will look like this, if it is small phone it will look like this
    7. ] check out getbootstrap.com docs for all the details -
  6. [28:30]  bootstrap components
    1. ] includes things like the following -
      1. ] buttons
      2. ] pagination -
      3. ] media controls - can use nesting,
      4. ] collapsible grids -
      5. ] tabs -
      6. ] tooltips -
      7. ] alerts -
    2. *] web forms had controls for these types of elements, ] for mvc you would use these components, in place of controls
    3. ] for interactivity you will be using javascript
    4. ] glyph icons - by adding a few simple classes, they are implemented using fonts(vs images), which means that they scale to any size
  7. [31:00] DEMO - bootstrap components
    1. ] there is a lot more to bootstrap, check out the resources,
    2. ] pagination - just add class=pagination to ul list and it is formatted into a pagination set of links
    3. ] button - all butttons need the btn class, you cant just use "btn-primary", it needs to be "btn btn-primary", buttons are on a tag
    4. ] remember - VS tips - type "a.btn.btn-warning WILL GENERATE html code <a href="#" class="btn btn-warning">
    5. ] alert
    6. ] glyph icon - putting a "shopping cart icon" inside a buy button <span class=glyphicon glyphicon-shopping-cart></span>
    7. ] these are just a few of the components -
  8. [41:30] VS - support
    1. ] bootstrap does requires you to write some html, some css
    2. ] VS intellisense can detect things like missing btn prefix
    3. ] VS intellisense can show you a listing of all the button classes by typing, "btn-" (just like it does with language code like C#)
    4. ] VS will show you green squiggly underline warning on element, if code is wrong, example missing btn-warning missing the btn class
    5. ] VS has a lot of built in tools for other frameworks - angularjs, coffeessript, less, typescript, javascript, source maps, 
  9. [43:00] review and @mention
    1. ] @mention - build 2014 talk with angular js, demos using angularjs to build front end, web api to build back end, with David Katuee, also some singularR
    2. ] @mention - web-api - is another msft programming framework, designed for returning everything other than html - json, xml, binary, great for building http services
    3. ] bootstrap - a great front end framework
    4. ] 1 downside - every site looks the same,
    5. ] BUT keep in mind, that you can still you use the classes and rework everything to your liking
    6. ] AND there are a LOT of templates/themes that enable you to customize your app
    7. ] bootstrap enables ] responsive design using ] grid system
    8. ] bootstrap includes  ] components, ] themes for getting to the style you like

[HOW-TO]

  1. ] # 5050 - my project - guide to asp.net - MVC
    1. ] # # -

[REFERENCE]

  1. ] # 5359 - overview series 

quiz

pre quiz = 73% complete, course is 64 points, dashboards show 4, #1627 in Canada, #114,###

 

] Bootstrap loads the resources that an application needs into memory.

T/F

] BrowserLink automatically updates the web browsers that display pages when you update the pages in Visual Studio.

T/F

] In Bootstrap, which screen width defines medium devices?

] Which two statements about Bootstrap are true?

5] Which statements about Bootstrap are true? Choose all that apply.

- Bootstrap automatically adjusts content size and placement when you resize a window.

- Bootstrap supports tablet devices, laptop computers, and desktop computers.

 - Bootstrap can display different menus for different devices sizes.

- Bootstrap does NOT support small form factor devices such as mobile phones.

results 4/5, PRB #5 

 

 

 

Details Photos Edit more

Details

ID: 4587

NAME: introduction-MVC-lesson-6

DESCRIPTION: [48:46]VIDEO-SUMMARY Introduction to MVC - Lesson 6 - Bootstrap - by Jon Galloway and Christopher Harrison of Microsoft - introduction to using the Bootstrap front end framework within MVC

AUTHOR: article.author/s

EDITOR: article.editor/s

PUBLISHER: article.publisher/s

STATUS: Write

PRIORITY: -5

OWNER ID: 75

Content Photos Edit more

photos

page_photo

actions

Email Email-Owner SMS and