70
– from designing in-browser to implementing custom templates Prototypes & Drupal Formerly known as Bysted, Propeople, Blink Reaction, Chainbizz and Geekpolis Join the conversation on Twitter FFWglobal FFWdcon

Prototypes and Drupal

  • Upload
    ffw

  • View
    481

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Prototypes and Drupal

– from designing in-browser to implementing custom templates

Prototypes & Drupal

Formerly known as Bysted, Propeople, Blink Reaction, Chainbizz and Geekpolis Join the conversation on Twitter FFWglobal FFWdcon

Page 2: Prototypes and Drupal

Hello

Morten ChristoffersenUser Experience Lead

Yuriy GerasimovDrupal Architect

Page 3: Prototypes and Drupal

HERE, THERE AND ALL AROUND

USA Brazil UK Denmark Sweden AustriaGermany Bulgaria Ukraine Moldova Vietnam

Page 4: Prototypes and Drupal

15 YEARS EXPERIENCE

420 FULL TIME

EMPLOYEES20 OFFICES

WORLDWIDE

250 TECHNOLOGY SPECIALISTS

1000+ SOLUTIONS DELIVERED

~100 PROJECTS RUNNING

HERE, THERE AND ALL AROUND

Page 5: Prototypes and Drupal

Agenda.Today01 Designing in-browser 02 Prototyping setup 03 Drupal 7 implementation 04 Drupal 8 - what is next?

There will be time for questions after each section.

Formerly known as Bysted, Propeople, Blink Reaction, Chainbizz and Geekpolis Join the conversation on Twitter FFWglobal FFWdcon

Page 6: Prototypes and Drupal

What is it and why should we do it?Designing in-browser

Page 7: Prototypes and Drupal

What?“Designing in-browser”

Designing websites directly in the browser using HTML, CSS and Javascript, instead of using apps such as Photoshop or Sketch.

Formerly known as Bysted, Propeople, Blink Reaction, Chainbizz and Geekpolis

Page 8: Prototypes and Drupal

Replacing static mock-ups…

.. with designing prototypes in code

Page 9: Prototypes and Drupal

Replacing static mock-ups…

.. with designing prototypes in code

Page 10: Prototypes and Drupal
Page 11: Prototypes and Drupal

Why?

Formerly known as Bysted, Propeople, Blink Reaction, Chainbizz and Geekpolis

Page 12: Prototypes and Drupal

Why?1. Precision 2. Consistency 3. Interaction 4. Transparency

Formerly known as Bysted, Propeople, Blink Reaction, Chainbizz and Geekpolis

Page 13: Prototypes and Drupal

Why?1. Precision 2. Consistency · Reusable styles and components 3. Interaction · Animations and transitions 4. Transparency · Continous testing and iteration

Formerly known as Bysted, Propeople, Blink Reaction, Chainbizz and Geekpolis

Page 14: Prototypes and Drupal

1. PRECISION

Page 15: Prototypes and Drupal

? ?

1. PRECISION

Page 16: Prototypes and Drupal

Animations by FROONT (http://blog.froont.com/9-basic-principles-of-responsive-web-design/)

1. PRECISION

Page 17: Prototypes and Drupal

Animations by FROONT (http://blog.froont.com/9-basic-principles-of-responsive-web-design/)

1. PRECISION

Page 18: Prototypes and Drupal

Why?1. Precision · Control over details and responsive behaviour 2. Consistency · Reusable styles and components 3. Interaction · Animations and transitions 4. Transparency · Continous testing and iteration

Formerly known as Bysted, Propeople, Blink Reaction, Chainbizz and Geekpolis

Page 19: Prototypes and Drupal

Why?1. Precision · Control over details and responsive behaviour 2. Consistency 3. Interaction · Animations and transitions 4. Transparency · Continous testing and iteration

Formerly known as Bysted, Propeople, Blink Reaction, Chainbizz and Geekpolis

Page 20: Prototypes and Drupal

2. CONSISTENCY

THIS IS A BUTTON

THIS IS ALSO A BUTTON

34px

19px

Page 21: Prototypes and Drupal

2. CONSISTENCY

THIS IS A BUTTON

40px

20px

THIS IS ALSO A BUTTON

34px

19px

Page 22: Prototypes and Drupal

2. CONSISTENCY

THIS IS A BUTTON

40px

20px

THIS IS ALSO A BUTTON

34px

19px

Page 23: Prototypes and Drupal

THIS IS A BUTTON

2. CONSISTENCY

.button { padding: 20px 40px; background-color: $blue; font-family: $mark-pro;

}

THIS IS A BUTTON

Page 24: Prototypes and Drupal

THIS IS A BUTTON

2. CONSISTENCY

.button { padding: 20px 40px; background-color: $blue; font-family: $mark-pro; border-radius: 5px;

}

THIS IS A BUTTON

Page 25: Prototypes and Drupal

Why?1. Precision · Control over details and responsive behaviour 2. Consistency · Reusable styles and components 3. Interaction · Animations and transitions 4. Transparency · Continous testing and iteration

Formerly known as Bysted, Propeople, Blink Reaction, Chainbizz and Geekpolis

Page 26: Prototypes and Drupal

Why?1. Precision · Control over details and responsive behaviour 2. Consistency · Reusable styles and components 3. Interaction 4. Transparency · Continous testing and iteration

Formerly known as Bysted, Propeople, Blink Reaction, Chainbizz and Geekpolis

Page 27: Prototypes and Drupal

3. INTERACTION

User flows (logical user journeys and funnels)

Page 28: Prototypes and Drupal

3. INTERACTION

User flows (logical user journeys and funnels)

Page 29: Prototypes and Drupal

3. INTERACTION

Feedback (errors, confirmations, hover states, active states)

Page 30: Prototypes and Drupal

3. INTERACTION

Feedback (errors, confirmations, hover states, active states)

Page 31: Prototypes and Drupal

3. INTERACTION

Transitions and animations (states, context, delight)

Page 32: Prototypes and Drupal

3. INTERACTION

Transitions and animations (states, context, delight)

Page 33: Prototypes and Drupal

Why?1. Precision · Control over details and responsive behaviour 2. Consistency · Reusable styles and components 3. Interaction · Flows, feedback, animations and transitions 4. Transparency · Continous testing and iteration

Formerly known as Bysted, Propeople, Blink Reaction, Chainbizz and Geekpolis

Page 34: Prototypes and Drupal

Why?1. Precision · Control over details and responsive behaviour 2. Consistency · Reusable styles and components 3. Interaction · Flows, feedback, animations and transitions 4. Transparency

Formerly known as Bysted, Propeople, Blink Reaction, Chainbizz and Geekpolis

Page 35: Prototypes and Drupal

MAGICAL DESIGN “BLACK BOX”

4. TRANSPARENCY

CLIENT INPUT DESIGN SOLUTION?

Page 36: Prototypes and Drupal

4. TRANSPARENCY

Page 37: Prototypes and Drupal

4. TRANSPARENCY

Page 38: Prototypes and Drupal

4. TRANSPARENCY

Page 39: Prototypes and Drupal

Why?1. Precision · Control over details and responsive behaviour 2. Consistency · Reusable styles and components 3. Interaction · Flows, feedback, animations and transitions 4. Transparency · Continuous testing and iteration

Formerly known as Bysted, Propeople, Blink Reaction, Chainbizz and Geekpolis

Page 40: Prototypes and Drupal

Questions?

Formerly known as Bysted, Propeople, Blink Reaction, Chainbizz and Geek Police

Page 41: Prototypes and Drupal

Let’s see the goodsPrototyping setup

Page 42: Prototypes and Drupal

Formerly known as Bysted, Propeople, Blink Reaction, Chainbizz and Geekpolis

NPM · Package manager for dev tools

Bower · Package manager for front end libs

Gulp JS · Build system and task automation

Sass · CSS preprocessor Susy · Sass-based grid system Twig · Template engine (actually, TwigJS)

Page 43: Prototypes and Drupal
Page 44: Prototypes and Drupal

1. Start a static server with live reloading 2. Watch files and run tasks on changes 3. Compile SCSS and add vendor prefixes 4. Generate source maps 5. Compile Twig templates to HTML 6. Include data with our templates

Gulp automates all of this – so we can focus on designing!

Page 45: Prototypes and Drupal
Page 46: Prototypes and Drupal

Twig 1. Output, escape and filter data 2. Presentation logic; Conditionals, loops 3. Define and override blocks 4. Include and extend templates

Page 47: Prototypes and Drupal
Page 48: Prototypes and Drupal
Page 49: Prototypes and Drupal
Page 50: Prototypes and Drupal

Styleguide> KSS – http://warpspire.com/kss/styleguides/ > Hologram - http://trulia.github.io/hologram/ > LivingStyleGuide -https://github.com/livingstyleguide/livingstyleguide

Formerly known as Bysted, Propeople, Blink Reaction, Chainbizz and Geekpolis Join the conversation on Twitter FFWglobal FFWdcon

Page 51: Prototypes and Drupal
Page 52: Prototypes and Drupal
Page 53: Prototypes and Drupal
Page 54: Prototypes and Drupal

Questions?

Formerly known as Bysted, Propeople, Blink Reaction, Chainbizz and Geek Police

Page 55: Prototypes and Drupal

How to implement prototypes?Drupal 7 implementation

Page 56: Prototypes and Drupal

Backend vs. Frontend1. Backend developers will resist 2. Their ideal workflow -- here is your data, make it beautiful 3. Frontend developers need to learn a lot of drupal theming

Formerly known as Bysted, Propeople, Blink Reaction, Chainbizz and Geekpolis

Page 57: Prototypes and Drupal

Techniques1. Panels 2. Views 3. View modes 4. Javascripts

Formerly known as Bysted, Propeople, Blink Reaction, Chainbizz and Geekpolis

Page 58: Prototypes and Drupal

Panels1. Have inventory of templates / blocks 2. Organise your templates right 3. Start with layouts

Formerly known as Bysted, Propeople, Blink Reaction, Chainbizz and Geekpolis

Page 59: Prototypes and Drupal

Formerly known as Bysted, Propeople, Blink Reaction, Chainbizz and Geekpolis

Page 60: Prototypes and Drupal

Formerly known as Bysted, Propeople, Blink Reaction, Chainbizz and Geekpolis

Page 61: Prototypes and Drupal

Panels1. Place template of each content pane in its folder

Formerly known as Bysted, Propeople, Blink Reaction, Chainbizz and Geekpolis

Page 62: Prototypes and Drupal

Custom panes everywhere

Formerly known as Bysted, Propeople, Blink Reaction, Chainbizz and Geekpolis

Page 63: Prototypes and Drupal

Views1. Do not render lists with views 2. Just get results and render them on your own

Formerly known as Bysted, Propeople, Blink Reaction, Chainbizz and Geekpolis

Page 64: Prototypes and Drupal

Display modes1. Always create render nodes with view modes 2. Advantages: separate templates, entity cache, render cache

Formerly known as Bysted, Propeople, Blink Reaction, Chainbizz and Geekpolis

Page 65: Prototypes and Drupal

Javascripts1. When prototyping discuss the versions (jQuery, Bootstrap etc.) 2. Add drupal.js in the beginning 3. Use Drupal.behaviors

Formerly known as Bysted, Propeople, Blink Reaction, Chainbizz and Geekpolis

Page 66: Prototypes and Drupal

Custom framework1. Silex took 4 hours to implement the page from prototype

Formerly known as Bysted, Propeople, Blink Reaction, Chainbizz and Geekpolis

Page 67: Prototypes and Drupal

What is next?Drupal 8

Page 68: Prototypes and Drupal

What to expect1. Twig templates (need to figure out) 2. Javascripts more modern versions 3. Backbone and other frameworks

Formerly known as Bysted, Propeople, Blink Reaction, Chainbizz and Geekpolis

Page 69: Prototypes and Drupal

Questions?

Formerly known as Bysted, Propeople, Blink Reaction, Chainbizz and Geek Police

Page 70: Prototypes and Drupal

Visit us at booth 501 Thank you

Join the conversation on Twitter FFWglobal FFWdcon