responsive web design in oracle application express

53
Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 13 1

Upload: shakko

Post on 18-Nov-2014

3.275 views

Category:

Documents


2 download

DESCRIPTION

Learn how you can develop Responsive Web Applications in Oracle Application Express using Theme 25

TRANSCRIPT

Page 1: Responsive Web Design in Oracle Application Express

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 13

1

Page 2: Responsive Web Design in Oracle Application Express

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 13

Responsive Web Designin Application Express using HTML5 and CSS3Shakeeb Rahman@shakeebPrincipal Member of Technical StaffOracle Application Express #orclapex

2

Page 3: Responsive Web Design in Oracle Application Express

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Software Developer

Shakeeb Rahman

Intern at Oracle in 2006Joined APEX team in 2009Projects I have worked on

– Oracle Store– APEX– Oracle Cloud

First talk at Oracle OpenWorld

3

3

Page 4: Responsive Web Design in Oracle Application Express

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Program Agenda

The Web Today

Mobile App vs Responsive App Responsive Web Design APEX 4.2 Features Demos Is Responsive Right for you?

4

4

Page 5: Responsive Web Design in Oracle Application Express

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

10 Years Ago

Evolving Web Applications

Designed for Internet ExplorerWindows Desktop or LaptopMaximum screen resolution of 1024x768

Table-Based<font> TagPresentation + Markup mixed

5

5

Page 6: Responsive Web Design in Oracle Application Express

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

5 Years Ago

Evolving Web Applications

Mobile becomes popular with iPhone

Firefox is eating IE marketshareStart Investigating Mobile

6

6

Page 7: Responsive Web Design in Oracle Application Express

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Today

Evolving Web Applications

Many DevicesMany PlatformsMany Screen sizesMany ResolutionsMany BrowsersMany Many Variables

7

7

Page 8: Responsive Web Design in Oracle Application Express

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Enterprise gone Mobile

Evolving Web Applications

Mobile is not just for personal useEnterprises have embraced mobile

AgilityCost savings Improve productivity

8

8

Page 9: Responsive Web Design in Oracle Application Express

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Symantec2012 State of Mobility Survey

“71% of organizations are already using or planning to use custom mobile applications”

9

9

Page 10: Responsive Web Design in Oracle Application Express

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.10

Everyone is doing it. How can you?

10

Page 11: Responsive Web Design in Oracle Application Express

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Native Apps?

11

11

Page 12: Responsive Web Design in Oracle Application Express

12

12

Page 13: Responsive Web Design in Oracle Application Express

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Native Apps?

13

13

Page 14: Responsive Web Design in Oracle Application Express

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Dedicated Mobile Web Apps?

14

14

Page 15: Responsive Web Design in Oracle Application Express

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Dedicated Mobile Web app

• Fast

• Looks Native

• Optimized for Mobile

•Duplicate Code

• Less Functionality

•Not Optimized for Tablets

15

15

Page 16: Responsive Web Design in Oracle Application Express

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Dedicated Mobile Web Apps?

16

16

Page 17: Responsive Web Design in Oracle Application Express

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Well, let’s look at the requirements.

17

17

Page 18: Responsive Web Design in Oracle Application Express

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Enterprise Application

The Business Requirement

Work on Desktop, Mobile, TabletsSimilar UISingle Code LineSame DevelopersNo New Technology

18

18

Page 19: Responsive Web Design in Oracle Application Express

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Responsive Web Design (RWD)

19

19

Page 20: Responsive Web Design in Oracle Application Express

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Responsive Web Design (RWD)

20

an approach to web design in which a designer intends to provide an optimal viewing experience—

easy reading and navigation with a minimum of resizing, panning, and scrolling—across a wide

range of devices (from desktop computer monitors to mobile phones). (Wikipedia)

20

Page 21: Responsive Web Design in Oracle Application Express

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Same HTML. Same Application Logic.

Different User Experience.

21

21

Page 22: Responsive Web Design in Oracle Application Express

22

22

Page 23: Responsive Web Design in Oracle Application Express

23

23

Page 24: Responsive Web Design in Oracle Application Express

24

24

Page 25: Responsive Web Design in Oracle Application Express

25

25

Page 26: Responsive Web Design in Oracle Application Express

26

26

Page 27: Responsive Web Design in Oracle Application Express

27

27

Page 28: Responsive Web Design in Oracle Application Express

28

28

Page 29: Responsive Web Design in Oracle Application Express

29

29

Page 30: Responsive Web Design in Oracle Application Express

30

30

Page 31: Responsive Web Design in Oracle Application Express

31

31

Page 32: Responsive Web Design in Oracle Application Express

32

32

Page 33: Responsive Web Design in Oracle Application Express

33

33

Page 34: Responsive Web Design in Oracle Application Express

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

How does it work?

34

34

Page 35: Responsive Web Design in Oracle Application Express

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

CSS3 Media Queries

35

allowing you to define styles based on conditions such as screen size or resolution

@media screen and (min-width: 320px) and (max-width: 479px) {...}

define multiple CSS media queries to target “cut off points” and appropriately adjust UI for given screen size

35

Page 36: Responsive Web Design in Oracle Application Express

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.36

Mobile Portrait–@media screen and (min-width: 320px) and (max-width: 479px)

Mobile Landscape–@media only screen and (min-width: 480px) and (max-width: 767px)

Mobile Portrait / Landscape–@media only screen and (max-width: 767px)

Tablet Portrait–@media only screen and (min-width: 768px) and (max-width: 959px)

Tablet Landscape–@media only screen and (min-width: 960px) and (max-width: 1024px)

36

Page 37: Responsive Web Design in Oracle Application Express

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

CSS3 Responsive Utility Classes

37

Easily hide / show content depending on device type

37

Page 38: Responsive Web Design in Oracle Application Express

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Grid Layout

38

Using a grid makes it easier to align and lay out page components

Media Queries can then easily shift or reposition these components

38

Page 39: Responsive Web Design in Oracle Application Express

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Example Grid

39

39

Page 40: Responsive Web Design in Oracle Application Express

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Sounds technical. Do I have to do this manually?

40

40

Page 41: Responsive Web Design in Oracle Application Express

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

NO!APEX handles all of this for you.

41

41

Page 42: Responsive Web Design in Oracle Application Express

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

APEX 4.2 Support for Responsive Web Design

Grid Layout for Regions and Items

Theme 25

42

42

Page 43: Responsive Web Design in Oracle Application Express

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Grid Layout

APEX 4.2 Support for Responsive Web Design

Declarative way to lay out regions and items on a page

Possible to do complex layouts without manual css overrides

Compatible with popular grid frameworks such as twitter bootstrap, 960 gs, etc.

43

43

Page 44: Responsive Web Design in Oracle Application Express

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Fully Responsive Theme

APEX 4.2 Support for Responsive Web Design

Uses custom flexible grid up to 2560px wide

Mobile, Tablet, Desktop support Icon ButtonsRetina Display CompatibleModernizr

44

44

Page 45: Responsive Web Design in Oracle Application Express

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Fully Responsive Theme

APEX 4.2 Support for Responsive Web Design

SCSS BasedRespond.js for RWD in older IE One Sprite (and one for Retina) Icons

45

45

Page 46: Responsive Web Design in Oracle Application Express

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Demo: Convert Existing App to

Responsive App

46

46

Page 47: Responsive Web Design in Oracle Application Express

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Demo: Sample DB Application Walk Through

47

47

Page 48: Responsive Web Design in Oracle Application Express

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Is Responsive Right for you?

Responsive Full Experience Single Code Line Web UI

48

Mobile Limited Utility New Mobile Codeline Pseudo Native UI

48

Page 49: Responsive Web Design in Oracle Application Express

49

49

Page 50: Responsive Web Design in Oracle Application Express

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

Q & A

50

50

Page 51: Responsive Web Design in Oracle Application Express

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.

@shakeebblog: apex.shak.us

51

51

Page 52: Responsive Web Design in Oracle Application Express

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 13

52

Page 53: Responsive Web Design in Oracle Application Express

Copyright © 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 13

53