SlideShare una empresa de Scribd logo
1 de 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

Más contenido relacionado

Último

Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistandanishmna97
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Orbitshub
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...apidays
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
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 FresherRemote DBA Services
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...apidays
 
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 Takeoffsammart93
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Victor Rentea
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfOverkill Security
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Angeliki Cooney
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKJago de Vreede
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Victor Rentea
 
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 WorkerThousandEyes
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamUiPathCommunity
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Zilliz
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfOverkill Security
 

Último (20)

Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
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
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
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
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
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
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdf
 

Destacado

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 EngineeringsPixeldarts
 
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 HealthThinkNow
 
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.pdfmarketingartwork
 
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 2024Neil Kimberley
 
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)contently
 
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 2024Albert Qian
 
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 InsightsKurio // The Social Media Age(ncy)
 
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 2024Search Engine Journal
 
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 summarySpeakerHub
 
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 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 Tessa Mero
 
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 IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
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 managementMindGenius
 
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...RachelPearson36
 
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...Applitools
 
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 WorkGetSmarter
 

Destacado (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