Photoshop Trikovi
Photoshop Trikovi
Photoshop Trikovi
I recommend you to sketch before create your web design using Photoshop; its the first important step. Imprint your ideas, on how the layout should be, on a blank sheet to keep in mind your objective during the entire design process. Below you can see my sketch for this project, Download.Movie.
Duplicate and rasterize the layer just created and add a noise filter (Filter>Noise>Add Noise).
Use again the Rectangle Tool to draw a rectangular shape (heigh 4-5 pixels, color #162850), select the Rounded Rectangle Tool with a radius of 10px and add a little shape (make sure to select the option Add to shape area) as shown.
Draw a 1px line, using Drop Shadow, in order to add depth as shown in the images below.
Step 2 Logo
On the top-left side of the page we add the logo. To create a soft light effect for the background, you can use the Elliptical Marquee Tool creating 2 white layers with a Gaussian Blur Filter (Filter>Blur>Add Noise) and an opacity of 50% for the first layer and of 20% for the second layer.
Now add other 3 layer, but this time set fill to 0% and add a Gradient Overlay for each layer as shown below in the images.
Using Rounded Rectangle Tool draw a small square (hold down Shift to draw a perfect square), then with the Custom Shape Tool draw a little arrow as shown. Rasterize the two layers and use the arrow to cut out an arrow from the square. Then resize and transform the custom shape as shown.
Now with Type Tool write the name of the company, then add the same style that we have just used for our icon.
Now its time to create an attractive box for describing the quality of the service and to engage new users. Add a rectangular shape on the right, then set the Fill to 0% and add a nice style a Gradient Overlay and a Drop Shadow to create a nice box, see below for the details.
Add some text, use Dejavu Sans (30 pt, white) for the title and Lucida Sans (12 pt, #0b537f) for the paragraph. Draw a rounded rectangular shape (radius 2px, color #6fc630), right-click on the rectangle and rotate it, finally add a layer mask to obtain the following result.
Add two call-to-action buttons, orange and blue, through Rectangle Tool make them precious using Bevel and Emboss and Gradient Overlay as shown.
Add the descriptions for the buttons, fell free to use a soft Gradient Overlay (use a green color for the green button and so on) and a subtle Drop Shadow to create the following effect.
I dont want to annoy you with redundant stuff. Its clear that you can utilize the techniques used for the header to realize the elements of this section. Some examples? The two screenshots in the Coming soon on Download.Movie section are made using the same steps that we have followed during the creation of the screenshot for the down-header, there is only a difference: you have to add a Color Overlay (from Styles; color black, Opacity 30%). The play button is a mix of two shapes like in the logo, once rasterized the icon you have to add only a black Drop Shadow and to set the right value of Opacity for the layer (70%). Again, for read more buttons you have to remember what we have done previously with call-to-action buttons, now instead of orange, green and blue, use light grey. Just the last advice, make use of the 12 Col Grid layer and of Photoshops guides to balance your contents.
Add a soft Gradient Overlay to the dark blue layer then rasterize all layers and a add a subtle noise effect. Ive decided to not add the noise effect for the credits background.
Finally add some lists with useful links (to create the points for the list items draw a little circle using Ellipse Tool hold down Shift, color #cfdcf8 and set Opacity to 20%, the duplicate the layer) and a description box (for the read more button use the same technique tah we have just applied for the points, the font is Lucida Sans). Add the credits and the psd mockup is complete.
PSD-to-HTML conversion
Now its time to create the HTML/CSS structure, this begins understanding the main structure of the layout.
<meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <link rel="stylesheet" href="style.css" media="screen" /> </head> <body>
</body> </html>
Now, according with the structure displayed in the above image, we can write the basic html structure.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Download.Movie - A great database of movies</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <link rel="stylesheet" href="style.css" media="screen" /> <script src="jquery.js" type="text/javascript"></script> </head> <body>
<div id="top_background">
<div class="main_container">
<div class="top_bar">
</div>
<div class="header">
</div>
<div class="tagline">
</div>
<div class="content">
<div class="left_content">
</div>
<div class="right_content">
</div>
</div>
</div>
</div>
</div>
<div class="footer">
</div>
</body> </html>
html, body, div, span, h1, h2, h3, h4, h5, h6, p, img, ul, li, fieldset, form, label { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; verticalalign: baseline; background: transparent; }
:focus { outline: 0; }
The markup for the top-bar and the header, we use unordered lists for the menu and h1 for the logo.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Download.Movie - A great database of movies</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <link rel="stylesheet" href="style.css" media="screen" /> <script src="jquery.js" type="text/javascript"></script> </head> <body>
<div id="top_background">
<div class="main_container">
<div class="top_bar"> <ul class="login"> <li><a href="#">login |</a></li> <li><a href="#">sign-up</a></li> </ul> </div>
<ul class="navigation"> <li><a href="#">Home</a></li> <li><a href="#">About us</a></li> <li><a href="#">Products</a></li> <li><a href="#">Support</a></li> </ul> </div>
<div class="tagline">
</div>
<div class="content">
<div class="left_content">
</div>
<div class="right_content">
</div>
</div>
</div>
</div>
</div>
<div class="footer">
</div>
</body> </html>
And now the CSS rules. Note that we add the support for @font-face, importing the font Dejavu that we will use in the down-header section.
* General */
body { background: #f9f9f9; font: 12px "Lucida Sans Unicode", sans-serif; lineheight: 1.5em; color: #555; }
a { text-decoration: none; }
background:
/* Main-container classes */
.top_bar { float: right; position: relative; top: 0px; right: -11px; width: 101px; height: 24px; background: url(images/login_bck.jpg) no-repeat; padding-left: 11px; }
ul.login li { display: inline; padding-left: 2px; ul.login li a { color: #f2f2f2; font-size: 10px; } ul.login li a:hover { color: #89c0dd; }
.header { clear: both; height: 80px; margin-bottom: 53px; } .logo { float: left } .logo h1 a { display: block; width: 345px; height: 50px; background: url(images/logo.png) no-repeat; text-indent: -9999px; margin: 16px 0 0 40px; }
ul.navigation { float: right; margin: 30px 40px 0 0; } ul.navigation li { display: inline; margin-left: 30px; }
ul.navigation li a { color: #fff; font-size: 14px; text-shadow: 1px 1px 0px #155479; } ul.navigation li a:hover { text-decoration: underline; }
For the elements contained into the main-box we will use the following images.
Now take a look at the markup for the entire main-box section.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Download.Movie - A great database of movies</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <link rel="stylesheet" href="style.css" media="screen" /> <script src="jquery.js" type="text/javascript"></script> </head> <body>
<div id="top_background">
<div class="main_container">
<div class="top_bar"> <ul class="login"> <li><a href="#">login |</a></li> <li><a href="#">sign-up</a></li> </ul> </div>
<ul class="navigation"> <li><a href="#">Home</a></li> <li><a href="#">About us</a></li> <li><a href="#">Products</a></li> <li><a href="#">Support</a></li> </ul> </div>
<div class="main_box"> <div class="slide"> <img src="images/screenshot1.jpg" alt="screenshot" /> <img src="images/screenshot1_2.jpg" alt="screenshot" /> <img src="images/screenshot1_3.jpg" alt="screenshot" /> </div>
<span class="know_more_green"><a href="#"></a></span> <p>The use of commerce is conducted in this way, spurring and drawing on innovations in electronic funds transfer, supply chain management.</p> <span class="cta_browse"><a href="#"></a></span> <span class="cta_signup"><a href="#"></a></span> </div>
<div class="content">
<div class="left_content"> <h3>Featured entries this week</h3> <p>We want to provide only high-quality DVD movies to our members. High-quality, easy-to-find: the best of the week.</p> <ul> <li><img src="images/screenshot2.jpg" alt="screenshot" /><h4 class="orange"><a href="#">The first movie this week</a></h4><p>The group sets out for the treasure. They walk to Pete's cousin's house</p><span class="details">dur. 110 | action | 2011 | <a href="#">more...</a></span></li> <li><img src="images/screenshot3.jpg" alt="screenshot" /><h4 class="green"><a href="#">The first movie this week</a></h4><p>The group sets out for the treasure. They walk to Pete's cousin's house</p><span class="details">dur. 110 | action | 2011 | <a href="#">more...</a></span></li> <li><img src="images/screenshot4.jpg" alt="screenshot" /><h4 class="cyan"><a href="#">The first movie this week</a></h4><p>The group sets out for the treasure. They walk to Pete's cousin's house. </p><span class="details">dur. 110 | action | 2011 | <a href="#">more...</a></span></li> </ul> </div>
<div class="right_content">
<a href="#"><img src="images/screenshot5.jpg" alt="screenshot" /></a> <span class="meta_info meta_orange">action | 12.04.2010</span> <h4 class="orange"><a href="#">A new movie is coming on our website</a></h4> <p>Rumpelstiltskin tricks a mid-life crisis burdened Sdrok into allowing himself to be erased from existence and cast in a dark alternate...</p> <span class="trailer_more"><a href="#"></a></span> </div>
<div class="box_trailer"> <a href="#"><img src="images/screenshot6.jpg" alt="screenshot" /></a> <span class="meta_info meta_green">drama | 12.04.2010</span> <h4 class="green"><a href="#">Another movie downloadable</a></h4> <p>Work causes a single mother to move to China with her young son; in his new home, the boy embraces kung fu, taught to him by a master.</p> <span class="trailer_more"><a href="#"></a></span> </div>
</div>
</div>
</div>
</div>
</div>
<div class="footer">
</div>
</body> </html>
Now activate the slider adding the following lines of code just above the </body> tag.
<script type="text/javascript"> $(document).ready(function() { $('.slide').cycle({ fx: 'fade', speed: 1500,
.slide { background: #fff; -moz-border-radius: 10px; -khtml-border-radius: 10px; -webkit-border-radius: 10px; border-radius: 10px; -moz-box-shadow: 0px 0px 5px rgba(1, 10, 18, 0.45); -khtml-box-shadow: 0px 0px 5px rgba(1, 10, 18, 0.45); webkit-box-shadow: 0px 0px 5px rgba(1, 10, 18, 0.45); box-shadow: 0px 0px 5px rgba(1, 10, 18, 0.45); width: 560px; height: 274px; display: block; float: left; margin-bottom: 40px; } .slide img { padding: 10px; }
.tagline { background: url(images/slog_bck.png) no-repeat; float: left; width: 370px; margin: 25px 0 0 30px; } .tagline h2 { font-family: 'DejaVuSansCondensedBook'; color: #fff; textshadow: 1px 1px 0px #0f334f; font-size: 23px; line-height: 26px; font-weight: normal; letter-spacing: -1px; width: 300px; padding: 10px;} .tagline p { margin-top: 40px; padding-left: 10px; color: #0b537f; }
.know_more_green a { float: right; display: block; position: relative; top: -55px; right: -6px; width: 86px; height: 74px; background: url(images/know_more_green.png) no-repeat; }
.cta_browse a { display: block; width: 168px; height: 56px; background: url(images/cta_blu.jpg) no-repeat 0px 0px; float: left; margin: 26px 0 0 10px;} .cta_browse a:hover { background-position: 0px -56px; } .cta_signup a { display: block; width: 168px; height: 56px; background: url(images/cta_orange.jpg) no-repeat 0px 0px; float: left; margin: 26px 0 0 24px; } .cta_signup a:hover { background-position: 0px -56px; }
.orange a:hover { color: #ff9e05; text-decoration: underline; } .green a:hover { color: #74d82b; text-decoration: underline; } .cyan a:hover { color: #2fb4e0; text-decoration: underline; }
.content h3 { font-size: 20px; color: #0b537f; font-weight: normal; border-bottom: 1px solid #e0e0e0; padding-bottom: 10px; margin-bottom: 20px; } .left_content ul { margin-top: 25px; }
.left_content ul li { border-bottom: 1px solid #e0e0e0; paddingbottom: 8px; margin-bottom: 15px; font-size: 11px; line-height: 16px; color: #757474; } .left_content ul li img { float: left; margin-right: 10px; } span.details { font-size: 10px; color: #a8a8a8; span.details a { color: #333; } span.details a:hover { text-decoration: underline; } }
.box_trailer { clear: both; } .box_trailer img { background: #fefefe; padding: 5px; -moz-box0px 0px 3px rgba(51, 51, 51, 0.35); -khtml-box-shadow: 0px 0px 3px rgba(51, 0.35); -webkit-box-shadow: 0px 0px 3px rgba(51, 51, 51, 0.35); box-shadow: 3px rgba(51, 51, 51, 0.35); float: left; z-index: 100; position: relative; 0 15px 30px 0; }
span.meta_info { padding: 1px 6px; color: #fefefe; z-index: 99; margin-top: 18px; position: relative; top: 8px; left: -15px; font-size: 10px; } .meta_green { background: #5a9e28; } .meta_orange { background: #ed7d0f; } .box_trailer h4 { font-size: 16px; font-weight: normal; margin: 20px 0 10px 0; } span.trailer_more a { display: block; width: 83px; height: 19px; background: url(images/more.jpg) no-repeat 0px 0px; float: right; margin-top: 10px; } span.trailer_more a:hover { background-position: 0px -19px; }
<div class="footer">
<div class="foot_cont"> <div class="foot_col"> <h3>Resources for you</h3> <ul> <li><a href="#">Browse our database</a></li> <li><a href="#">Read our magazine</a></li> <li><a href="#">Job opportunities</a></li> <li><a href="#">Support</a></li> </ul> </div>
<div class="foot_col"> <h3>Our network</h3> <ul> <li><a href="#">Download.TvSeries</a></li> <li><a href="#">Download.Music</a></li> <li><a href="#">Download.Book</a></li> <li><a href="#">Download.Apps</a></li> <li><a href="#">Download.Games</a></li> </ul> </div>
<div class="foot_col"> <h3>Connect with us</h3> <ul> <li><a href="#">Twitter</a></li> <li><a href="#">Facebook</a></li> <li><a href="#">FriendFeed</a></li> </ul> </div>
<div class="foot_col last_col"> <h3>Our mission</h3> <p>We want to provide only hidh-quality DVD movies to our members. High-quality, easy-to-find: the best of the week.</p> <span class="about_but"><a href="#">Read more about us</a></span> </div> </div>
</div>
Use the following css lines of code to enhance the style of the footer.
/* Footer */
.foot_col { float: left; width: 220px; margin: 45px 20px 0 0; } .last_col { margin-right: 0px; width: 240px; }
.foot_col h3 { color: #cfdcf8; font-size: 14px; fontweight: normal; } .foot_col ul { margin: 10px 0 0 10px; } .foot_col ul li { padding: 4px 0 4px 20px; background: url(images/list.png) no-repeat 0px 7px; } .foot_col ul li a { color: #f1f3f8; font-size: 12px; } .foot_col ul li a:hover { color: #89c0dd; }
span.about_but a { color: #cfdcf8; padding: 2px 5px; background: #3e5077; -moz-border-radius: 3px; margin-top: 10px; float: right; fontsize: 10px;} span.about_but a:hover { background: #4e6188; color: #fff; }