際際滷

際際滷Share a Scribd company logo
Responsive Design with HTML5, CSS3,
JavaScript and Backbone.js
Mauvis Ledford
CTO, Pathbrite
Overview



                                          *




2 *Stolen from http://www.paulolyslager.com/
Overview
The Rise of JavaScript Application Frameworks




      Ember.js




                             Backbone.js




3
Overview
Backbone + Responsive Design




4
Why Responsive Design
AudioVroomspopularity




5
Responsive Design with Backbone
Dont Break the Chain
Open-source responsive Backbone app made just for you!




              https://github.com/Brainswap/dontbreakme

7
What is Responsive Design?



     A flexible grid
     Flexible media (images, videos)
     Media queries
     Avoid declaring non-percentage
      widths


    Actually
    Responsive Design is a mindset not a
    technology or methodology




8       Let your knowledge shine
What is Responsive Design?

 Origins: Responsive Architecture




9    *Image from http://www.archdaily.com/15014/ad-futures-4-sparc/
What is Responsive Design?


     Don't get set into one form, adapt it and build your
     own, and let it grow, be like water [] You put
     water into a bottle it becomes the bottle; You put it
     in a teapot it becomes the teapot. Now water can
     flow or it can crash. Be water, my friend.


                             Bruce Lee
                             A Warrior's Journey (2000)




10
Responsive design is



      Your data as water; everyone is
       holding containers
      Accessibility continued




11      Let your knowledge shine
Why Responsive Design
New York Times and Craigslist




12
Why Responsive Design
The Boston Globe




13   http://www.bostonglobe.com/
Why Responsive Design
Sasquatch Festival




      http://sasquatchfestival.com, snapshots from http://mediaqueri.es
14
Why Responsive Design
AudioVroom




     http://audiovroom.com, snapshots from http://mediaqueri.es
15
Argument against Designing Responsively



                                 Responsive design
                                 just doesnt work. 
                                  Were looking at the
                                 entrenched use case [for
                                 desktop users], the coffee-
                                 and-couch use case [for
                                 tablet users], the two-minute
                                 use case [for mobile phone
                                 users].
                                                 Kiran Prasad
                               Director of Engineering, Mobile
       95% Web view!                                  LinkedIn


16
Argument against Designing Responsively




           iPad                   iPhone

17
Argument against Designing Responsively




           iPad                             iPhone
                  Is this very different?
18
The explosion of HTML5
Facebook iPad native vs. Facebook iPhone native




19
The explosion of HTML5
Facebook web vs. Facebook native




20
HTML5 Pushstate
Click the link




21    Let your knowledge shine
HTML5 Pushstate
Link changes, photo and comment pops up, and I keep my context




22   Let your knowledge shine
HTML5 Pushstate
I close the modal, I go back to my context




23    Let your knowledge shine
HTML5 Pushstate
Had I copied and pasted the URL




24   Let your knowledge shine
The explosion of HTML5
Pathbrite web vs. Pathbrite native




25
The explosion of HTML5
Pathbrite web vs. Pathbrite native




26
How do you make pages all bendy and flexy?




     Hint: Its not media queries!

27
Find the layout in pixels




28
The magic equation
target / context = result  * 100

260 / 960 = 0.27083333333333




29
How do you make images bendy and flexy?
Many options for making media flex.




30
So why do I need media queries?
Flexible width without media queries.




31    http://www.dontbreak.me
Media queries




Pulled from the Skeleton.css framework.

32
Magic formula + media queries
Media queries get you access adjusting widths
but also ems to control vertical layout.




33    http://www.dontbreak.me
Now that you know RD, lets dive into some
Responsive Backbone!
First a quick primer. Backbone consists of:
    Views
    Models
    Collections
    Routes
    *Templates




34    http://www.dontbreak.me
Backbone high level architecture

       Backend Server             Front-end (Backbone MVC)

     Only API calls live here.   Light-weight front end. Most all
                                 of it can live on the CDN. (Fast
                                 and Cheap!)


                                       compressed js

                                      compressed css

                                       view templates



35
Responsive Design with Backbone
Responsive Design with Backbone
Responsive Design with Backbone
Responsive Design with Backbone
Responsive Design with Backbone
Responsive Design with Backbone
Responsive Design with Backbone
Responsive Design with Backbone
Responsive Design with Backbone
Resources

Books
Responsive Web Design by Ethan
Marcotte

Responsive Web Design with HTML5
and CSS3 by Ben Frain


Github projects:
dontbreakme
Mandible2
NodeInterval


Feedback:
mauvis@pathbrite.com
@krunkosaurus


45   Let your knowledge shine

More Related Content

Similar to Responsive Design with Backbone (20)

PDF
Responsive Design
Clarissa Peterson
PPTX
Getting Down & Dirty with Responsive Web Design
martinridgway
PDF
Monkeytalk Fall 2012 - Responsive Web Design
Serge Hufkens
PDF
Responsive Web Designs
Prasanna Ramamurthy
PDF
Web apps of the future
Xebia Nederland BV
PDF
Anatomy of an HTML 5 mobile web app
Ivano Malavolta
PDF
Choices for Responsive Redesign: Ground-up or Responsive Retrofit
Cantina
PDF
Choices for Responsive Redesign: Ground-up or Responsive Retrofit
Cantina
PDF
Devon 2011-f-1 覦
Daum DNA
PDF
Beyond Responsive Web Design
arborwebsolutions
PDF
Responsive Web Design - Why and How
Judi Wunderlich
PDF
11 Mobile Terms You Need to Know
Moovweb
PPTX
Mobile Best Practices
mintersam
PDF
#1NLab14: Responsive Design
One North
PPTX
Rise of the responsive single page application
Oren Shatken
PDF
Drupalcamp New York 2009
Tom Deryckere
PDF
Leverage web technology in a mobile world
Dieter Blomme
PPTX
Talk 03 responsive-web-design
Monkeyshot
PPSX
Creating Large-Scale Responsive Websites
Keith Doyle
PDF
Breaking the Box: Pushing the Boundaries of UX with Drupal
Acquia
Responsive Design
Clarissa Peterson
Getting Down & Dirty with Responsive Web Design
martinridgway
Monkeytalk Fall 2012 - Responsive Web Design
Serge Hufkens
Responsive Web Designs
Prasanna Ramamurthy
Web apps of the future
Xebia Nederland BV
Anatomy of an HTML 5 mobile web app
Ivano Malavolta
Choices for Responsive Redesign: Ground-up or Responsive Retrofit
Cantina
Choices for Responsive Redesign: Ground-up or Responsive Retrofit
Cantina
Devon 2011-f-1 覦
Daum DNA
Beyond Responsive Web Design
arborwebsolutions
Responsive Web Design - Why and How
Judi Wunderlich
11 Mobile Terms You Need to Know
Moovweb
Mobile Best Practices
mintersam
#1NLab14: Responsive Design
One North
Rise of the responsive single page application
Oren Shatken
Drupalcamp New York 2009
Tom Deryckere
Leverage web technology in a mobile world
Dieter Blomme
Talk 03 responsive-web-design
Monkeyshot
Creating Large-Scale Responsive Websites
Keith Doyle
Breaking the Box: Pushing the Boundaries of UX with Drupal
Acquia

Recently uploaded (20)

PPTX
Paycifi - Programmable Trust_Breakfast_PPTXT
FinTech Belgium
PDF
Optimizing the trajectory of a wheel loader working in short loading cycles
Reno Filla
DOCX
Daily Lesson Log MATATAG ICT TEchnology 8
LOIDAALMAZAN3
PDF
Java 25 and Beyond - A Roadmap of Innovations
Ana-Maria Mihalceanu
PDF
Darley - FIRST Copenhagen Lightning Talk (2025-06-26) Epochalypse 2038 - Time...
treyka
PDF
Kubernetes - Architecture & Components.pdf
geethak285
PDF
The Future of Product Management in AI ERA.pdf
Alyona Owens
PPTX
Curietech AI in action - Accelerate MuleSoft development
shyamraj55
PDF
2025_06_18 - OpenMetadata Community Meeting.pdf
OpenMetadata
PPTX
Enabling the Digital Artisan keynote at ICOCI 2025
Alan Dix
PDF
Hello I'm "AI" Your New _________________
Dr. Tathagat Varma
PDF
Cracking the Code - Unveiling Synergies Between Open Source Security and AI.pdf
Priyanka Aash
PPTX
UserCon Belgium: Honey, VMware increased my bill
stijn40
PDF
Salesforce Summer '25 Release Frenchgathering.pptx.pdf
yosra Saidani
PDF
Plugging AI into everything: Model Context Protocol Simplified.pdf
Abati Adewale
PDF
LLM Search Readiness Audit - Dentsu x SEO Square - June 2025.pdf
Nick Samuel
PDF
UiPath Agentic AI ile Ak脹ll脹 Otomasyonun Yeni a脹
UiPathCommunity
PDF
MPU+: A Transformative Solution for Next-Gen AI at the Edge, a Presentation...
Edge AI and Vision Alliance
PPTX
Smarter Governance with AI: What Every Board Needs to Know
OnBoard
PDF
From Chatbot to Destroyer of Endpoints - Can ChatGPT Automate EDR Bypasses (1...
Priyanka Aash
Paycifi - Programmable Trust_Breakfast_PPTXT
FinTech Belgium
Optimizing the trajectory of a wheel loader working in short loading cycles
Reno Filla
Daily Lesson Log MATATAG ICT TEchnology 8
LOIDAALMAZAN3
Java 25 and Beyond - A Roadmap of Innovations
Ana-Maria Mihalceanu
Darley - FIRST Copenhagen Lightning Talk (2025-06-26) Epochalypse 2038 - Time...
treyka
Kubernetes - Architecture & Components.pdf
geethak285
The Future of Product Management in AI ERA.pdf
Alyona Owens
Curietech AI in action - Accelerate MuleSoft development
shyamraj55
2025_06_18 - OpenMetadata Community Meeting.pdf
OpenMetadata
Enabling the Digital Artisan keynote at ICOCI 2025
Alan Dix
Hello I'm "AI" Your New _________________
Dr. Tathagat Varma
Cracking the Code - Unveiling Synergies Between Open Source Security and AI.pdf
Priyanka Aash
UserCon Belgium: Honey, VMware increased my bill
stijn40
Salesforce Summer '25 Release Frenchgathering.pptx.pdf
yosra Saidani
Plugging AI into everything: Model Context Protocol Simplified.pdf
Abati Adewale
LLM Search Readiness Audit - Dentsu x SEO Square - June 2025.pdf
Nick Samuel
UiPath Agentic AI ile Ak脹ll脹 Otomasyonun Yeni a脹
UiPathCommunity
MPU+: A Transformative Solution for Next-Gen AI at the Edge, a Presentation...
Edge AI and Vision Alliance
Smarter Governance with AI: What Every Board Needs to Know
OnBoard
From Chatbot to Destroyer of Endpoints - Can ChatGPT Automate EDR Bypasses (1...
Priyanka Aash
Ad

Responsive Design with Backbone

  • 1. Responsive Design with HTML5, CSS3, JavaScript and Backbone.js Mauvis Ledford CTO, Pathbrite
  • 2. Overview * 2 *Stolen from http://www.paulolyslager.com/
  • 3. Overview The Rise of JavaScript Application Frameworks Ember.js Backbone.js 3
  • 7. Dont Break the Chain Open-source responsive Backbone app made just for you! https://github.com/Brainswap/dontbreakme 7
  • 8. What is Responsive Design? A flexible grid Flexible media (images, videos) Media queries Avoid declaring non-percentage widths Actually Responsive Design is a mindset not a technology or methodology 8 Let your knowledge shine
  • 9. What is Responsive Design? Origins: Responsive Architecture 9 *Image from http://www.archdaily.com/15014/ad-futures-4-sparc/
  • 10. What is Responsive Design? Don't get set into one form, adapt it and build your own, and let it grow, be like water [] You put water into a bottle it becomes the bottle; You put it in a teapot it becomes the teapot. Now water can flow or it can crash. Be water, my friend. Bruce Lee A Warrior's Journey (2000) 10
  • 11. Responsive design is Your data as water; everyone is holding containers Accessibility continued 11 Let your knowledge shine
  • 12. Why Responsive Design New York Times and Craigslist 12
  • 13. Why Responsive Design The Boston Globe 13 http://www.bostonglobe.com/
  • 14. Why Responsive Design Sasquatch Festival http://sasquatchfestival.com, snapshots from http://mediaqueri.es 14
  • 15. Why Responsive Design AudioVroom http://audiovroom.com, snapshots from http://mediaqueri.es 15
  • 16. Argument against Designing Responsively Responsive design just doesnt work. Were looking at the entrenched use case [for desktop users], the coffee- and-couch use case [for tablet users], the two-minute use case [for mobile phone users]. Kiran Prasad Director of Engineering, Mobile 95% Web view! LinkedIn 16
  • 17. Argument against Designing Responsively iPad iPhone 17
  • 18. Argument against Designing Responsively iPad iPhone Is this very different? 18
  • 19. The explosion of HTML5 Facebook iPad native vs. Facebook iPhone native 19
  • 20. The explosion of HTML5 Facebook web vs. Facebook native 20
  • 21. HTML5 Pushstate Click the link 21 Let your knowledge shine
  • 22. HTML5 Pushstate Link changes, photo and comment pops up, and I keep my context 22 Let your knowledge shine
  • 23. HTML5 Pushstate I close the modal, I go back to my context 23 Let your knowledge shine
  • 24. HTML5 Pushstate Had I copied and pasted the URL 24 Let your knowledge shine
  • 25. The explosion of HTML5 Pathbrite web vs. Pathbrite native 25
  • 26. The explosion of HTML5 Pathbrite web vs. Pathbrite native 26
  • 27. How do you make pages all bendy and flexy? Hint: Its not media queries! 27
  • 28. Find the layout in pixels 28
  • 29. The magic equation target / context = result * 100 260 / 960 = 0.27083333333333 29
  • 30. How do you make images bendy and flexy? Many options for making media flex. 30
  • 31. So why do I need media queries? Flexible width without media queries. 31 http://www.dontbreak.me
  • 32. Media queries Pulled from the Skeleton.css framework. 32
  • 33. Magic formula + media queries Media queries get you access adjusting widths but also ems to control vertical layout. 33 http://www.dontbreak.me
  • 34. Now that you know RD, lets dive into some Responsive Backbone! First a quick primer. Backbone consists of: Views Models Collections Routes *Templates 34 http://www.dontbreak.me
  • 35. Backbone high level architecture Backend Server Front-end (Backbone MVC) Only API calls live here. Light-weight front end. Most all of it can live on the CDN. (Fast and Cheap!) compressed js compressed css view templates 35
  • 45. Resources Books Responsive Web Design by Ethan Marcotte Responsive Web Design with HTML5 and CSS3 by Ben Frain Github projects: dontbreakme Mandible2 NodeInterval Feedback: mauvis@pathbrite.com @krunkosaurus 45 Let your knowledge shine

Editor's Notes