silk ui from basics to advanced

80
www.outsystems.com The Silk UI framework web

Upload: outsystems

Post on 13-Jan-2017

1.518 views

Category:

Technology


9 download

TRANSCRIPT

Page 1: SILK UI from basics to advanced

www.outsystems.com

The Silk UI framework web

Page 2: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

Samuel Jesus

OutSystems (4 Years)Experts Team - Silk UI Team Leader

Page 3: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

AgendaIntroduction

CSSFront-End FrameworksWhat is Silk UI ?Themes, Samples and Patterns

Silk UI Basics

Responsive in Silk UI

Silk UI Advanced

Questions

Page 4: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

AgendaIntroduction

Silk UI BasicsSilk UI ArchitectureBuild an App with Silk UI

DemoCustomize your app

DemoResponsive in Silk UI

Silk UI Advanced

Questions

Page 5: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

AgendaIntroduction

Silk UI Basics

Responsive in Silk UIServer-side ApproachGain control of ResponsiveDevice SimulationDemo

Silk UI Advanced

Questions

Page 6: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

AgendaIntroduction

Silk UI Basics

Responsive in Silk UI

Silk UI AdvancedCustom CSS made easierDemo

Questions

Page 7: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

AgendaIntroduction

Silk UI Basics

Responsive in Silk UI

Silk UI Advanced

Questions

Page 8: SILK UI from basics to advanced

Introduction

Page 9: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

CSS

Page 10: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

.Box {background-color: white;font-size: 12px;border: 1px solid black;

}

Simple,right?

Page 11: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

CSS

Page 12: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

@media screen and (max-width: 700px) and (min-width: 340px) and (device-pixel-ratio: 2) {

.content > li.kpbb a:hover {position: relative;box-sizing: border-box;padding: 30px 0 0;font-size: .857142857142857rem;background-image: -webkit-gradient(linear, from(#4d90fe),to(#357ae8));

z-index: -1!important;}

.aok-clearfix:after,.aok-clearfix:before, .clearfix:after,.clearfix:before {display: table;content: "";line-height: 0;font-size: 0

}

Page 13: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

@media screen and (max-width: 700px) and (min-width: 340px) and (device-pixel-ratio: 2) {

.content > li.kpbb a:hover {position: relative;box-sizing: border-box;padding: 30px 0 0;font-size: .857142857142857rem;background-image: -webkit-gradient(linear, from(#4d90fe),to(#357ae8));

z-index: -1!important;}

.aok-clearfix:after,.aok-clearfix:before, .clearfix:after,.clearfix:before {display: table;content: "";line-height: 0;font-size: 0

}

Page 14: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

Responsive Menu

Page 15: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

Responsive Menu

over 3000 lines of CSS

Page 16: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

GreatUIwithoutCSS

UltimateGoal

Page 17: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

GreatUIwithoutCSS

UltimateGoal

Front-EndFrameworks

Page 18: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

Page 19: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

Page 20: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

There’sabetterway

Page 21: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

What is Silk UI ?

Page 22: SILK UI from basics to advanced

Themes, Samples and Patterns

Page 23: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

Themes, Samples and Patterns

Page 24: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

Themes, Samples and Patterns

Dublin

Liverpool

Lisbon Tokyo

Vanilla

Page 25: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

Themes, Samples and Patterns

Page 26: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

Themes, Samples and Patterns

Page 27: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

Themes, Samples and Patterns

Page 28: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

labs.outsystems.net/SilkUI

Page 29: SILK UI from basics to advanced

Silk UI Basics

Page 30: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

Silk UI Architecture

Silk UI Framework

Lisbon Template

Tokyo Template

Dublin Template

Liverpool Template

Vanilla Template

YourCustom

Template

Your Application

Page 31: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

Silk UI Architecture

Silk UI Framework

Lisbon Template

Tokyo Template

Dublin Template

Liverpool Template

Vanilla Template

YourCustom

Template

Your Application

2 modules (eSpaces)● SilkUIFonts● SilkUIFramework

○ Stylesheets (Themes)■ Patterns_SilkUI - Basic stylesheet, contains all the patterns CSS■ Patterns_Dublin - Patterns customization for Dublin■ Email - Empty stylesheet

Page 32: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

Silk UI Architecture

Silk UI Framework

Lisbon Template

Tokyo Template

Dublin Template

Liverpool Template

Vanilla Template

YourCustom

Template

Your Application

2 modules (eSpaces)● SilkUIFonts● SilkUIFramework

○ Stylesheets (Themes)■ Patterns_SilkUI - Basic stylesheet, contains all the patterns CSS■ Patterns_Dublin - Patterns customization for Dublin■ Email - Empty stylesheet

Page 33: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

Silk UI Architecture

Silk UI Framework

Lisbon Template

Tokyo Template

Dublin Template

Liverpool Template

Vanilla Template

YourCustom

Template

Your Application

2 modules (eSpaces)● SilkUIFonts● SilkUIFramework

○ Stylesheets (Themes)■ Patterns_SilkUI - Basic stylesheet, contains all the patterns CSS■ Patterns_Dublin - Patterns customization for Dublin■ Email - Empty stylesheet

Page 34: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

Silk UI Architecture

Silk UI Framework

Lisbon Template

Tokyo Template

Dublin Template

Liverpool Template

Vanilla Template

YourCustom

Template

Your Application

2 modules (eSpaces)● SilkUIFonts● SilkUIFramework

○ Stylesheets (Themes)■ Patterns_SilkUI - Basic stylesheet, contains all the patterns CSS■ Patterns_Dublin - Patterns customization for Dublin■ Email - Empty stylesheet

Page 35: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

Silk UI Architecture

Silk UI Framework

Lisbon Template

Tokyo Template

Dublin Template

Liverpool Template

Vanilla Template

YourCustom

Template

Your Application

Page 36: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

Silk UI Architecture

Silk UI Framework

Lisbon Template

Tokyo Template

Dublin Template

Liverpool Template

Vanilla Template

YourCustom

Template

Your Application

2 modules (eSpaces)● DublinTheme

○ Structure Elements■ Layout■ Header/Footer

○ Stylesheets (Themes)■ DublinTheme - CSS for structure and look and feel

● Template_Dublin - Starting point for every new application.

Page 37: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

Silk UI Architecture

Silk UI Framework

Lisbon Template

Tokyo Template

Dublin Template

Liverpool Template

Vanilla Template

YourCustom

Template

Your Application

2 modules (eSpaces)● DublinTheme

○ Structure Elements■ Layout■ Header/Footer

○ Stylesheets (Themes)■ DublinTheme - CSS for structure and look and feel

● Template_Dublin - Starting point for every new application.

Page 38: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

Silk UI Architecture

Silk UI Framework

Lisbon Template

Tokyo Template

Dublin Template

Liverpool Template

Vanilla Template

YourCustom

Template

Your Application

2 modules (eSpaces)● DublinTheme

○ Structure Elements■ Layout■ Header/Footer

○ Stylesheets (Themes)■ DublinTheme - CSS for structure and look and feel

● Template_Dublin - Starting point for every new application.

Page 39: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

Silk UI Architecture

Silk UI Framework

Lisbon Template

Tokyo Template

Dublin Template

Liverpool Template

Vanilla Template

YourCustom

Template

Your Application

2 modules (eSpaces)● DublinTheme

○ Structure Elements■ Layout■ Header/Footer

○ Stylesheets (Themes)■ DublinTheme - CSS for structure and look and feel

● Template_Dublin - Starting point for every new application.

Page 40: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

Silk UI Architecture

Silk UI Framework

Lisbon Template

Tokyo Template

Dublin Template

Liverpool Template

Vanilla Template

YourCustom

Template

Your Application

Page 41: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

Silk UI Architecture

Silk UI Framework

Lisbon Template

Tokyo Template

Dublin Template

Liverpool Template

Vanilla Template

YourCustom

Template

● Can have all the necessary modules (eSpaces)● Will contain all the CSS for your specific application● Created based on a Template (starter app)

Your Application

Page 42: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

Silk UI Architecture

Silk UI Framework

Lisbon Template

Tokyo Template

Dublin Template

Liverpool Template

Vanilla Template

YourCustom

Template

● Can have all the necessary modules (eSpaces)● Will contain all the CSS for your specific application● Created based on a Template (starter app)

Your Application

Page 43: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

Silk UI Architecture

Silk UI Framework

Lisbon Template

Tokyo Template

Dublin Template

Liverpool Template

Vanilla Template

YourCustom

Template

● Can have all the necessary modules (eSpaces)● Will contain all the CSS for your specific application● Created based on a Template (starter app)

Your Application

Page 44: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

Silk UI Architecture

● Avoid Changing Silk UI Framework Application● Avoid Changing Silk UI Template Applications● Changes will prevent you from an easy upgrade

Silk UI Framework

Lisbon Template

Tokyo Template

Dublin Template

Liverpool Template

Vanilla Template

YourCustom

Template

Your Application

Page 45: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

Build an app with Silk UI - Demo

Create the following application based on Liverpool Theme

Page 46: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

Build an app with Silk UI - Demo

Create the following application based on Liverpool Theme

RichWidgets Icon

lisbonbig.jpg

lisbonsmall.jpg

Page 47: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

Customize your app

Page 48: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

Customize your app

Page 49: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

Demo

Customize the look and feel of your application

labs.outsystems.net/SilkUI/Themes.aspx

Page 50: SILK UI from basics to advanced

Responsive in Silk UI

Page 51: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

Server-side approach

Mix of server-side code (user agent) and client-side dimensionsServer understands the deviceCode and Content optimization server-sideEasily create responsive behaviour

Page 52: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

1 2 3 4

1 2

1 2 3

1 2 3 4 5

1 2 3 4 5 6

Gain control of Responsive How?1. Responsive Columns

- Configurable- Predictable behaviour

Page 53: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

1 2 3 4

1 2

1 2 3

1 2 3 4 5

1 2 3 4 5 6

1 2 3 4Don’t break

1

2 3 4

Break first

1 2 3

4

Break last

1 2

3 4

Break middle

1

2

3

4

Break all

Gain control of Responsive How?1. Responsive Columns

- Configurable- Predictable behaviour

Page 54: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

1 2 3 4

1 2

1 2 3

1 2 3 4 5

1 2 3 4 5 6

1 2 3 4Don’t break

1

2 3 4

Break first

1 2 3

4

Break last

1 2

3 4

Break middle

1

2

3

4

Break all

Gain control of Responsive How?1. Responsive Columns

- Configurable- Predictable behaviour

Page 55: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

1 2 3 4

1 2

1 2 3

1 2 3 4 5

1 2 3 4 5 6

1 2 3 4Don’t break

1

2 3 4

Break first

1 2 3

4

Break last

1 2

3 4

Break middle

1

2

3

4

Break all

Gain control of Responsive How?1. Responsive Columns

- Configurable- Predictable behaviour

Page 56: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

1 2 3 4

1 2

1 2 3

1 2 3 4 5

1 2 3 4 5 6

1 2 3 4Don’t break

1

2 3 4

Break first

1 2 3

4

Break last

1 2

3 4

Break middle

1

2

3

4

Break all

Gain control of Responsive How?1. Responsive Columns

- Configurable- Predictable behaviour

Page 57: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

1 2 3 4

1 2

1 2 3

1 2 3 4 5

1 2 3 4 5 6

1 2 3 4Don’t break

1

2 3 4

Break first

1 2 3

4

Break last

1 2

3 4

Break middle

1

2

3

4

Break all

Gain control of Responsive How?1. Responsive Columns

- Configurable- Predictable behaviour

Page 58: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

Gain control of Responsive How?2. Responsive Patterns

Page 59: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

Select if an element should be loaded in a specific deviceAvoid loading unnecessary data depending on device type

Gain control of Responsive How?2. Responsive Patterns

Page 60: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

Gain control of Responsive How?

Loads content only when close to display on the viewportPrevents high loading times

2. Responsive Patterns

Page 61: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

Gain control of Responsive How?2. Responsive Patterns

Define target container for content in different device types without duplicating information

Page 62: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

Gain control of Responsive How?2. Responsive Patterns

Load different images depending on the current devicePerfect to change the image size or resolution depending on the

device

Page 63: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

Gain control of Responsive How?2. Responsive Patterns

Makes table rows stack on top of each other in phone

Page 64: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

Gain control of Responsive How?2. Responsive Patterns

Makes table rows stack on top of each other in phone

Page 65: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

Gain control of Responsive How?2. Responsive Patterns

Can hide content for specific devices and creates a link to expand it

Only loads content on user request

Page 66: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

Device Simulation

Available in non-productive EnvironmentsTriggered on window resizeCan be switched on/off on each browserControlled by a cookie

Page 67: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

Device Simulation

Available in non-productive EnvironmentsTriggered on window resizeCan be switched on/off on each browserControlled by a cookie

Page 68: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

Device Simulation

Turn On in ProductionNot recommended

Device Simulation reduces application performance

Page 69: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

Demo

Using all the responsive capabilities of Silk UI, optimize your app for mobile devices

Page 70: SILK UI from basics to advanced

Silk UI Advanced

Page 71: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

Custom CSS made easier

Page 72: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

Custom CSS made easier

Page 73: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

Custom CSS made easier

Page 74: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

Custom CSS made easier

Page 75: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

Custom CSS made easier

No @Media Queries

Page 76: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

Custom CSS made easierDevice: desktop, tablet, phone

Dimension: big, hd, small

Orientation: landscape, portrait

Browser: chrome, firefox, IE10, IE11, Safari, etc.

Language: en, nl, etc.

Operating System: windows, ios, osx, android, ubuntu, linux, unknownos

Page 77: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

Exercise 4 - DEMOTransform the following pattern into a responsive pattern using Silk UI classes

Desktop

Page 78: SILK UI from basics to advanced

© OutSystems. All Rights Reserved www.outsystems.com

Exercise 4 - DEMOTransform the following pattern into a responsive pattern using Silk UI classes

DesktopPhone

Page 79: SILK UI from basics to advanced

Questions?

Page 80: SILK UI from basics to advanced

Thank You