Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Responsive Web Design - Er þetta framtíðin eða ...

Avatar for Hannes Hannes
December 15, 2011

Responsive Web Design - Er þetta framtíðin eða bara buzz orð?

Stutt kynning um "aðlagaða vefhönnun" sem ég hélt á "SuperNörda kynningu" sem við höldum annan hvern fimmtudag hjá TM Software.

Avatar for Hannes

Hannes

December 15, 2011
Tweet

Other Decks in Technology

Transcript

  1. Responsive Web Design Einnig kallað: Adaptive Web Design, Fluid, Flexible,

    Progressive Enhancement... "Aðlöguð vefhönnun" Aðlaga að hverjum notanda
  2. *Heimildir: http://www.mediapost.com/publications/article/120590/ (Gartner) http://www.morganstanley.com/institutional/techresearch/mobile_internet_report122009.html Af hverju er sniðugt að hafa

    vefsíður responsive? Fleiri munu nálgast Netið í gegnum mobile tæki heldur en desktop eftir 1 eða 2 ár* Þarft ekki að viðhalda 2 (eða fleirum) verkefnum (project-um) Kostur (t.d. út frá SEO) að það sé bara ein slóð fyrir sama efnið - en ekki t.d. www.tmsoftware.is/nyjasta-frettin/ og svo m. tmsoftware.is/nyjasta-frettin/
  3. Af hverju er sniðugt að hafa vefsíður responsive? Aðgengi (e.

    accessibility) - allir eru með "sérþarfir" eftir aðstæðum hverju sinni "giving the user a optimised experience without them having to visit a different URL" http://blog.responsivenews.co.uk/post/12642980168/axes-of-responsive-design Framtíðin: <10% batterýhleðsla - koma í veg fyrir óþarfa
  4. Fluid grid Ekki nota px fyrir stærðir. Nota frekar %

    eða em. #page { margin: 40px auto; padding: 0 1em; max-width: 61.75em; /* 988px / 16px = 61.75em */ } h1 { margin-left: 14.575%; /* 144px / 988px = 0.14575 */ width: 70.85%; /* 700px / 988px = 0.7085 */ } Meira: http://www.alistapart.com/articles/fluidgrids
  5. Flexible media img { max-width: 100%; } - nema fyrir

    IE6 Meira: http://www.alistapart.com/articles/fluid-images/
  6. CSS3 og media queries <link rel="stylesheet" type="text/css" media="screen and (max-device-width:

    480px)" href="shetland.css" /> Líka hægt að skilgreina þetta í CSS skjalinu - sparar http köll að hafa bara eitt skjal: /* =Small screen typography*/ @media screen and (max-width:659px) { #contact button { font-size: 1em; } strong { font-size: 1.25em; } aside h1, h2 { font-size: 1.75em; } #top .return { font-size: 0.875em; } }
  7. Tól http://fittextjs.com/ FitText makes font-sizes flexible. Use this plugin on

    your fluid or responsive layout to achieve scalable headlines that fill the width of a parent element. http://fitvidsjs.com/ A lightweight, easy-to-use jQuery plugin for fluid width video embeds. http://stuffandnonsense.co.uk/projects/320andup/ ‘320 and Up’ prevents mobile devices from downloading desktop assets by using a tiny screen’s stylesheet as its starting point. https://github.com/filamentgroup/Responsive-Images An Experiment with Mobile-First Images that Scale Responsively & Responsibly
  8. Takk fyrir :) Hannes Agnarsson Johnson hannes hjá tmsoftware.is @officialstation

    Myndir: http://www.flickr.com/photos/officialstation/