Alternativas al desarrollo de apps nativas: jQuery Mobile e introducción a responsive/adaptive design.
Keynote de iZenius.com para Congreso Web Zaragoza 2012
15. There is no Mobile Web.
There is only The Web, which we
view in different ways. There is also
no Desktop Web. Or Tablet Web.
Thank you
Stephen Hay. There is not mobile web
16. The primary design principle
underlying the Web's
usefulness and growth is
universality
Tim Berners-Lee
17. 90% of all websites are too
simple to justify the time
and money it takes to
develop a separate mobile
version.
Common Sense Thinker
45. Conversión
When setting flexible margins on an element,
your context is the width of the element’s container.
Ethan Marcotte (Responsive Web Design, 35)
47. Margin
.main {
target / context = result
margin-left:325px;
width: 62.765957%; 325 / 940 = 0,34574468085106
/* 590px/940px */
}
tamaño del
margen main
padre
48. Margin
.main {
target / context = result
margin-left:325px;
width: 62.765957%; 325 / 940 = 0,34574468085106
/* 590px/940px */
}
tamaño del
margen main
padre
.main {
width: 62.765957%; /* 590px/940px */
margin-left: 34.574468%; /* 325px/940px */
}
49. Sitio de ejemplo
.container (940 px)
.sidebar .main
(305 px) padding: 20px
50. Conversión Padding
When setting flexible padding on an element,
your context is the width of the element itself.
Ethan Marcotte (Responsive Web Design, 35)
67. Compatibilidad
Wouter van Der Graaf nos solucionó la papeleta:
http://code.google.com/p/css3-mediaqueries-js/
http://www.slideshare.net/livefront/responsive-design-7877412
68. Adaptive / Responsive design
¿Es lo mismo adaptive que responsive?
Adaptive: Nosotros definimos los break points
Responsive: El contenido define los break points
69. Adaptive design
Diseñar para un contexto específico:
• Dispositivo (iphone, ipad ...)
• Tamaño de pantalla (1024x768, 320x480...)
• Resolución (retina display ...)
70. Responsive design
Responsive designs provide continuity between contexts
Responsive designs are portable and accessible.
Ethan Marcotte
71. Flex your media
Modern browsers FU.. IE 6
img, video, object { img, video, object {
max-width: 100%; width: 100%;
} }
72. ¡Ejercicios!
Ejercicios de descargables en:
http://www.izenius.com/events/cw12/mobile/responsive.zip