designer toolkit

17
Designer Toolkit -Harsha B N http://twitter.com/harshabn808

Upload: harsha-nagaraj

Post on 21-Nov-2014

556 views

Category:

Documents


1 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Designer toolkit

Designer Toolkit

-Harsha B N http://twitter.com/harshabn808

Page 2: Designer toolkit

Introduction

• Themes are the basic styling guidelines for a website. These styling guidelines are responsible for the look and feel of the website.

• langoor.net, being a website builder provides many in-built themes which are written and developed by internal langoor.net developers.

• At the same time, website owners would love to have their own themes, according to their own tastes for colors/gradients.

Page 3: Designer toolkit

Introduction

So, here is the presentation explaining how to write custom themes for the websites created using langoor.net.

Page 4: Designer toolkit

langoor.net Website Layout

• Every website has a basic layout on which the content is distributed.

• Generally, a layout includes a header, footer, main content area and a sidebar.

• Based on the complexity of the website, a layout may include many more areas and sub-areas.

• The mixture of theme and layout forms the basic look and feel of the website (along with the content, of course).

Page 5: Designer toolkit

Website LayoutAll websites created using langoor.net will have the following default layout –

Header

Sidebar Main Area

Footer

Canvas Canvas

Page 6: Designer toolkit

Website Layout

Page 7: Designer toolkit

Website Layout

Layout - 2

Header

Left Sidebar Main Area

Footer

Canvas CanvasRight

Sidebar

Page 8: Designer toolkit

Website Layout

The basic websites created using langoor.net will have the following areas –

•Header (#header)•Footer (#footer)•Sidebar1 (#sidebar1)•Sidebar2 (#sidebar2)•Main Area (#mainarea)

Further, all these areas are contained within a canvas (#canvas).

Page 9: Designer toolkit

Widgets• Widgets are everything in the websites developed on

langoor.net. Anything and everything is a widget.

• A text block is a widget, a Heading is a widget, a table is a widget, and a YouTube video is a widget.

• These areas and widgets form the website pages in langoor.net websites.

• Further all these areas and widgets are wrapped in their respective wrappers. E.g., #canvas is wrapped in a #canvas-wrapper; header is wrapped inside a #header-wrapper, etc.

Page 10: Designer toolkit

Now comes Styling

Not Coding…

Page 11: Designer toolkit

Styling – langoor.net

A default style sheet is the best place to start understanding how theme styles are written for langoor.net websites. Let’s take an example of body, canvas, a header as an example for writing the styles for a theme.

body {margin: 0px;padding: 0px;background: #FFFFFF url('img/body_bg_slice.png') repeat

left top; }

Page 12: Designer toolkit

Styling – langoor.net

#canvas-wrapper {word-wrap: break-word;margin: 0px auto;width: 800px;background-color: #FFFFFF;border: 1px solid #FFFFFF;

}

Canvas-wrapper has been styled to position the website content in the center (margin: 0px auto) with awidth of 800px (so that it works on basic resolution of 600*800).

Page 13: Designer toolkit

Styling – langoor.net

#header {background: #FFFFFF url() no-repeat left top;min-height: 40px;

}

The header is styled to have a minimum height of 40px and background of white color without any image. All these styles can be overwritten as per the theme-creator’s requirements. Some of the styles can be eliminated, new styles can be added, existing styles can be modified, etc.

Page 14: Designer toolkit

Styling – langoor.net

• In a similar way, all the areas can be styled according to the theme-creator’s creativity.

• The next important step in writing themes for langoor.net would be to style different widgets available.

• The widget owners would add their own styles for their widgets. But the basic widgets like page-navigation, banners, captions, etc. can be given different styles by the theme-creators.

Page 15: Designer toolkit

Styling widgets – langoor.netWidgets are identified by class names

Page Navigation Menu Code –

<div id="Menu_1" class="page-nav"><ul class="nav-list horizontal-nav-list right">

<li><a href="#page_id=1“onclick="javascript:Langoor.Editor.PageConstructor.LoadPage(1);">Home</a></li>

<li><a href="#page_id=45"onclick="javascript:Langoor.Editor.PageConstructor.LoadPage(45);">About Us</a></li>

</ul></div>

Page 16: Designer toolkit

Styling Widgets – langoor.net

• Can be styled differently using the class-names .page-nav and .nav-list and .horizontal-nav-list. Here, .nav-list would be a generic class for all the navigation elements present on the page, whereas .horizontal-nav-list would be specific to horizontal navigation.

• Though .right / .left are separate classes in the default style-sheet, they can be made a part of .horizontal-nav-list.

Page 17: Designer toolkit

Time for a Demo!!!