SlideShare ist ein Scribd-Unternehmen logo
1 von 13
Build Responsive Websites
with Visual Studio 2013 and Bootstrap 3.0
Alek Davis
Intel Corporation
Agenda
Summary
 The absolute minimum you need to know to build responsive websites using
Visual Studio 2013, Bootstrap 3.0, and other popular open-source tools and
frameworks
Intro
 Trends, challenges, goals
Tools
 Visual Studio 2013, extensions, packages
 Bootstrap 3.0; LESS; ELMAH, Modernizr, Initializr, etc; fonts
Demo
 Project structure, page layout, elements, branding, functionality, performance
2
Current state of web development
Summary
 Same problems, more and better tools, no perfect solutions
Challenges
 IE browser wars, form factors (big and small, touch), HTML5, CSS3, baby
boomers
Trends
 Larger fonts, minimalism, responsive design, adaptive page layout, end of
Flash, rise of JavaScript, new frameworks, Bootstrap
 See also Designing A Website For 2014 and Web Design Trends for 2014
Goals
 USE industry standards and popular frameworks to BUILD
functional, efficient, and responsive website that are easy to MAINTAIN and
upgrade
3
Visual Studio 2013
What’s new?
 Minor IDE improvements (color is back, peek definition [Alt+F12])
 TFS 2010 or newer
 Bootstrap and other frameworks included
 Lots of magic (ScriptManager, LESS semi-support, friendly URLs)
See also
 Difference between Visual studio 2012 and Visual studio 2013
 ASP.NET features in New Project Templates in Visual Studio 2013 explains
purpose of project packages
4
Visual Studio extensions
Required
 Web Essentials: compiles LESS files, bundles/minifies CSS/JavaScrip
 Visual Studio Spell Checker: shows spelling errors
Recommended
 SlowCheetah: transforms web.config files on build (requires a project file modification)
 StopOnFirstBuildError: stops solution build on first error
Optional
 GhostDoc auto-generates XML comments
 Microsoft Visual Studio Team Foundation Server 2013 Power Tools: Team Explorer enhancements
 Regex Tester: tests regular expressions from the IDE
 jQuery Code Snippets: increases productivity
 Code Alignment: aligns code using different algorithms
 CodeMaid: helps working with code
 Productivity Power Tools 2013: enhances IDE
 Indent Guides: improves code readability
5
NuGet packages
Essential
 ELMAH (Error Logging Modules and Handlers)
 See also related packages
6
Bootstrap 3.0
Basics
 HTML5 + JavaScript + CSS3 for building responsive websites
 Mobile first design (pros and cons)
 Page scaffolding (xs (480px), sm (768px), md (992px), lg (1200px))
 Components (navigation, modal dialogs, menus, grids, etc)
 Pros and cons (popularity, customization, complexity, bugs and features,
dependencies)
Source
 Bootstrap home page
7
Bootstrap 3.0 (continued)
Dependencies
 jQuery
Companions
 Themes are optional
 Glyphicons font not needed (use FontAwesome [compare to Glyphicons])
 Respond.js for IE8 and IE9 (+ extra code)
 Initializr template generator
 Modernizr feature detector (included by Initializr)
 HTML4Shi(m|v) HTML5 tag recognition for pre-IE9 (included by Modernizr)
8
Bootstrap 3.0 (continued)
Customization
 Online (pros and cons)
 Use custom CSS (must follow the Bootstrap CSS)
 Use Bootstrap LESS as-is (or customize)
 See also:
 Twitter Bootstrap Customization Best Practices
9
Bootstrap 3.0 (continued)
Learning
 Better UI/UX with Bootstrap: A Developer's Primer video (50 min)
 Learn Twitter Bootstrap in 2 Hours video tutorials by easydevtuts
 Code a Responsive Website with Bootstrap 3 video tutorials by Brad Hussey
 Twitter Bootstrap Tutorial video tutorials by Creativity Tuts
 Responsive Web Design With Bootstrap video tutorials by Coder's Guide
 More...
Resources
 The big badass list of useful Twitter Bootstrap resources
10
LESS (Leaner CSS)
Overview
 LESS home page
 CSS preprocessor syntax
 Compiled to CSS on server or client
 Alternative to SASS
Features
 Variables, mixins, functions, operations, nesting, imports, and more...
Visual Studio integration
 Web Essentials extension (compiles LESS on save)
11
ELMAH (Error Logging Modules and Handlers)
Purpose
 Automatic or programmatic logging of error information
 Error log UI
Setup
 Install primary NuGet package
 Install error log type-specific NuGet package (e.g. SQL Server)
 Configure error log settings in the web.config file
 Define admin access rules (must turn SSL on when not using integrated
Windows authentication)
 Adjust configuration settings (e.g. for page not found -- AKA 404 -- errors)
12
Demo
Project
 Structure (folders, etc)
 Bundles (styles and scripts)
 Transformations (config files)
 CDN (failover)
 Exception handling
Fonts
 Font Awesome
 Google fonts
 Adobe Edge fonts
 Open Sans (see also)
Layout
 Sticky footer (see explanation)
13

Weitere ähnliche Inhalte

Kürzlich hochgeladen

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Kürzlich hochgeladen (20)

Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 

Empfohlen

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Empfohlen (20)

Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 

Build responsive websites with Visual Studio 2013 and Bootstrap 3.0

  • 1. Build Responsive Websites with Visual Studio 2013 and Bootstrap 3.0 Alek Davis Intel Corporation
  • 2. Agenda Summary  The absolute minimum you need to know to build responsive websites using Visual Studio 2013, Bootstrap 3.0, and other popular open-source tools and frameworks Intro  Trends, challenges, goals Tools  Visual Studio 2013, extensions, packages  Bootstrap 3.0; LESS; ELMAH, Modernizr, Initializr, etc; fonts Demo  Project structure, page layout, elements, branding, functionality, performance 2
  • 3. Current state of web development Summary  Same problems, more and better tools, no perfect solutions Challenges  IE browser wars, form factors (big and small, touch), HTML5, CSS3, baby boomers Trends  Larger fonts, minimalism, responsive design, adaptive page layout, end of Flash, rise of JavaScript, new frameworks, Bootstrap  See also Designing A Website For 2014 and Web Design Trends for 2014 Goals  USE industry standards and popular frameworks to BUILD functional, efficient, and responsive website that are easy to MAINTAIN and upgrade 3
  • 4. Visual Studio 2013 What’s new?  Minor IDE improvements (color is back, peek definition [Alt+F12])  TFS 2010 or newer  Bootstrap and other frameworks included  Lots of magic (ScriptManager, LESS semi-support, friendly URLs) See also  Difference between Visual studio 2012 and Visual studio 2013  ASP.NET features in New Project Templates in Visual Studio 2013 explains purpose of project packages 4
  • 5. Visual Studio extensions Required  Web Essentials: compiles LESS files, bundles/minifies CSS/JavaScrip  Visual Studio Spell Checker: shows spelling errors Recommended  SlowCheetah: transforms web.config files on build (requires a project file modification)  StopOnFirstBuildError: stops solution build on first error Optional  GhostDoc auto-generates XML comments  Microsoft Visual Studio Team Foundation Server 2013 Power Tools: Team Explorer enhancements  Regex Tester: tests regular expressions from the IDE  jQuery Code Snippets: increases productivity  Code Alignment: aligns code using different algorithms  CodeMaid: helps working with code  Productivity Power Tools 2013: enhances IDE  Indent Guides: improves code readability 5
  • 6. NuGet packages Essential  ELMAH (Error Logging Modules and Handlers)  See also related packages 6
  • 7. Bootstrap 3.0 Basics  HTML5 + JavaScript + CSS3 for building responsive websites  Mobile first design (pros and cons)  Page scaffolding (xs (480px), sm (768px), md (992px), lg (1200px))  Components (navigation, modal dialogs, menus, grids, etc)  Pros and cons (popularity, customization, complexity, bugs and features, dependencies) Source  Bootstrap home page 7
  • 8. Bootstrap 3.0 (continued) Dependencies  jQuery Companions  Themes are optional  Glyphicons font not needed (use FontAwesome [compare to Glyphicons])  Respond.js for IE8 and IE9 (+ extra code)  Initializr template generator  Modernizr feature detector (included by Initializr)  HTML4Shi(m|v) HTML5 tag recognition for pre-IE9 (included by Modernizr) 8
  • 9. Bootstrap 3.0 (continued) Customization  Online (pros and cons)  Use custom CSS (must follow the Bootstrap CSS)  Use Bootstrap LESS as-is (or customize)  See also:  Twitter Bootstrap Customization Best Practices 9
  • 10. Bootstrap 3.0 (continued) Learning  Better UI/UX with Bootstrap: A Developer's Primer video (50 min)  Learn Twitter Bootstrap in 2 Hours video tutorials by easydevtuts  Code a Responsive Website with Bootstrap 3 video tutorials by Brad Hussey  Twitter Bootstrap Tutorial video tutorials by Creativity Tuts  Responsive Web Design With Bootstrap video tutorials by Coder's Guide  More... Resources  The big badass list of useful Twitter Bootstrap resources 10
  • 11. LESS (Leaner CSS) Overview  LESS home page  CSS preprocessor syntax  Compiled to CSS on server or client  Alternative to SASS Features  Variables, mixins, functions, operations, nesting, imports, and more... Visual Studio integration  Web Essentials extension (compiles LESS on save) 11
  • 12. ELMAH (Error Logging Modules and Handlers) Purpose  Automatic or programmatic logging of error information  Error log UI Setup  Install primary NuGet package  Install error log type-specific NuGet package (e.g. SQL Server)  Configure error log settings in the web.config file  Define admin access rules (must turn SSL on when not using integrated Windows authentication)  Adjust configuration settings (e.g. for page not found -- AKA 404 -- errors) 12
  • 13. Demo Project  Structure (folders, etc)  Bundles (styles and scripts)  Transformations (config files)  CDN (failover)  Exception handling Fonts  Font Awesome  Google fonts  Adobe Edge fonts  Open Sans (see also) Layout  Sticky footer (see explanation) 13