SlideShare une entreprise Scribd logo
1  sur  53
MOBILE WEB

Merging adaptive and responsive techniques
FRANCISCO M.S. FERREIRA
Agile Software Engineer

@fmsf303
MOBILE WEB
What to expect from this talk?

• What is an adaptive web site
• What is a responsive web site
• Responsive web widgets
• Building adaptive pathways with LESS

Mobile web

4
Mobile web

Mobile web

5
Strategies

• Classic (No mobile optimization)
• Adaptive (Different versions for different targets)
• Responsive (Auto adjusting design)

Mobile web

6
ADAPTIVE VS RESPONSIVE
Adaptive web origins

We need a
mobile site

Adaptive vs responsive

8
Adaptive web origins

We need a
mobile site

Story: build a mobile experience

Adaptive vs Responsive

9
Adaptive web

Adaptive vs Responsive

10
Responsive web origins

We should have the
same experience in
mobile and desktop

Adaptive vs Responsive

11
Responsive web origins

We should have the
same experience in
mobile and desktop

It will also cut
maintenance costs!

Adaptive vs Responsive

12
Responsive Web

Adaptive vs Responsive

13
Responsive Web

Adaptive vs Responsive

14
Responsive Web

Adaptive vs Responsive

15
Responsive Web

Adaptive vs Responsive

16
Intersection

Adaptive web

Adaptive vs Responsive

17
Intersection

Adaptive web
Responsive Web

Adaptive vs Responsive

18
Intersection

Adaptive web
Responsive Web

w

Adaptive vs Responsive

19
Intersection

Adaptive web
Responsive Web

w

Adaptive vs Responsive

20
Intersection

• ‘w’ increases
– Different user journey
– Bigger code base

Adaptive web
Responsive Web

w

• ‘w’ decreases
– Similar journey
– One code base

Adaptive vs Responsive

21
LESS PATHWAYS
Lesscss (.org)

Less pathways

23
Modularity (i.e.: topCategoryDeals.less)

Less pathways

24
Less structure

less/
- main.less
- sharedVariables.less
- widgets/
- navigationWidget.less
- blogArticleWidget.less
- commentBlockWidget.less
- commentWidget.less

Less pathways

25
Less structure

less/
- main.less
- sharedVariables.less
- widgets/
- navigationWidget.less
- blogArticleWidget.less
- commentBlockWidget.less
- commentWidget.less

Less pathways

26
Less structure
<link type="text/css" rel="stylesheet" href="/css/main.css" />

less/
- main.less
- sharedVariables.less
- widgets/
- navigationWidget.less
- blogArticleWidget.less
- commentBlockWidget.less
- commentWidget.less

Less pathways

27
main.less
<link type="text/css" rel="stylesheet" href="/css/main.css" />
less/
- main.less
- sharedVariables.less
- widgets/
- navigationWidget.less
- blogArticleWidget.less
- commentBlockWidget.less
- commentWidget.less

Less pathways

28
New structure

less/
- main.less
- sharedVariables.less
- devices/
- mobile.less
- desktop.less
- widgets/
- navigationWidget.less
- blogArticleWidget.less
- commentBlockWidget.less
- commentWidget.less

Less pathways

29
What about mobile tweaks?

less/
- main.less
- sharedVariables.less
- devices/
- mobile.less
- desktop.less
- widgets/
- navigationWidget.less
- blogArticleWidget.less
- commentBlockWidget.less
- commentWidget.less

Less pathways

30
Using less mixins

Less pathways

31
Using less mixins

less/devices/mobile.less

Less pathways

32
Using less mixins

less/devices/mobile.less

less/devices/desktop.less

Less pathways

33
RESPONSIFYING
Grid systems
.content
.row
.col-md-6

.col-md-6

.row
.col-md-12
.row
.col-md-4

.col-md-4

.col-md-4

Responsifying

35
.content

Traditional grid system issues

.content

.row
.col-md-6

.col-md-6

.row
.col-md-6

.col-md-6

.row
.row

.col-md-12
.col-md-12

.row

.row
.col-md-4

.col-md-4

.col-md-4

.col-md-4

.col-md-4

.col-md-4

Responsifying

36
.content

Traditional grid system issues

.row
.col-md-6

.col-md-6

.row
.col-md-12
.row
.col-md-4

.col-md-4

.col-md-4

Responsifying

37
Traditional grid system issues

.row
.col-md-4

.col-md-4

.col-md-4

.col-md-4

.col-md-4

.col-md-4

.row
.col-md-4

Mobile

.col-md-4

.col-md-4

.col-md-4

.col-md-4

.col-md-4

Responsifying

38
Traditional grid system issues

.row
.col-md-4

.col-md-4

.col-md-4

.col-md-4

.col-md-4

.col-md-4

.row
.col-md-4 .col-xs-6

Extra Markup

.col-md-4 .col-xs-6

.col-md-4 .col-xs-6

.col-md-4 .col-xs-6

.col-md-4 .col-xs-6

.col-md-4 .col-xs-6

Responsifying

39
LET’S TALK WIDGETS
A widget!

.widget

Let’s talk widgets

41
Widget golden rule

.widget

.widget {
width: 100%;
}

Let’s talk widgets

42
Parent sets child widgets width

.widget {
width: 100%;
.widget
.widget

.widget

.widget

.widget

.widget

.widget

> .widget {
width: 33%;
}
}

Let’s talk widgets

43
Very simple media queries
.widget
.widget

.widget

.widget

.widget

.widget

.widget {
width: 100%;

.widget

> .widget {
width: 33%;
@media screen and (max-width: 420px) {
width: 50%;
}

.widget
.widget

}

.widget

}
.widget

.widget

.widget

.widget

Let’s talk widgets

44
Everything is a widget

Let’s talk widgets

45
Everything is a widget

Let’s talk widgets

46
Everything is a widget

Let’s talk widgets

47
Everything is a widget

Let’s talk widgets

48
Nearly everything is a widget

Let’s talk widgets

49
Birds eye view

Let’s talk widgets

50
Modularity (i.e.: topCategoryDeals.less)

Let’s talk widgets

51
Modularity (i.e.: topCategoryDeals.less)

Let’s talk widgets

52
@fmsf303

franciscomsferreira.blogspot.com

Contenu connexe

Tendances

Responsive Vs Mobile Development in Magento - Kimberly Thomas - @MagentoGirl
Responsive Vs Mobile Development in Magento - Kimberly Thomas - @MagentoGirlResponsive Vs Mobile Development in Magento - Kimberly Thomas - @MagentoGirl
Responsive Vs Mobile Development in Magento - Kimberly Thomas - @MagentoGirl
Meet Magento Spain
 
Rise of the responsive single page application
Rise of the responsive single page applicationRise of the responsive single page application
Rise of the responsive single page application
Oren Shatken
 
Introduction To Single Page Application
Introduction To Single Page ApplicationIntroduction To Single Page Application
Introduction To Single Page Application
KMS Technology
 
Lightweight webdev
Lightweight webdevLightweight webdev
Lightweight webdev
damianofusco
 

Tendances (16)

Web Application Development Process presented by @Cygnismedia
Web Application Development Process presented by @CygnismediaWeb Application Development Process presented by @Cygnismedia
Web Application Development Process presented by @Cygnismedia
 
Jquery
JqueryJquery
Jquery
 
Responsive Vs Mobile Development in Magento - Kimberly Thomas - @MagentoGirl
Responsive Vs Mobile Development in Magento - Kimberly Thomas - @MagentoGirlResponsive Vs Mobile Development in Magento - Kimberly Thomas - @MagentoGirl
Responsive Vs Mobile Development in Magento - Kimberly Thomas - @MagentoGirl
 
Rise of the responsive single page application
Rise of the responsive single page applicationRise of the responsive single page application
Rise of the responsive single page application
 
Introduction To Single Page Application
Introduction To Single Page ApplicationIntroduction To Single Page Application
Introduction To Single Page Application
 
Best And Worst Practices Building Ria with Adobe and Microsoft
Best And Worst Practices Building Ria with Adobe and MicrosoftBest And Worst Practices Building Ria with Adobe and Microsoft
Best And Worst Practices Building Ria with Adobe and Microsoft
 
PWA basics for developers
PWA basics for developersPWA basics for developers
PWA basics for developers
 
Using WordPress as a Headless CMS
Using WordPress as a Headless CMSUsing WordPress as a Headless CMS
Using WordPress as a Headless CMS
 
Weebly review
Weebly reviewWeebly review
Weebly review
 
Single Page Application presentation
Single Page Application presentationSingle Page Application presentation
Single Page Application presentation
 
EdTechJoker Spring 2020 - Lecture 6 - WordPress
EdTechJoker Spring 2020 - Lecture 6 -   WordPressEdTechJoker Spring 2020 - Lecture 6 -   WordPress
EdTechJoker Spring 2020 - Lecture 6 - WordPress
 
Website
WebsiteWebsite
Website
 
Lightweight webdev
Lightweight webdevLightweight webdev
Lightweight webdev
 
Designing an Enterprise CSS Framework is Hard, Stephanie Rewis
Designing an Enterprise CSS Framework is Hard, Stephanie RewisDesigning an Enterprise CSS Framework is Hard, Stephanie Rewis
Designing an Enterprise CSS Framework is Hard, Stephanie Rewis
 
WordCamp Sac '16 - a full stack workflow
WordCamp Sac '16 - a full stack workflowWordCamp Sac '16 - a full stack workflow
WordCamp Sac '16 - a full stack workflow
 
Headless CMS featuring WordPress by Dreb Bits
Headless CMS featuring WordPress by Dreb BitsHeadless CMS featuring WordPress by Dreb Bits
Headless CMS featuring WordPress by Dreb Bits
 

En vedette

Getting touchy - Introduction to touch (and pointer) events / jQuery Europe 2...
Getting touchy - Introduction to touch (and pointer) events / jQuery Europe 2...Getting touchy - Introduction to touch (and pointer) events / jQuery Europe 2...
Getting touchy - Introduction to touch (and pointer) events / jQuery Europe 2...
Patrick Lauke
 
Driving the Future of Smart Cities - How to Beat the Traffic
Driving the Future of Smart Cities - How to Beat the TrafficDriving the Future of Smart Cities - How to Beat the Traffic
Driving the Future of Smart Cities - How to Beat the Traffic
VMware Tanzu
 

En vedette (20)

Getting touchy - Introduction to touch (and pointer) events / jQuery Europe 2...
Getting touchy - Introduction to touch (and pointer) events / jQuery Europe 2...Getting touchy - Introduction to touch (and pointer) events / jQuery Europe 2...
Getting touchy - Introduction to touch (and pointer) events / jQuery Europe 2...
 
Unit testing
Unit testingUnit testing
Unit testing
 
Impact of Open Source
Impact of Open SourceImpact of Open Source
Impact of Open Source
 
Hoppala at O'Reilly Where 2.0 Conference
Hoppala at O'Reilly Where 2.0 ConferenceHoppala at O'Reilly Where 2.0 Conference
Hoppala at O'Reilly Where 2.0 Conference
 
Open Standards in the Walled Garden
Open Standards in the Walled GardenOpen Standards in the Walled Garden
Open Standards in the Walled Garden
 
Demand Media
Demand MediaDemand Media
Demand Media
 
Driving the Future of Smart Cities - How to Beat the Traffic
Driving the Future of Smart Cities - How to Beat the TrafficDriving the Future of Smart Cities - How to Beat the Traffic
Driving the Future of Smart Cities - How to Beat the Traffic
 
Menoovr
Menoovr Menoovr
Menoovr
 
Kevin Kelly
Kevin KellyKevin Kelly
Kevin Kelly
 
Building a Simple Mobile-optimized Web App Using the jQuery Mobile Framework
Building a Simple Mobile-optimized Web App Using the jQuery Mobile FrameworkBuilding a Simple Mobile-optimized Web App Using the jQuery Mobile Framework
Building a Simple Mobile-optimized Web App Using the jQuery Mobile Framework
 
Machine Learning with H2O, Spark, and Python at Strata 2015
Machine Learning with H2O, Spark, and Python at Strata 2015Machine Learning with H2O, Spark, and Python at Strata 2015
Machine Learning with H2O, Spark, and Python at Strata 2015
 
Terry Jones TOC 2011 slides
Terry Jones TOC 2011 slidesTerry Jones TOC 2011 slides
Terry Jones TOC 2011 slides
 
Where in the publishing world are libraries?
Where in the publishing world are libraries?Where in the publishing world are libraries?
Where in the publishing world are libraries?
 
Strata Conference 2014 NYC with Twitter
Strata Conference 2014 NYC with TwitterStrata Conference 2014 NYC with Twitter
Strata Conference 2014 NYC with Twitter
 
Where 2.0 Perch Product Launch Presentation
Where 2.0 Perch Product Launch PresentationWhere 2.0 Perch Product Launch Presentation
Where 2.0 Perch Product Launch Presentation
 
It's the people, stupid.
It's the people, stupid.It's the people, stupid.
It's the people, stupid.
 
Kobo: What Do eBook Customers Really, Really Want? (Tools of Change 2011)
Kobo: What Do eBook Customers Really, Really Want? (Tools of Change 2011)Kobo: What Do eBook Customers Really, Really Want? (Tools of Change 2011)
Kobo: What Do eBook Customers Really, Really Want? (Tools of Change 2011)
 
Epub in the wild
Epub in the wildEpub in the wild
Epub in the wild
 
transforming how the world operates software
transforming how the world operates softwaretransforming how the world operates software
transforming how the world operates software
 
Social Gold: The Design of FarmVille and Other Social Games (Web2Expo 2010)
Social Gold: The Design of FarmVille and Other Social Games (Web2Expo 2010)Social Gold: The Design of FarmVille and Other Social Games (Web2Expo 2010)
Social Gold: The Design of FarmVille and Other Social Games (Web2Expo 2010)
 

Similaire à Mobile Web - Merging responsive and adaptive techniques

Websmovil 3
Websmovil 3Websmovil 3
Websmovil 3
petio909
 
Spca2014 introduction responsive master page niaulin
Spca2014 introduction responsive master page niaulinSpca2014 introduction responsive master page niaulin
Spca2014 introduction responsive master page niaulin
NCCOMMS
 
Building Responsive Websites and Apps with Drupal
Building Responsive Websites and Apps with DrupalBuilding Responsive Websites and Apps with Drupal
Building Responsive Websites and Apps with Drupal
Four Kitchens
 

Similaire à Mobile Web - Merging responsive and adaptive techniques (20)

Fewd week7 slides
Fewd week7 slidesFewd week7 slides
Fewd week7 slides
 
Responsive web design
Responsive web designResponsive web design
Responsive web design
 
Websmovil 3
Websmovil 3Websmovil 3
Websmovil 3
 
Reactive Web Best Practices
Reactive Web Best PracticesReactive Web Best Practices
Reactive Web Best Practices
 
(Healthcare) make your business mobile with responsive web design
(Healthcare) make your business mobile with responsive web design(Healthcare) make your business mobile with responsive web design
(Healthcare) make your business mobile with responsive web design
 
Building Responsive Websites with Drupal
Building Responsive Websites with DrupalBuilding Responsive Websites with Drupal
Building Responsive Websites with Drupal
 
Two approaches to RWD: Pure & Hybrid. Brendan Falkowski
Two approaches to RWD: Pure & Hybrid. Brendan Falkowski Two approaches to RWD: Pure & Hybrid. Brendan Falkowski
Two approaches to RWD: Pure & Hybrid. Brendan Falkowski
 
Top 8 Website Builders for Nonprofits
Top 8 Website Builders for NonprofitsTop 8 Website Builders for Nonprofits
Top 8 Website Builders for Nonprofits
 
Moving the design process to the browser
Moving the design process to the browserMoving the design process to the browser
Moving the design process to the browser
 
RESPONSIVE_WEB_DESIGNRESPONSIVE_WEB_DESIGN
RESPONSIVE_WEB_DESIGNRESPONSIVE_WEB_DESIGNRESPONSIVE_WEB_DESIGNRESPONSIVE_WEB_DESIGN
RESPONSIVE_WEB_DESIGNRESPONSIVE_WEB_DESIGN
 
.NET 1.1 Base Page Framework Article
.NET 1.1 Base Page Framework Article.NET 1.1 Base Page Framework Article
.NET 1.1 Base Page Framework Article
 
Fundamental Progressive Enhancement [Web Design World - Seattle 2009]
Fundamental Progressive Enhancement [Web Design World - Seattle 2009]Fundamental Progressive Enhancement [Web Design World - Seattle 2009]
Fundamental Progressive Enhancement [Web Design World - Seattle 2009]
 
Responsive Web Design Basics
Responsive Web Design BasicsResponsive Web Design Basics
Responsive Web Design Basics
 
Spca2014 introduction responsive master page niaulin
Spca2014 introduction responsive master page niaulinSpca2014 introduction responsive master page niaulin
Spca2014 introduction responsive master page niaulin
 
Building Responsive Websites and Apps with Drupal
Building Responsive Websites and Apps with DrupalBuilding Responsive Websites and Apps with Drupal
Building Responsive Websites and Apps with Drupal
 
Word press with react – implementing headless wordpress with reactjs converted
Word press with react – implementing headless wordpress with reactjs convertedWord press with react – implementing headless wordpress with reactjs converted
Word press with react – implementing headless wordpress with reactjs converted
 
Csun retrofitting anoosha&amp;sathish-2
Csun retrofitting anoosha&amp;sathish-2Csun retrofitting anoosha&amp;sathish-2
Csun retrofitting anoosha&amp;sathish-2
 
ASP.NET MVC Zero to Hero
ASP.NET MVC Zero to HeroASP.NET MVC Zero to Hero
ASP.NET MVC Zero to Hero
 
Angular-ifying Your Visualforce Pages
Angular-ifying Your Visualforce PagesAngular-ifying Your Visualforce Pages
Angular-ifying Your Visualforce Pages
 
Developing JavaScript Widgets
Developing JavaScript WidgetsDeveloping JavaScript Widgets
Developing JavaScript Widgets
 

Dernier

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
 

Dernier (20)

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
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
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
 
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
 
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 ...
 
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
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
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...
 
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
 
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
 
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
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
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
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
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
 
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...
 
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
 
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...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 

Mobile Web - Merging responsive and adaptive techniques

Notes de l'éditeur

  1. I came here to talk to you about mobile web.
  2. Multi screen web - You shouldn’t look at it as DESKTOP WEB AND MOBILE WEB
  3. Do demo here
  4. And less allows you to import the various modules
  5. I would like to propose a new structure let’s add a devices folder and two new less files, a mobile.less and a desktop.less
  6. You get a optimal CSS that contains only the things needed for mobile or desktop.