71
Jens Grochtdreis YAML 4 - Rapid Prototyping mit HTML und CSS

Rapid Prototyping mit YAML4

Embed Size (px)

DESCRIPTION

Vortrag auf der Webtech 2012. Die Nomenklatur von YAML wird erklärt sowie die vielen Addons und die helfende Dokumentation genauer vorgestellt. Alles als Basis für das später folgende Livecoding. Damit konnte ich zeigen, dass man mit YAML schnell zu einem testbaren Ergebnis, einem Prototypen, kommen kann. Der kann dann die Basis weiterer Designiterationen sein und später in den produktiven Code übergehen.

Citation preview

Page 1: Rapid Prototyping mit YAML4

Jens Grochtdreis

YAML 4 - Rapid Prototyping mit HTML und CSS

Page 2: Rapid Prototyping mit YAML4

‣Frontendentwickler

‣seit 1999 Arbeit im und fürs Web

‣seit 2009 selbständig

‣Frontendentwicklung

‣Schulung

‣Beratung

‣twitter.com/Flocke

Page 3: Rapid Prototyping mit YAML4

Photoshop ist nicht für Webdesign geeignet.

Page 4: Rapid Prototyping mit YAML4

Es war es nie!

Page 7: Rapid Prototyping mit YAML4

Das passt dazu nicht

Page 8: Rapid Prototyping mit YAML4

http://www.flickr.com/photos/artrock2006/4177475479/

Rapid Prototyping macht eine Zusammenarbeit mit Designern und Konzeptern einfacher.

Page 9: Rapid Prototyping mit YAML4

http://www.yaml.de/

Page 10: Rapid Prototyping mit YAML4

YAML definiert Layout, kein Design

Page 11: Rapid Prototyping mit YAML4

Design-Dateien sind zur Demonstration und zur eigenen Bequemlichkeit.

Page 12: Rapid Prototyping mit YAML4

Diese sind nützlich für Rapid Prototyping.

Page 13: Rapid Prototyping mit YAML4

YAML ist gross

Page 14: Rapid Prototyping mit YAML4

Quatsch!

Page 15: Rapid Prototyping mit YAML4

‣ unfallfreie Spaltenlayouts

‣ Grids, die beliebig erweitert werden können

‣ Accessibility-Tools

‣ Formularbaukasten

‣ Basis Print-Styles

‣ alles für px, em und %

‣ Grid sind schon responsive!

‣ HTML5-ready

96 Zeilen CSS für ...

Page 16: Rapid Prototyping mit YAML4

45 Zeilen IE-CSS

‣ Alle Layouts funktionieren bis einschließlich IE 5!

‣ Nicht mehr um fiese Bugs kümmern.

‣ HTML5-Elemente werden mit berücksichtigt.

Page 17: Rapid Prototyping mit YAML4
Page 18: Rapid Prototyping mit YAML4

base: 4,5 KB minifiziertie-hacks: 1,9 KB minifiziert

Page 19: Rapid Prototyping mit YAML4

Klare Regeln lernen

Page 20: Rapid Prototyping mit YAML4

Die Klassen haben alle einen Namespace: ym-

1

Page 21: Rapid Prototyping mit YAML4

Es gibt zwei wichtige Bausteine

2

Page 22: Rapid Prototyping mit YAML4

Die Kerndateien in zwei Varianten

Produktionsdateien

Page 23: Rapid Prototyping mit YAML4

Layoutbestandteile werden gedoppelt. Wegen des alten

Boxmodells!

3

Page 24: Rapid Prototyping mit YAML4

Die zwei Container

Bei Nutzung des border-box-Modells oder fixen Layouts sind die inneren Container verzichtbar!

Page 25: Rapid Prototyping mit YAML4

Es gibt eine klare Nomenklatur

4

Page 26: Rapid Prototyping mit YAML4

‣ ym-wrapper: Wrapper-Modul

‣ ym-column: Column-Modul

‣ ym-grid: Grid-Modul

‣ ym-form: Formular-Modul

Nomenklatur der Module

Page 27: Rapid Prototyping mit YAML4

‣ ym-wbox: Wrapper-Modul

‣ ym-cbox: Column-Modul

‣ ym-gbox: Grid-Modul

‣ ym-fbox: Formular-Modul

Nomenklatur der inneren Container

Page 28: Rapid Prototyping mit YAML4

Nomenklatur der Formulare

‣ .ym-fbox-text

‣ .ym-fbox-select

‣ .ym-fbox-check

‣ .ym-fbox-button

Page 29: Rapid Prototyping mit YAML4

Das Column-Modul

Page 30: Rapid Prototyping mit YAML4
Page 31: Rapid Prototyping mit YAML4
Page 32: Rapid Prototyping mit YAML4

Das Grid-Modul

Page 33: Rapid Prototyping mit YAML4

YAML4 YAML3

Page 34: Rapid Prototyping mit YAML4

‣ Die Breitendefinition ist von den restlichen Regeln getrennt.

‣ Dadurch können schnell neue Grids erstellt werden.

‣ Neue Grids werden nur an einer Stelle definiert.

‣ Breite und Floatrichtung sind getrennte Klassen.

‣ Mehrere Klassen auf einem Element, dafür einfach erweiterbar!

Page 35: Rapid Prototyping mit YAML4
Page 36: Rapid Prototyping mit YAML4

Individuelles Zweier-Grid

Page 37: Rapid Prototyping mit YAML4

Formulare

Page 38: Rapid Prototyping mit YAML4

Ausrichtung der Formularelemente durch Zuweisung einer Klasse

Page 39: Rapid Prototyping mit YAML4

Default

Page 40: Rapid Prototyping mit YAML4

.ym-full

Page 41: Rapid Prototyping mit YAML4

.ym-columnar

Page 42: Rapid Prototyping mit YAML4

Viele Goodies

Page 43: Rapid Prototyping mit YAML4

‣ Zeichen werden mittels „content“ als ASCII eingebracht.

‣ Dadurch sind sie skalierbar

‣ Der IE zeigt sie erst ab Version 8.

‣ Ältere IE zeigen den Button ohne Zeichen.

Fertige Buttons

Page 44: Rapid Prototyping mit YAML4

Zwei Navigationsvorlagen

Page 45: Rapid Prototyping mit YAML4

Basis-Typographie

Page 46: Rapid Prototyping mit YAML4

Accessible Tabs

Page 47: Rapid Prototyping mit YAML4

Mikroformate

Page 48: Rapid Prototyping mit YAML4

Use the Doc, Luke!

Page 49: Rapid Prototyping mit YAML4

Einfache Konfiguration

http://www.yaml.de/docs/index.html

Page 50: Rapid Prototyping mit YAML4

Kopieren erwünscht!

Page 51: Rapid Prototyping mit YAML4

Quick-Start Demos

Page 52: Rapid Prototyping mit YAML4

Grab the code

Page 53: Rapid Prototyping mit YAML4

Grab the code

Page 54: Rapid Prototyping mit YAML4

Grab the code

Page 55: Rapid Prototyping mit YAML4

Grab the code

Page 56: Rapid Prototyping mit YAML4

Grab the code

Page 57: Rapid Prototyping mit YAML4

Grab the code

Page 58: Rapid Prototyping mit YAML4

Grab the code

Page 59: Rapid Prototyping mit YAML4

Grab the code

Page 60: Rapid Prototyping mit YAML4

Grab the code

Page 61: Rapid Prototyping mit YAML4

Grab the code

Page 62: Rapid Prototyping mit YAML4

Das reicht alles nicht?!

Page 63: Rapid Prototyping mit YAML4

Eigene Elemente hinzufügen.

Page 64: Rapid Prototyping mit YAML4

Aus alten Projekten sammeln.

Page 65: Rapid Prototyping mit YAML4

Von anderen Projekten bedienen

Page 66: Rapid Prototyping mit YAML4

http://foundation.zurb.com/

Page 69: Rapid Prototyping mit YAML4

http://bootsnipp.com/

Page 70: Rapid Prototyping mit YAML4