SlideShare ist ein Scribd-Unternehmen logo
1 von 37
Theming for Mobile
     devices
     Artem Shymko
     https://twitter.com/itcross
     drupal.org/user/432492
     itwebcross@gmail.com
     skype: artemshymko
Good times were
    1. Feel safety
    2. Opener for beer on hand
    3. Wap, though nobody needs
    4. Out of mobile theming
    business
Smaller phone = less problems
Mobile isn’t future
         ‱ Internet’s getting
           cheaper
         ‱ Websites become
           smarter
         ‱ Mobile devices are
           prolonging live time
It’s present
& we are addicted!
Getting back to Mobile’s stuff

 1. Thinking like Mobile Device
 2. Adaptive vs Responsive design
 3. Technics
 4. Extra modules and approaches
Responsive design
                          Ethan Marcote, who coined the term in his book Responsive
The term responsive design can be credited to


Web Design to describe using “fluid grids, fluid images/media &
media queries.” This basically speaks to the layout’s ability to respond to the user’s technology (browser or device) to best
meet the user’s needs.


Although Marcote is credited with the term, he’s really only describing the most modern incarnation of this Web design strategy. The idea of
tailoring a Website based on the user’s technology has been around for quite a while, as developers have always been programming to
accommodate different experiences (like our old friend Internet Explorer). After Marcote’s book was published, his publisher later clarified
their stance on responsive design to mean any technique used to achieve this end, not just fluid grids and media queries. For example, if we

 jQuery or other javascripts to adjust the layout along with CSS media queries, that’s also
use

part of a responsive strategy.
                                                                                                           by Eric Dyken on June 14, 2012
Adaptive design
Aaron Gustafson              Adaptive Web Design
                                             is the author of the book                                                       . According to


              is about creating interfaces that adapt to the
Gustafson, adaptive Web design “


user’s capabilities (in terms of both form and function).                                                                                     ” He also states
that “adaptive web design is just another term for ‘progressive enhancement’ of which responsive web design can (and often should) be an integral part, but

is a more holistic approach to web design in that it also takes into account varying levels   of markup, CSS, JavaScript
and assistive technology support                                                     .” By these descriptions we can come to the conclusion that adaptive
Websites are those that adapt their design, structure, and content to best meet the needs of their user, with responsive design being a subset of adaptive.




                                                                                                                       by Eric Dyken on June 14, 2012
Still among us?




Don’t forget to ask a question then!
Halfway
1. What’s the main purpose of my site?
2. What does my client wants to see?
3. Is it enough for me to use simple
  responsive technics or do I need
  adaptive design?
4. Which device client could use?
5. Do I care about?
What we can do about?
1. Use sub-domain, sub-folder, different domain
2. Create two different themes




3. Use responsive design
4. Create adaptive website
Preparation
User Agent Switcher
http://chrispederick.com/work/user-agent-switcher/


Ultimate User Agent Switcher
https://chrome.google.com/webstore/detail/ljfpjnehmoiabkefmnjegmpdddgcdnpo


Web Developer
http://chrispederick.com/work/web-developer/


Google Chrome
User Agent switcher
Case: meta tag viewport
<meta
 name="viewport"
 content="width=device-width, initial-scale=1, maximum-scale=1">


   1. General explanation:
   http://www.quirksmode.org/mobile/viewports2.html

   2. Dynamic changes of viewport:
   http://www.quirksmode.org/blog/archives/2011/06/dynamically_cha.html
Example: meta tag viewport
   Without viewport   With viewport
Case: media queries (in CSS)
@media [media query logic here] { 
 }

@media screen and (orientation: landscape) { 
 }

@media screen and (orientation: portrait) { 
 }

@media screen and (max-width: 400px) { 
 }

@media screen and (min-width: 400px) and (max-
width: 640px) { 
 }
Case: media queries (files)
<link rel="stylesheet" media="screen and (min-device-width: 800px)" href="800.css" />

<link rel='stylesheet'
media='screen and (min-width: 701px) and (max-width: 900px)' href='css/medium.css' />



 1. General explanation:
 http://css-tricks.com/resolution-specific-stylesheets/

 2. Few examples:
 http://css-tricks.com/css-media-queries/
Example: media queries
Case: fluid layout




1. Best fluid layout
http://css-tricks.com/the-perfect-fluid-width-layout/
Case: grids
     Grids are an invisible foundation that
     structure the websites we develop and
     design. This invisible foundation makes it
     possible for rapid development, concise
     code, and a much more organized layout.

     1. Explanation:
     http://dev.w3.org/csswg/css3-grid-layout/

     2. Grid systems:
     http://spyrestudios.com/css-grid-systems/
Case: Drupal themes
ZEN - is a powerful, yet simple, HTML5 starting themewith a
responsive, mobile-first grid design.

Omega - is a highly configurable HTML5/960 grid base theme that is
100% configurable.

Adaptivetheme Mobile - A mobile subtheme for the
HTML5 AdaptiveTheme.

Sky - is a minimal, center aligned, CSS-based, multi-column layout
theme, with Color module support (7.x only), that uses HTML5
and CSS3.

Fusion Mobile - A Fusion Core subtheme targeted for mobile.

Mobile - Clean theme that can be used as a custom theme base.
Achieved:
Responsive
Knowledge
1. Viewport
2. Media queries
3. Responsive layout
But what is responsive?
Same content but different display!
Hover, touch, menu format, content
    weight, attention points

How to deal with
  adaptation?
Case: Drupal modules
WURFL - Detects mobile device capabilities.
Browscap - Detects browser type.
Switchtheme - Adds a block to allow users to
switch between enabled themes.
Mobile Plugin - Device detection and image scaling.
Mobile Tools - Browser detection, theme switching
based on device type, redirection to mobile
site, and other features.
Case: Context + Mobile Detector
 http://drupal.org/project/context_mobile_detect
Summary?
1. Ask yourself what your client’s needed
into?
2. What is most efficient to do: separate
domain, different theme, responsive or
adaptive themes?

Use Drupal modules and themes to
simplify your life.
Thank you!
Guts, honor and courage to all of you
 in your mobile themes developing!
               Artem Shymko
               https://twitter.com/itcross
               drupal.org/user/432492
               itwebcross@gmail.com
               skype: artemshymko



       Guts, honor and courage - three
       signs of alcohol intoxication.

       @ Californication

Weitere Àhnliche Inhalte

Ähnlich wie Theming for mobile devices recent

Responsive web designing
Responsive web designingResponsive web designing
Responsive web designingAanand Bohara
 
Responsive Web Design - more than just a buzzword
Responsive Web Design - more than just a buzzwordResponsive Web Design - more than just a buzzword
Responsive Web Design - more than just a buzzwordRuss Weakley
 
Responsive Web Design
Responsive Web DesignResponsive Web Design
Responsive Web DesignHeru WIjayanto
 
Responsive web designing ppt(1)
Responsive web designing ppt(1)Responsive web designing ppt(1)
Responsive web designing ppt(1)admecindia1
 
Responsive Design and Joomla!
Responsive Design and Joomla!Responsive Design and Joomla!
Responsive Design and Joomla!JoomlaChicago - Loop
 
Responsive Web Designs.pdf
Responsive Web Designs.pdfResponsive Web Designs.pdf
Responsive Web Designs.pdfJiniya Bipasha
 
Responsive Web Design - Bridging the Gap Between Art Directors
Responsive Web Design - Bridging the Gap Between Art DirectorsResponsive Web Design - Bridging the Gap Between Art Directors
Responsive Web Design - Bridging the Gap Between Art DirectorsAaron Bernardo
 
Responsive Web Design & the state of the Web
Responsive Web Design & the state of the WebResponsive Web Design & the state of the Web
Responsive Web Design & the state of the WebYiannis Konstantakopoulos
 
Responsivedesign 7-3-2012
Responsivedesign 7-3-2012Responsivedesign 7-3-2012
Responsivedesign 7-3-2012Thomas Carney
 
Uxpin web ui design patterns 2014
Uxpin web ui design patterns 2014Uxpin web ui design patterns 2014
Uxpin web ui design patterns 2014MoodLabs
 
Responsive Web Design - What You Need to Know to Get Started
Responsive Web Design - What You Need to Know to Get StartedResponsive Web Design - What You Need to Know to Get Started
Responsive Web Design - What You Need to Know to Get Startedjennybchicken
 
Optimizing Sites for Mobile Devices
Optimizing Sites for Mobile DevicesOptimizing Sites for Mobile Devices
Optimizing Sites for Mobile Devicesjameswillweb
 
Web UI Design Patterns 2014
Web UI Design Patterns 2014Web UI Design Patterns 2014
Web UI Design Patterns 2014Lewis Lin 🩊
 
Adapting to a Responsive Design at Untangle the Web on 29th July 2013
Adapting to a Responsive Design at Untangle the Web on 29th July 2013Adapting to a Responsive Design at Untangle the Web on 29th July 2013
Adapting to a Responsive Design at Untangle the Web on 29th July 2013Matt Gibson
 
Introduction to Twitter Bootstrap
Introduction to Twitter BootstrapIntroduction to Twitter Bootstrap
Introduction to Twitter BootstrapPragnesh Vaghela
 
Context-Aware and User-Centered Design: The Lost Battle Between Desktop and M...
Context-Aware and User-Centered Design: The Lost Battle Between Desktop and M...Context-Aware and User-Centered Design: The Lost Battle Between Desktop and M...
Context-Aware and User-Centered Design: The Lost Battle Between Desktop and M...UX Riga
 
Responsive web design
Responsive web designResponsive web design
Responsive web designMichael Kaboro
 

Ähnlich wie Theming for mobile devices recent (20)

Responsive web designing
Responsive web designingResponsive web designing
Responsive web designing
 
Responsive Web Design - more than just a buzzword
Responsive Web Design - more than just a buzzwordResponsive Web Design - more than just a buzzword
Responsive Web Design - more than just a buzzword
 
Responsive Web Design
Responsive Web DesignResponsive Web Design
Responsive Web Design
 
Responsive Web Designing Fundamentals
Responsive Web Designing FundamentalsResponsive Web Designing Fundamentals
Responsive Web Designing Fundamentals
 
Responsive web designing ppt(1)
Responsive web designing ppt(1)Responsive web designing ppt(1)
Responsive web designing ppt(1)
 
Responsive Design and Joomla!
Responsive Design and Joomla!Responsive Design and Joomla!
Responsive Design and Joomla!
 
Responsive Web Designs.pdf
Responsive Web Designs.pdfResponsive Web Designs.pdf
Responsive Web Designs.pdf
 
Responsive Web Design - Bridging the Gap Between Art Directors
Responsive Web Design - Bridging the Gap Between Art DirectorsResponsive Web Design - Bridging the Gap Between Art Directors
Responsive Web Design - Bridging the Gap Between Art Directors
 
Responsive
ResponsiveResponsive
Responsive
 
Responsive Web Design & the state of the Web
Responsive Web Design & the state of the WebResponsive Web Design & the state of the Web
Responsive Web Design & the state of the Web
 
Responsivedesign 7-3-2012
Responsivedesign 7-3-2012Responsivedesign 7-3-2012
Responsivedesign 7-3-2012
 
Uxpin web ui design patterns 2014
Uxpin web ui design patterns 2014Uxpin web ui design patterns 2014
Uxpin web ui design patterns 2014
 
Responsive Web Design - What You Need to Know to Get Started
Responsive Web Design - What You Need to Know to Get StartedResponsive Web Design - What You Need to Know to Get Started
Responsive Web Design - What You Need to Know to Get Started
 
Optimizing Sites for Mobile Devices
Optimizing Sites for Mobile DevicesOptimizing Sites for Mobile Devices
Optimizing Sites for Mobile Devices
 
Web UI Design Patterns 2014
Web UI Design Patterns 2014Web UI Design Patterns 2014
Web UI Design Patterns 2014
 
Bootstrap
BootstrapBootstrap
Bootstrap
 
Adapting to a Responsive Design at Untangle the Web on 29th July 2013
Adapting to a Responsive Design at Untangle the Web on 29th July 2013Adapting to a Responsive Design at Untangle the Web on 29th July 2013
Adapting to a Responsive Design at Untangle the Web on 29th July 2013
 
Introduction to Twitter Bootstrap
Introduction to Twitter BootstrapIntroduction to Twitter Bootstrap
Introduction to Twitter Bootstrap
 
Context-Aware and User-Centered Design: The Lost Battle Between Desktop and M...
Context-Aware and User-Centered Design: The Lost Battle Between Desktop and M...Context-Aware and User-Centered Design: The Lost Battle Between Desktop and M...
Context-Aware and User-Centered Design: The Lost Battle Between Desktop and M...
 
Responsive web design
Responsive web designResponsive web design
Responsive web design
 

KĂŒrzlich hochgeladen

Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesZilliz
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfSeasiaInfotech2
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 

KĂŒrzlich hochgeladen (20)

Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector Databases
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdf
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 

Theming for mobile devices recent

  • 1. Theming for Mobile devices Artem Shymko https://twitter.com/itcross drupal.org/user/432492 itwebcross@gmail.com skype: artemshymko
  • 2. Good times were 1. Feel safety 2. Opener for beer on hand 3. Wap, though nobody needs 4. Out of mobile theming business
  • 3. Smaller phone = less problems
  • 4. Mobile isn’t future ‱ Internet’s getting cheaper ‱ Websites become smarter ‱ Mobile devices are prolonging live time
  • 5. It’s present & we are addicted!
  • 6. Getting back to Mobile’s stuff 1. Thinking like Mobile Device 2. Adaptive vs Responsive design 3. Technics 4. Extra modules and approaches
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13. Responsive design Ethan Marcote, who coined the term in his book Responsive The term responsive design can be credited to Web Design to describe using “fluid grids, fluid images/media & media queries.” This basically speaks to the layout’s ability to respond to the user’s technology (browser or device) to best meet the user’s needs. Although Marcote is credited with the term, he’s really only describing the most modern incarnation of this Web design strategy. The idea of tailoring a Website based on the user’s technology has been around for quite a while, as developers have always been programming to accommodate different experiences (like our old friend Internet Explorer). After Marcote’s book was published, his publisher later clarified their stance on responsive design to mean any technique used to achieve this end, not just fluid grids and media queries. For example, if we jQuery or other javascripts to adjust the layout along with CSS media queries, that’s also use part of a responsive strategy. by Eric Dyken on June 14, 2012
  • 14. Adaptive design Aaron Gustafson Adaptive Web Design is the author of the book . According to is about creating interfaces that adapt to the Gustafson, adaptive Web design “ user’s capabilities (in terms of both form and function). ” He also states that “adaptive web design is just another term for ‘progressive enhancement’ of which responsive web design can (and often should) be an integral part, but is a more holistic approach to web design in that it also takes into account varying levels of markup, CSS, JavaScript and assistive technology support .” By these descriptions we can come to the conclusion that adaptive Websites are those that adapt their design, structure, and content to best meet the needs of their user, with responsive design being a subset of adaptive. by Eric Dyken on June 14, 2012
  • 15. Still among us? Don’t forget to ask a question then!
  • 16. Halfway 1. What’s the main purpose of my site? 2. What does my client wants to see? 3. Is it enough for me to use simple responsive technics or do I need adaptive design? 4. Which device client could use? 5. Do I care about?
  • 17.
  • 18. What we can do about? 1. Use sub-domain, sub-folder, different domain 2. Create two different themes 3. Use responsive design 4. Create adaptive website
  • 19. Preparation User Agent Switcher http://chrispederick.com/work/user-agent-switcher/ Ultimate User Agent Switcher https://chrome.google.com/webstore/detail/ljfpjnehmoiabkefmnjegmpdddgcdnpo Web Developer http://chrispederick.com/work/web-developer/ Google Chrome
  • 21. Case: meta tag viewport <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> 1. General explanation: http://www.quirksmode.org/mobile/viewports2.html 2. Dynamic changes of viewport: http://www.quirksmode.org/blog/archives/2011/06/dynamically_cha.html
  • 22. Example: meta tag viewport Without viewport With viewport
  • 23. Case: media queries (in CSS) @media [media query logic here] { 
 } @media screen and (orientation: landscape) { 
 } @media screen and (orientation: portrait) { 
 } @media screen and (max-width: 400px) { 
 } @media screen and (min-width: 400px) and (max- width: 640px) { 
 }
  • 24. Case: media queries (files) <link rel="stylesheet" media="screen and (min-device-width: 800px)" href="800.css" /> <link rel='stylesheet' media='screen and (min-width: 701px) and (max-width: 900px)' href='css/medium.css' /> 1. General explanation: http://css-tricks.com/resolution-specific-stylesheets/ 2. Few examples: http://css-tricks.com/css-media-queries/
  • 26. Case: fluid layout 1. Best fluid layout http://css-tricks.com/the-perfect-fluid-width-layout/
  • 27. Case: grids Grids are an invisible foundation that structure the websites we develop and design. This invisible foundation makes it possible for rapid development, concise code, and a much more organized layout. 1. Explanation: http://dev.w3.org/csswg/css3-grid-layout/ 2. Grid systems: http://spyrestudios.com/css-grid-systems/
  • 28. Case: Drupal themes ZEN - is a powerful, yet simple, HTML5 starting themewith a responsive, mobile-first grid design. Omega - is a highly configurable HTML5/960 grid base theme that is 100% configurable. Adaptivetheme Mobile - A mobile subtheme for the HTML5 AdaptiveTheme. Sky - is a minimal, center aligned, CSS-based, multi-column layout theme, with Color module support (7.x only), that uses HTML5 and CSS3. Fusion Mobile - A Fusion Core subtheme targeted for mobile. Mobile - Clean theme that can be used as a custom theme base.
  • 30. But what is responsive?
  • 31. Same content but different display!
  • 32. Hover, touch, menu format, content weight, attention points

  • 33. How to deal with adaptation?
  • 34. Case: Drupal modules WURFL - Detects mobile device capabilities. Browscap - Detects browser type. Switchtheme - Adds a block to allow users to switch between enabled themes. Mobile Plugin - Device detection and image scaling. Mobile Tools - Browser detection, theme switching based on device type, redirection to mobile site, and other features.
  • 35. Case: Context + Mobile Detector http://drupal.org/project/context_mobile_detect
  • 36. Summary? 1. Ask yourself what your client’s needed into? 2. What is most efficient to do: separate domain, different theme, responsive or adaptive themes? Use Drupal modules and themes to simplify your life.
  • 37. Thank you! Guts, honor and courage to all of you in your mobile themes developing! Artem Shymko https://twitter.com/itcross drupal.org/user/432492 itwebcross@gmail.com skype: artemshymko Guts, honor and courage - three signs of alcohol intoxication. @ Californication