28

Jimba Tamang: Responsive and Retina Design

  • Upload
    wpnepal

  • View
    613

  • Download
    2

Embed Size (px)

Citation preview

Page 1: Jimba Tamang: Responsive and Retina Design
Page 2: Jimba Tamang: Responsive and Retina Design

Responsive Web Design

Jimba Tamang

www.jimba.com.np www.lastdoorsolutions.com

www.theidealaya.com @jimbatamang

Page 3: Jimba Tamang: Responsive and Retina Design

Various web devices

Image source: web

Page 4: Jimba Tamang: Responsive and Retina Design

Why Mobile Devices?

Over 1.2 billion mobile web users in the Whole

World

In USA 25% people use the mobile device only

Asia/Africa 50% internet traffic through

Mobile Devices

Page 5: Jimba Tamang: Responsive and Retina Design

Responsive Web Design

Image source: web

Page 6: Jimba Tamang: Responsive and Retina Design

Still headache with Future Devices

Image source: web

Page 7: Jimba Tamang: Responsive and Retina Design

Different between Normal Website and Responsive Website

Old Apple Computer New Apple Computer

Page 8: Jimba Tamang: Responsive and Retina Design

Normal site in big browser

Page 9: Jimba Tamang: Responsive and Retina Design

Normal website in iPhone Example: www.ntc.net.np

Page 10: Jimba Tamang: Responsive and Retina Design

Responsive site in Big Screen

Page 11: Jimba Tamang: Responsive and Retina Design

Responsive website in iPhone

Example: www.lastdoorsolutions.com

Page 12: Jimba Tamang: Responsive and Retina Design

The Basic Concept

Page 13: Jimba Tamang: Responsive and Retina Design

Auto scaleable image according to the available space in screen

Page 14: Jimba Tamang: Responsive and Retina Design

Behind the scene

What are the magic codes, mysteries?

Page 15: Jimba Tamang: Responsive and Retina Design

Smart phone force to zoom out the normal site to fit on It’s screen.

Page 16: Jimba Tamang: Responsive and Retina Design

Viewport Meta Tag

<meta name="viewport” content="width=device-width, initial-scale=1” >

It tells to smart phones to not zoom out the site

Page 17: Jimba Tamang: Responsive and Retina Design

@media only screen and (min-width: 960px) { /* Big Screen*/ body { background-color: red; } }

@media only screen and (max-width: 767px) { /* Small Screens*/ body { background-color: green; } }

CSS Media Query

Page 18: Jimba Tamang: Responsive and Retina Design

Retina Display

Page 19: Jimba Tamang: Responsive and Retina Design

Retina Display

Page 20: Jimba Tamang: Responsive and Retina Design

Retina Display: Background image problem

Page 21: Jimba Tamang: Responsive and Retina Design

CSS sprite for Retina Display

Page 22: Jimba Tamang: Responsive and Retina Design

Normal CSS

#nav a { background:url(images/[email protected]) no-repat 0 0; height:40px; width:40px; } #nav a.home { background-position: -1px -20px; }

Page 23: Jimba Tamang: Responsive and Retina Design

Retina Display Media Query @media

only screen and ( -webkit-min-device-pixel-ratio: 2), only screen and ( min--moz-device-pixel-ratio: 2), only screen and ( -o-min-device-pixel-ratio: 2/1) {

/* Retina Stuff here... */ #nav a { background-image: url(images/[email protected]); background-size: 200px 200px; } }

Page 24: Jimba Tamang: Responsive and Retina Design

Techniques

•  Frameworks: less work • Skeleton Framework (grid framework) • Twitter Bootstrap • Foundation 3 • And many more…

• Design •  It’s more about team work

• Custom styles: more work

Page 25: Jimba Tamang: Responsive and Retina Design

Basic Approach

Big screen first Mobile first

Page 26: Jimba Tamang: Responsive and Retina Design

Make your site Responsive Make your site beautiful

Page 27: Jimba Tamang: Responsive and Retina Design

Need Help?

• www.google.com • www.WordPress.org • www.smashingmagazine.com • www.css-tricks.com • www.jimba.com.np

Page 28: Jimba Tamang: Responsive and Retina Design

Twitter • @jimbatamang

Home page •  jimba.com.np

Available at •  lastdoorsolutions.com • theidealaya.com