User Tools

Site Tools


eg-146:lecture19

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
eg-146:lecture19 [2012/04/23 07:12] – [Mobile strategies and considerations] eechriseg-146:lecture19 [2012/04/23 18:14] – [Making 'one site for all' happen] eechris
Line 24: Line 24:
           * desktop           * desktop
   - Build one site for all devices   - Build one site for all devices
-        * Same HTML, different style((possibly also adjusted image & video +        * Same HTML, different style((possibly also adjusted image & video sizes because mobile is expensive and slow))--preferred approach
-        sizes because mobile is expensive and +
-        slow))--preferred approach+
  
 ===== Dedicated site ===== ===== Dedicated site =====
-Examples: WWW-target. (oursites, target-count + 
-                        site tent spot two.}, +Target.com (an e-commerce site 
-Example 2 + 
-        WWWmort-you m-but-gone +  * [[http://www.target.com|www.target.com]] 
-        WWW-how, you) wireless) +  * [[http://sites.target.com/site/en/spot/mobile.jsp|sites.target.com/site/en/spot/mobile.jsp]] 
-        (point out differences in approach) + 
-One site for AN +BART (a transport services site) 
-One sheer set of HTML which adapts for + 
-deviceRemember mobile phone love +  * [[http://www.bart.gov|www.bart.gov]] -- full site for desktops and tablets 
-smaller screens reduced bandwidth +  * [[http://m.bart.gov|m.bart.gov]] -- mobile version of the site 
-Making one site For All Happen +  * [[http://www.bart.gov/wireless/|www.bart.gov/wireless/]] -- another mobile version for devices with even less capabilities. 
-Progressive enhancement + 
-        separate HTML from a Ss so that +===== One site for All ===== 
-        you can progressively enhance + 
-        the layout for higher resolution +One set of HTML which adapts for 
-        • more capable devices +deviceRemember mobile phones have 
-example WWW food sensei s +smaller screens and reduced bandwidth 
-                show on i Phone + 
-                        i Pad + 
-                        desktop. +===== Making 'one site for all' happen ===== 
-Ethan Mantle: Responsive Wets Design + 
-        w WWa list apart. com / articles / responsive-web-design +  * The key design approach that you need to adopt is called **Progressive enhancement**.((This also applies to behaviour, and we will study it in more depth next year when we look at JavaScript)) 
-                (+ Boon) +  * In summary you need to separate HTML from styles so that you can progressively enhance the layout for higher resolution and more capable devices 
-Principles+  * For a good introduction see Ethan Marotte//Responsive Web Design//[[http://www.alistapart.com/articles/responsive-web-design|www.alistapart.com/articles/responsive-web-design]] and the Book of the same name. 
-• a flexible grid-based layout + 
-        fluid layout width (marginpadding set +Example[[http://www.foodsense.is|www.foodsense.is]] 
-        to ewes or percentages, Makes all + 
-        layout elements relative +---- 
-• Flexible images and media + 
-        (scaled with percentages (scale up or +  * try resizing the browser window and watch what happens to the main content, banner, navigation menu and other items that are on the screen. 
-        down) wow-artist apartconfounds fluid- +  * If you can, try viewing the site on smart phone and/or tablet.  
-(Also semer side to reduce whatnot sandals +  * With these devices check what happens when you change the orientation of the device. 
-of download) + 
-• Media queries, A 0553 component + 
-that allows you to adjust deng based +===== Principles of Responsive Design ===== 
-on media features such as width of + 
-browser'relievable page over +Also known as "//Mobile First//" design 
-Together called "Responsive Design" +  * A flexible grid-based layout 
-or 'Mobile First-4+  * Flexible images and media 
 +  * Use of media queries 
 + 
 +---- 
 + 
 +<note> 
 +  * //A flexible grid-based layout// uses so-called fluid layout so that width/margin/padding of elements are defined in percentages or ems rather than pixels. This makes the location and size of all elements relative and easily resizable. 
 +  * //Flexible images and media// means that images and video are sized by percentages which can be scaled up or down. This may require server-side support for scaling if it is to be efficient on mobile devices.  
 +  * //Use of media queries// -- a CSS3 feature -- that allows you to adjust the design based on device features such as the width of the device'viewable area. 
 +</note> 
 Further Reading Further Reading
         Luke Wrote lew ski-^ Mobile First"         Luke Wrote lew ski-^ Mobile First"
Line 106: Line 114:
                 b aha h net ÷ u b use. CSS u I>                 b aha h net ÷ u b use. CSS u I>
 Cube d = a style sheet n Cube d = a style sheet n
-                media = "only screen  +                media = "only screen
- +
- +
 ===== Summary ====== ===== Summary ======
  
eg-146/lecture19.txt · Last modified: 2012/04/23 18:29 by eechris