SlideShare una empresa de Scribd logo
1 de 74
POST-PC
Website Development in a Mobile, Touch-Based World

                 Jared White
             Creative Director, Siteshine
WHY THIS MATTERS
WHY THIS MATTERS
iPhone
WHY THIS MATTERS
       iPhone

110m
WHY THIS MATTERS
       iPhone

110m
         3%
       Browser
        Usage
WHY THIS MATTERS
       iPhone    iPad

110m
         3%
       Browser
        Usage
WHY THIS MATTERS
       iPhone          iPad

110m
         3%
       Browser
        Usage

                 25m
WHY THIS MATTERS
       iPhone          iPad

110m
         3%              2%
       Browser         Browser
        Usage           Usage

                 25m
WHY THIS MATTERS
       iPhone          iPad      Android

110m
         3%              2%
       Browser         Browser
        Usage           Usage

                 25m
WHY THIS MATTERS
       iPhone          iPad         Android
                                 120m
110m
         3%              2%
       Browser         Browser
        Usage           Usage

                 25m
WHY THIS MATTERS
       iPhone          iPad         Android
                                 120m
110m
         3%              2%               3%
       Browser         Browser          Browser
        Usage           Usage            Usage

                 25m
PUT IN PERSPECTIVE...
  iPhone     iPad   Android


<2007      <2010    <2008
PUT IN PERSPECTIVE...
    iPhone     iPad   Android


<2007        <2010    <2008




0
PUT IN PERSPECTIVE...
    iPhone       iPad   Android


<2007        <2010      <2008




0            0
PUT IN PERSPECTIVE...
    iPhone       iPad       Android


<2007        <2010          <2008




0            0          0
2000

 FACT: Global mobile data traffic in 2010 was
three times the size of all global Internet traffic
     (fixed and mobile) in the year 2000
                     Source: Cisco
2000 2010

 FACT: Global mobile data traffic in 2010 was
three times the size of all global Internet traffic
     (fixed and mobile) in the year 2000
                     Source: Cisco
ADD IT ALL TOGETHER...
2011
  1 in 10 users are using a
mobile device to browse the web
2011
  1 in 10 users are using a
mobile device to browse the web
A LITTLE ABOUT ME...
WHO IS THIS GUY?
         • I've
             been in the computer/
          web field for 14 years
         • Self-taught   graphics designer
         • LearnedHTML & CSS in
          the bad old browser wars

WANTED    days
         • PHP and I go way back, but
          I'm a Rails kid now
WHO IS THIS GUY?

         • Founded     Siteshine in 2009
         •I   bill myself as a
          “Creative Director”
          which is a fancy word for
          Jack-of-all-Trades
WANTED   •Ifollow 37signals’ Get Real
          approach whenever I can
Think Different.
Mobile
     !=
  Traditional


Think Different.
TRADITIONAL
You're Sitting. You're Using a Mouse/Trackpad.
You Have Resizable Windows. It's Anti-Social.
MOBILE
You're on the Go. You're Using Your Fingers.
 You Have a Fixed Screen. It's More Social.
MOBILE
You're on the Go. You're Using Your Fingers.
 You Have a Fixed Screen. It's More Social.
WHAT'S THIS MEAN FOR
  WEB DEVELOPERS?
       • Yourhave you rework your
        content for mobile use cases.
       • Youhave to intercept Javascript
        touch events rather than clicks.
       • You have to design for fixed
        screen sizes while accounting
        for device orientation.
TRADITIONAL CONTENT
MOBILE CONTENT
Don't forget about forms!




 MOBILE CONTENT
Don't forget about forms!




 MOBILE CONTENT
Don't forget about forms!




 MOBILE CONTENT
TRADITIONAL: HOVER/CLICK
TRADITIONAL: HOVER/CLICK
MOBILE: GESTURE
MOBILE: GESTURE
TRADITIONAL: FIXED-WIDTH
MOBILE: PORTRAIT/LANDSCAPE
ASIDE...
USA Today website SUCKS
 compared to iPad app!
ATTENTION WEB DESIGNERS:
 iOS App Developers may eat your lunch.
HEY, WHICH SIDE AM I ON?

  I've seen great mobile sites and lousy apps.
                And visa-versa.

        I'm on the side of great design.

If you can design a mobile site as cool as an app,
              GO FOR IT.
4         AREAS TO FOCUS ON
• JS   Events: Stop using onmouse* events and start using
               ontouch* and ongesture* events.

• Orientation: Use   CSS and Javascript to detect changes
                 from portrait to landscape and back again.

• Viewport: Lock    in 100% zoom. Hide the chrome.

• HTML5: Your    ticket to the outside (hardware) world.
1st         AREA TO FOCUS ON
• JS   Events: Stop using onmouse* events and start using
               ontouch* and ongesture* events.

   ontouchstart                  ongesturestart
   ontouchmove                   ongesturechange
   ontouchend                    ongestureend
1st         AREA TO FOCUS ON
• JS   Events: Stop using onmouse* events and start using
               ontouch* and ongesture* events.




                         Example
1st         AREA TO FOCUS ON
• JS   Events: Stop using onmouse* events and start using
               ontouch* and ongesture* events.


                                ontouchstart
                                 ontouchend




                          ontouchmove


                         Example
1st         AREA TO FOCUS ON
• JS   Events: Stop using onmouse* events and start using
               ontouch* and ongesture* events.


                  Remember!
Some platforms like iOS exhibit a delay for onclick.
 For best user experience, ditch the onclicks and
          intercept ontouchend instead.
2nd AREA TO FOCUS ON
• Orientation: Use         CSS and Javascript to detect changes
                       from portrait to landscape and back again.

       CSS - iPhone                                 Javascript
  /* Portrait */
  @media screen and (max-width: 320px)   onorientationchange
  {
     .panel { width: 300px; }            var ori = window.orientation;
  }
  	                                      if (ori == 0 || ori == 180) {
  /* Landscape */                           // Portrait
  @media screen and (min-width: 321px)   }
  {                                      else if (ori == 90 || ori == -90) {
    .panel { width: 460px; }                // Landscape	 	
  }                                      }


Also (orientation: portrait/landscape)
3rd       AREA TO FOCUS ON
• Viewport: Lock   in 100% zoom. Hide the chrome.
                            HTML
     <meta name="viewport" content="width=device-width,
     initial-scale=1.0, maximum-scale=1.0, user-scalable=no">


                        Javascript
         window.addEventListener("load", function() {
           setTimeout(function(){
              // Hide the address bar!
              window.scrollTo(0, 1);
           }, 0);
         });
4th     AREA TO FOCUS ON
• HTML5: Your   ticket to the outside (hardware) world.
4th     AREA TO FOCUS ON
• HTML5: Your   ticket to the outside (hardware) world.
4th      AREA TO FOCUS ON
• HTML5: Your   ticket to the outside (hardware) world.



      Semantics       Offline & Storage      Device Access




     Connectivity        Multimedia         3D Graphics & FX


                                                    ?
    Performance &
                            CSS3          And it's still evolving!
      Integration
4th     AREA TO FOCUS ON
• HTML5: Your   ticket to the outside (hardware) world.

    Device Access
4th     AREA TO FOCUS ON
• HTML5: Your   ticket to the outside (hardware) world.

    Device Access


                        Geolocation
           function start_geolocation() {  
               navigator.geolocation.getCurrentPosition(geo_handler);  
           }
              
           function geo_handler(position) {
               var latitude = position.coords.latitude;
               var longitude = position.coords.longitude;
               // Do something cool 
           }
4th      AREA TO FOCUS ON
• HTML5: Your   ticket to the outside (hardware) world.

    Device Access


                      Accelerometer
         window.ondevicemotion = function(e) {  
             var accelerationX = event.accelerationIncludingGravity.x;  
             var accelerationY = event.accelerationIncludingGravity.y;  
             var accelerationZ = event.accelerationIncludingGravity.z;  
         }
4th     AREA TO FOCUS ON
• HTML5: Your   ticket to the outside (hardware) world.

    Device Access


            Camera: Still & Video
4th     AREA TO FOCUS ON
• HTML5: Your   ticket to the outside (hardware) world.

    Device Access


            Camera: Still & Video



                  C omi ng So on!
AND DON'T FORGET
THE MOST IMPORTANT
      THING...
NO FLASH!
 Really. Just kill it now.
-webkit -transform
                           <video
                                  >

 <au dio>
                            <ca
            ry                  nv
       jQue                        as>


    JAVASCRIPT, CANVAS, SVG, CSS3,
       HTML5 VIDEO, AND H.264
            ARE YOUR FRIENDS
-webkit -transform
                           <video
                                  >

 <au dio>
                            <ca
            ry                  nv
       jQue                        as>


    JAVASCRIPT, CANVAS, SVG, CSS3,
       HTML5 VIDEO, AND H.264
            ARE YOUR FRIENDS
WHAT ABOUT
FRAMEWORKS?
SPEED UP THE PROCESS
•   jQuery – you should be using this anyway!

•   jQuery Mobile – new layer built on top of jQuery

• jQTouch    – a similar alternative also based on jQuery

• TouchSwipe    – a lightweight, awesome jQuery plugin

• Sencha Touch   – heavy-duty webapp framework

• M-Project, Rhomobile, etc.   – choose your flavor
SPEED UP THE PROCESS
•   What about popular CMS platforms?

•   WP Touch – oft-used theme for WordPress

•   OnSwipe – iPad-optimized theme for WordPress

•   Mobile Joomla! – extensions for Joomla!

• iUI, Others   – themes for Drupal
JQUERY MOBILE
JQUERY MOBILE
JQUERY MOBILE
JQUERY MOBILE
JQUERY MOBILE
<!DOCTYPE html>
<html>

    <head>

    <title>Page Title</title>

    <link rel="stylesheet" href="http://code.jquery.com/mobile/1.0b1/jquery.mobile-1.0b1.min.css" />

    <script type="text/javascript" src="http://code.jquery.com/jquery-1.6.1.min.js"></script>

    <script type="text/javascript" src="http://code.jquery.com/mobile/1.0b1/
jquery.mobile-1.0b1.min.js"></script>
</head>
<body>

<div   data-role="page">

      <div data-role="header">

      
    <h1>Page Title</h1>

      </div><!-- /header -->


      <div data-role="content">

      
    <p>Page content goes here.</p>
 

      </div><!-- /content -->


    <div data-role="footer">

    
    <h4>Page Footer</h4>

    </div><!-- /footer -->
</div><!-- /page -->

</body>
</html>
JQUERY MOBILE
MY PREDICTION
  I could be wrong, but...
2020
  25%-50% of your site visitors
will be using Post-PC mobile devices
NOW GO MAKE SOME
   COOL STUFF
      Questions?

    jared@siteshine.com

    @WebDevJared

     Thank you.

Más contenido relacionado

Último

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
Victor Rentea
 
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
Victor Rentea
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
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
panagenda
 

Último (20)

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
 
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 New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
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
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
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
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
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
 
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
 
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...
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
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...
 

Destacado

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)
 

Destacado (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
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...
 

Post PC - Website Development in a Mobile, Touch-based World

  • 1. POST-PC Website Development in a Mobile, Touch-Based World Jared White Creative Director, Siteshine
  • 4. WHY THIS MATTERS iPhone 110m
  • 5. WHY THIS MATTERS iPhone 110m 3% Browser Usage
  • 6. WHY THIS MATTERS iPhone iPad 110m 3% Browser Usage
  • 7. WHY THIS MATTERS iPhone iPad 110m 3% Browser Usage 25m
  • 8. WHY THIS MATTERS iPhone iPad 110m 3% 2% Browser Browser Usage Usage 25m
  • 9. WHY THIS MATTERS iPhone iPad Android 110m 3% 2% Browser Browser Usage Usage 25m
  • 10. WHY THIS MATTERS iPhone iPad Android 120m 110m 3% 2% Browser Browser Usage Usage 25m
  • 11. WHY THIS MATTERS iPhone iPad Android 120m 110m 3% 2% 3% Browser Browser Browser Usage Usage Usage 25m
  • 12. PUT IN PERSPECTIVE... iPhone iPad Android <2007 <2010 <2008
  • 13. PUT IN PERSPECTIVE... iPhone iPad Android <2007 <2010 <2008 0
  • 14. PUT IN PERSPECTIVE... iPhone iPad Android <2007 <2010 <2008 0 0
  • 15. PUT IN PERSPECTIVE... iPhone iPad Android <2007 <2010 <2008 0 0 0
  • 16. 2000 FACT: Global mobile data traffic in 2010 was three times the size of all global Internet traffic (fixed and mobile) in the year 2000 Source: Cisco
  • 17. 2000 2010 FACT: Global mobile data traffic in 2010 was three times the size of all global Internet traffic (fixed and mobile) in the year 2000 Source: Cisco
  • 18. ADD IT ALL TOGETHER...
  • 19. 2011 1 in 10 users are using a mobile device to browse the web
  • 20. 2011 1 in 10 users are using a mobile device to browse the web
  • 21. A LITTLE ABOUT ME...
  • 22. WHO IS THIS GUY? • I've been in the computer/ web field for 14 years • Self-taught graphics designer • LearnedHTML & CSS in the bad old browser wars WANTED days • PHP and I go way back, but I'm a Rails kid now
  • 23. WHO IS THIS GUY? • Founded Siteshine in 2009 •I bill myself as a “Creative Director” which is a fancy word for Jack-of-all-Trades WANTED •Ifollow 37signals’ Get Real approach whenever I can
  • 25. Mobile != Traditional Think Different.
  • 26. TRADITIONAL You're Sitting. You're Using a Mouse/Trackpad. You Have Resizable Windows. It's Anti-Social.
  • 27. MOBILE You're on the Go. You're Using Your Fingers. You Have a Fixed Screen. It's More Social.
  • 28. MOBILE You're on the Go. You're Using Your Fingers. You Have a Fixed Screen. It's More Social.
  • 29. WHAT'S THIS MEAN FOR WEB DEVELOPERS? • Yourhave you rework your content for mobile use cases. • Youhave to intercept Javascript touch events rather than clicks. • You have to design for fixed screen sizes while accounting for device orientation.
  • 32. Don't forget about forms! MOBILE CONTENT
  • 33. Don't forget about forms! MOBILE CONTENT
  • 34. Don't forget about forms! MOBILE CONTENT
  • 41. ASIDE... USA Today website SUCKS compared to iPad app!
  • 42. ATTENTION WEB DESIGNERS: iOS App Developers may eat your lunch.
  • 43. HEY, WHICH SIDE AM I ON? I've seen great mobile sites and lousy apps. And visa-versa. I'm on the side of great design. If you can design a mobile site as cool as an app, GO FOR IT.
  • 44. 4 AREAS TO FOCUS ON • JS Events: Stop using onmouse* events and start using ontouch* and ongesture* events. • Orientation: Use CSS and Javascript to detect changes from portrait to landscape and back again. • Viewport: Lock in 100% zoom. Hide the chrome. • HTML5: Your ticket to the outside (hardware) world.
  • 45. 1st AREA TO FOCUS ON • JS Events: Stop using onmouse* events and start using ontouch* and ongesture* events. ontouchstart ongesturestart ontouchmove ongesturechange ontouchend ongestureend
  • 46. 1st AREA TO FOCUS ON • JS Events: Stop using onmouse* events and start using ontouch* and ongesture* events. Example
  • 47. 1st AREA TO FOCUS ON • JS Events: Stop using onmouse* events and start using ontouch* and ongesture* events. ontouchstart ontouchend ontouchmove Example
  • 48. 1st AREA TO FOCUS ON • JS Events: Stop using onmouse* events and start using ontouch* and ongesture* events. Remember! Some platforms like iOS exhibit a delay for onclick. For best user experience, ditch the onclicks and intercept ontouchend instead.
  • 49. 2nd AREA TO FOCUS ON • Orientation: Use CSS and Javascript to detect changes from portrait to landscape and back again. CSS - iPhone Javascript /* Portrait */ @media screen and (max-width: 320px) onorientationchange { .panel { width: 300px; } var ori = window.orientation; } if (ori == 0 || ori == 180) { /* Landscape */ // Portrait @media screen and (min-width: 321px) } { else if (ori == 90 || ori == -90) { .panel { width: 460px; } // Landscape } } Also (orientation: portrait/landscape)
  • 50. 3rd AREA TO FOCUS ON • Viewport: Lock in 100% zoom. Hide the chrome. HTML <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> Javascript window.addEventListener("load", function() { setTimeout(function(){ // Hide the address bar! window.scrollTo(0, 1); }, 0); });
  • 51. 4th AREA TO FOCUS ON • HTML5: Your ticket to the outside (hardware) world.
  • 52. 4th AREA TO FOCUS ON • HTML5: Your ticket to the outside (hardware) world.
  • 53. 4th AREA TO FOCUS ON • HTML5: Your ticket to the outside (hardware) world. Semantics Offline & Storage Device Access Connectivity Multimedia 3D Graphics & FX ? Performance & CSS3 And it's still evolving! Integration
  • 54. 4th AREA TO FOCUS ON • HTML5: Your ticket to the outside (hardware) world. Device Access
  • 55. 4th AREA TO FOCUS ON • HTML5: Your ticket to the outside (hardware) world. Device Access Geolocation function start_geolocation() {   navigator.geolocation.getCurrentPosition(geo_handler);   }     function geo_handler(position) { var latitude = position.coords.latitude; var longitude = position.coords.longitude; // Do something cool  }
  • 56. 4th AREA TO FOCUS ON • HTML5: Your ticket to the outside (hardware) world. Device Access Accelerometer window.ondevicemotion = function(e) {       var accelerationX = event.accelerationIncludingGravity.x;       var accelerationY = event.accelerationIncludingGravity.y;       var accelerationZ = event.accelerationIncludingGravity.z;   }
  • 57. 4th AREA TO FOCUS ON • HTML5: Your ticket to the outside (hardware) world. Device Access Camera: Still & Video
  • 58. 4th AREA TO FOCUS ON • HTML5: Your ticket to the outside (hardware) world. Device Access Camera: Still & Video C omi ng So on!
  • 59. AND DON'T FORGET THE MOST IMPORTANT THING...
  • 60. NO FLASH! Really. Just kill it now.
  • 61. -webkit -transform <video > <au dio> <ca ry nv jQue as> JAVASCRIPT, CANVAS, SVG, CSS3, HTML5 VIDEO, AND H.264 ARE YOUR FRIENDS
  • 62. -webkit -transform <video > <au dio> <ca ry nv jQue as> JAVASCRIPT, CANVAS, SVG, CSS3, HTML5 VIDEO, AND H.264 ARE YOUR FRIENDS
  • 64. SPEED UP THE PROCESS • jQuery – you should be using this anyway! • jQuery Mobile – new layer built on top of jQuery • jQTouch – a similar alternative also based on jQuery • TouchSwipe – a lightweight, awesome jQuery plugin • Sencha Touch – heavy-duty webapp framework • M-Project, Rhomobile, etc. – choose your flavor
  • 65. SPEED UP THE PROCESS • What about popular CMS platforms? • WP Touch – oft-used theme for WordPress • OnSwipe – iPad-optimized theme for WordPress • Mobile Joomla! – extensions for Joomla! • iUI, Others – themes for Drupal
  • 70. JQUERY MOBILE <!DOCTYPE html> <html> <head> <title>Page Title</title> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.0b1/jquery.mobile-1.0b1.min.css" /> <script type="text/javascript" src="http://code.jquery.com/jquery-1.6.1.min.js"></script> <script type="text/javascript" src="http://code.jquery.com/mobile/1.0b1/ jquery.mobile-1.0b1.min.js"></script> </head> <body> <div data-role="page"> <div data-role="header"> <h1>Page Title</h1> </div><!-- /header --> <div data-role="content"> <p>Page content goes here.</p> </div><!-- /content --> <div data-role="footer"> <h4>Page Footer</h4> </div><!-- /footer --> </div><!-- /page --> </body> </html>
  • 72. MY PREDICTION I could be wrong, but...
  • 73. 2020 25%-50% of your site visitors will be using Post-PC mobile devices
  • 74. NOW GO MAKE SOME COOL STUFF Questions? jared@siteshine.com @WebDevJared Thank you.

Notas del editor

  1. \n
  2. \n
  3. \n
  4. \n
  5. \n
  6. \n
  7. \n
  8. \n
  9. \n
  10. \n
  11. \n
  12. \n
  13. \n
  14. \n
  15. \n
  16. \n
  17. \n
  18. \n
  19. \n
  20. \n
  21. \n
  22. \n
  23. \n
  24. \n
  25. \n
  26. \n
  27. \n
  28. \n
  29. \n
  30. \n
  31. \n
  32. \n
  33. \n
  34. \n
  35. \n
  36. \n
  37. \n
  38. \n
  39. \n
  40. \n
  41. \n
  42. \n
  43. \n
  44. \n
  45. \n
  46. \n
  47. \n
  48. \n
  49. \n
  50. \n
  51. \n
  52. \n
  53. \n
  54. \n
  55. \n
  56. \n
  57. \n
  58. \n
  59. \n
  60. \n
  61. \n
  62. \n
  63. \n
  64. \n
  65. \n
  66. \n
  67. \n
  68. \n
  69. \n
  70. \n
  71. \n
  72. \n
  73. \n
  74. \n
  75. \n
  76. \n
  77. \n
  78. \n
  79. \n
  80. \n
  81. \n
  82. \n
  83. \n
  84. \n
  85. \n
  86. \n
  87. \n
  88. \n
  89. \n
  90. \n