mardi 26 mars 2013

daily tutorial photoshop for Six Revisions

Be The First To Comment
Six Revisions
Giveaway: Premium WordPress Themes from TemplateMonster
Mar 26th 2013, 10:00

Advertise here with BSA


Click this to open TemplateMonster.com collection of WordPress themes in a new browser window/tab.

We’re giving out three premium WordPress themes from TemplateMonster — one of the oldest providers of website templates and themes on the Internet. Read this post to learn how you can win the WordPress theme of your choice from the TemplateMonster site.

About TemplateMonster

At TemplateMonster, you can find and download a monstrous amount of premium website templates. You can also find a ton of themes for popular CMSs such as WordPress, Jigoshop (for your WordPress online store), Joomla!, Magento and much more.

How to Win

In this giveaway, you’ll get a chance to win one of TemplateMonster’s many WordPress themes.

For a chance to win:

  1. Go to TemplateMonster’s collection of WordPress themes and navigate to the WordPress theme that you want to win.
  2. In the comments below, state the name of the theme, the URL of the theme, and the reason why you want that theme.

For example:

I want to win the Bootstrap Cherry Framework Responsive WordPress Theme #43711 because it’s perfect for a business website that I’m launching soon and it looks like I don’t have to customize the theme very much to get the results that I want.

http://www.templatemonster.com/wordpress-themes/43711.html

Giveaway Details

This giveaway ends on Tuesday, April 2, 2013 after which the comments section on this post will be closed and you will no longer be able to leave a comment. Please leave a valid email address when filling out the comment form so that we can contact you if you’ve won. Please only comment once. The winners will be randomly selected using the same method as previous Six Revisions giveaways. The winners will be announced on a separate post and you’re advised to subscribe to our RSS feed so that you can be quickly notified when the winners announcement post has been published. Please note that comments are moderated and so your comment may not show up right away. Please also note that comments that do not follow the instructions on how to participate (described above) may not be published, or may be removed later on.

Related Content

About the Author

Jacob Gube is the Founder and Chief Editor of Six Revisions. He’s also a web developer/designer who specializes in front-end development (JavaScript, HTML, CSS) and also a book author. If you’d like to connect with him, head on over to the contact page and follow him on Twitter: @sixrevisions.

Delicious Digg Evernote Facebook Google Bookmarks LinkedIn StumbleUpon Tumblr Twitter
You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

lundi 25 mars 2013

daily tutorial photoshop for Six Revisions

Be The First To Comment
Six Revisions
Server-Side Scripting + DOM Manipulation for Mobile-Friendly Websites
Mar 25th 2013, 10:27

Advertise here with BSA


Mobile does not just mean smartphones anymore. The word has metamorphosed into an all-encompassing term for any computing device not permanently tied to a wall outlet.

While there are a billion phones in use worldwide, over 52 million tablets were sold in the last quarter of 2012 alone, and tablet sales are predicted to overtake notebook sales by 2016.

Tailoring your website to offer an optimized mobile experience that automatically adjusts itself to multiple device types will very soon be a requirement rather than a feature.

The Popular Solution: Responsive Web Design

Developing for the Mobile Web now involves an understanding of mobile browsers, their JavaScript and CSS engines, and the expected user experience for a wide array of touchscreen devices.

The popular solution for this issue is responsive web design. Responsive web design leverages new features in CSS3 to actively modify the size and position of web page elements based on screen size, orientation, and pixel ratio. It is a strong solution for content-driven sites, whose main requirement is to make text and images digestible.

On the other hand, resizing and repositioning content doesn’t fully address the interface or user experience needs of websites that have heavy interaction, such as web apps and e-commerce sites.

For these types of sites, responsive design is only a small piece of a much larger puzzle.

Issues with Responsive Web Design

For one, mobile users have become acclimatized to how native applications work. Engaging these users through the Web increasingly requires an interface layout that mimics the native applications they associate with their devices. Responsive design techniques alone fail in this task, for the following reasons:

  • Screen size and pixel ratio are not enough to determine device type.
  • Responsive design does not allow for the creation of in-depth, touchscreen specific interactive elements when the site is visited on mobile devices, but only the re-styling or hiding/showing of existing elements.
  • Phablets, such as the Samsung Galaxy Note series, are growing in popularity. While they have the pixel count of small tablets, they are closer to phones in size and are often better served with phone UI and UX.
  • Desktop layouts will be transformed into mobile layouts when the browser window is sized down. This will hinder UX if you gear your mobile design towards touch interaction.

Although the popularity of responsive web design is growing within creative circles, its limitations are keeping it from being a regular solution outside of blogs, design portfolios, and news sites.

Server-side Scripting + DOM Manipulation

Luckily, with the fairly recent and ubiquitous acceptance of HTML5, CSS3, and JavaScript DOM standards across major mobile browsers, alternative techniques (with responsive design as an optional component) are available.

Building web applications that function like their high-end, native counterparts — without redirecting to separate subdomains — is an achievable goal for dedicated and adventurous web developers.

On the website for my company, SpotTrot — which is content driven, but offers some interactive elements — we not only serve desktop and mobile interfaces, but a separate tablet one as well.

We do this without redirecting the user to separate "m-dot" (e.g. m.yourwebsite.com or mobile.yourwebsite.com) or "t-dot" (e.g. t.yourwebsite.com or tablet.yourwesbite.com) subdomains.

In other words, we don’t maintain a separate site for mobile and tablet devices — we simply modify the DOM and serve the appropriate JavaScript and CSS files based on the user’s browsing device.

Using Server-side Scripting Libraries for Refined Device Recognition

The first step in achieving this is to use server-side user agent string parsing to determine the visitor’s device type.

Parsing user agent strings to serve a custom interface is almost as old as the Web itself. In recent years, it has become the main technique for delivering "m-dot" versions of sites.

The responsive design philosophy shies away from serving up separate subdomains for mobile devices, but traditional server-side scripting detection can be repurposed to render the same HTML file in multiple ways.

There are a wide array of libraries that make server-side device detection easier, yet few work as well as MobileESP, in my opinion. MobileESP is available in every major Web programming language and detects both device type and capabilities.

Here is an example of how our website uses the PHP version of MobileESP to categorize devices and serve the appropriate CSS and JavaScript:

  <?php  // Create some constants for devices    class Device    {    const TABLET = 0;    const PHONE = 1;    const DESKTOP = 2;    }      // Initialize MobileESP object    $uagent_info = new uagent_info();      // Define the device        if($uagent_info->isTierTablet)    {    $device = Device::TABLET;    }    elseif($uagent_info->isIphone || $uagent_info->isAndroidPhone || $uagent_info->isTierRichCss)    {    $device = Device::PHONE;    }    else    {    $device = Device::DESKTOP;    }  ?>    <html>    <head>    ...    <!-- Serve up the appropriate CSS and JavaScript for the device -->    <?php switch($device) : ?>    <?php case Device::TABLET: ?>    <link rel="stylesheet" type="text/css" href="style/tablet.css"/>    <script type="text/javascript" src="js/tablet.js"></script>    <?php break; ?>    <?php case Device::PHONE: ?>    <link rel="stylesheet" type="text/css" href="style/phone.css"/>    <script type="text/javascript" src="js/phone.js"></script>    <?php break; ?>    <?php default: ?>    <link rel="stylesheet" type="text/css" href="style/desktop.css"/>    <script type="text/javascript" src="js/desktop.js"></script>    <?php break; ?>    <?php endswitch; ?>    </head>    ...    </html>   

CSS Media Queries vs. DOM Manipulation

While desktop and mobile phone interfaces can follow more traditional design rules, the tablet space has a much higher degree of variation and requires more forethought. Tablet screen sizes commonly vary between 7 to 10 inches, while phones usually hover around 4 inches. Therefore, retina displays on tablets make a larger impact on the amount of pixels on screen. For our website, this means that the single column text display does not always work for tablets and needs to be switched to the three-column display also used on the desktop version of the site.

This can be accomplished through CSS media queries or JavaScript DOM manipulation.

CSS Media Query

CSS3 allows for extensive use of conditionals based on the user’s screen characteristics (such as width and orientation). Here is an example of using media queries to design responsive layouts:

  @media screen and (min-width: [width]px)    {    .class     {      property: value;     }    }  @media screen and (-webkit-min-device-pixel-ratio: 2)  @media screen and (orientation: landscape)  @media screen and (device-aspect-ratio: 16/9)  

DOM Manipulation

However, our site uses JavaScript DOM programming through jQuery to switch between the single and triple column view.

Manipulating the DOM allows complete, real-time control over the layout of a web page. The tablet-specific JavaScript, served up by user agent parsing, contains code that alters the CSS of preexisting HTML div elements.

  // If the screen is wide enough that we want 3 columns    if($(window).width() >= 770)    {    // Create the indent    $("#front_items").css(    {    'margin-top': '-5px',    'margin-left': '20px'    });      // Size the columns    var textWidth = ($("#carousel").width() - 70) / 3;    $(".front_column").css(    {    'width': textWidth + 'px',    'margin-bottom': '0'    });    }    // One column interface    else    {    $("#front_items").css(    {    'margin-top': '0',    'margin-left': '0'    });      textWidth = $("#carousel").width() + 20;    $(".front_column").css(    {    'width': textWidth + 'px',    'margin-bottom': '5px'    });    }

Downsides of Server-side Scripting + DOM Manipulation

Though this technique, in my opinion, allows for far greater control over design and interactivity versus using CSS3/media queries, it’s not without its potential downsides.

  • No device or browser detection is flawless. The best way to maximize proper device detection is to use a regularly updated library like MobileESP.
  • This solution will not fully function if the user has disabled JavaScript. Although the exceptionally few users that have JavaScript disabled are used to websites not fully functioning, solely using device-specific, CSS media queries is the best option if you want to keep some of the benefits without using JavaScript.
  • This solution requires the maintenance of separate CSS and JavaScript files for each targeted device as opposed to a single CSS file that media queries can afford.

How it Works on Our Website

The navigation menu is the only element on all three versions of the SpotTrot site that has complete variation. So it’s a great talking point to show how this method works in the real-world.

On the desktop, a horizontal menu sits below the header, matching traditional website layout. This allows the user to interact naturally and leaves the visual design of those elements as the main differentiator.

On the tablet, the same horizontal menu is moved above the header. It is then slightly altered, with the corner radius moved to the bottom, to reinforce its positioning at the top of the page. This follows the expected interface of a native mobile application, with all navigation control usually in a bar at the top.

Finally, the phone version displays the highest amount of interface variation. It would be impossible to fit all of the horizontal navigation buttons on most smartphones, so the design opts for a vertical menu. The buttons automatically fit themselves to the width of the screen to maintain the user’s sense of vertical direction, complementing the single column layout for small screens.

Conclusion

Within the last few years, web application design and development has been most affected by touchscreens. The shift of computer interaction to a tactile experience is the core factor in the "mobile revolution."

As touchscreen laptops and desktops are becoming the norm, the interface designs currently implemented on smartphones and tablets will soon be the way all web applications are laid out.

Learning these techniques and philosophies may be optional right now, but it will ultimately be a central part of any web developer’s job description soon.

Related Content

About the Author

Blake Callens is Lead Engineer for mobile e-commerce provider SpotTrot. He’s contributes to e-commerce technology, specifically computer vision and natural user interface UX. He was lead architect/co-inventor of Webcam Social Shopper, is a Webby award winner, and is a co-inventor on an e-commerce U.S. patent for virtual dressing rooms. On Twitter: @blakecallens.

Delicious Digg Evernote Facebook Google Bookmarks LinkedIn StumbleUpon Tumblr Twitter
You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

jeudi 21 mars 2013

Confirm your unsubscription from 'Six Revisions'

Be The First To Comment
To confirm that you no longer wish to receive updates from 'Six Revisions', please click on the following link:

http://blogtrottr.com/unsubscribe/confirm/KSSv7d/3CG1pX


If you weren't expecting to receive this email, then simply ignore it and we'll go away.

dimanche 17 mars 2013

daily tutorial photoshop for Six Revisions

Be The First To Comment
Six Revisions
Winners of SnackTools VIP Memberships
Mar 17th 2013, 10:00

Advertise here with BSA


We recently published a giveaway of SnackTools VIP memberships to celebrate its newest addition: NotifySnack. Three winners were randomly chosen from the comments on the giveaway post. Read this post to find out if you were one of the lucky winners!

The Winners

Here are the three lucky Six Revisions readers who’ve won themselves a 1-year VIP membership to SnackTools.

I’d like to congratulate the winners of our giveaway!

The winners should have already gotten an email from one of the members of the SnackTools team containing information about how to claim their prize.

About NotifySnack

NotifySnack is a powerful tool designed to create beautiful notification widgets for your website.

NotifySnack is part of SnackTools–a suite of web applications designed to simplify the way you create and publish rich media widgets on the Web.

Related Content

About the Author

Jacob Gube is the Founder and Chief Editor of Six Revisions. He’s also a web developer/designer who specializes in front-end development (JavaScript, HTML, CSS) and also a book author. If you’d like to connect with him, head on over to the contact page and follow him on Twitter: @sixrevisions.

Delicious Digg Evernote Facebook Google Bookmarks LinkedIn StumbleUpon Tumblr Twitter
You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions
 

© 2011 Photoshop TUTO - Designed by Mukund | ToS | Privacy Policy | Sitemap

About Us | Contact Us | Write For Us