Permalink
Browse files

layout changes for new design and index page changes

  • Loading branch information...
1 parent aa80e6d commit 048680206b86ccb1c6318e9dd059e5d483b319bd @railsfactory-dhibika railsfactory-dhibika committed Apr 27, 2012
@@ -1,7 +1,8 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<%= hook :inside_head do %>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+ <head>
+ <%= hook :inside_head do %>
<%= render :partial => 'shared/head'%>
<% end %>
<%
@@ -12,44 +13,84 @@ else
@body_class = 'one-col'
end
end
-%>
-<body class="<%= @body_class %>" id="<%= @body_id %>">
-<div id="header" class="container_bg main-header" style="float:none;">
-<div class="container">
-<div id="login-bar">
-<ul id="nav-bar">
-<%= render 'shared/nav_bar' %>
-</ul>
-<ul class="search-bar-hme">
-<li id="search-bar">
-<%= render 'shared/search' %>
-</li>
-</ul>
-</div>
-<div class="logo">
-<a href="/"><img alt="" src="/images/saas.png" /></a>
-</div>
-</div>
-</div>
-<div id="wrapper" class="container">
-<% if content_for?(:sidebar) %>
-<div id="sidebar">
-<%= hook :sidebar do %>
-<%= yield :sidebar %>
-<% end %>
-</div>
-<% end %>
-<div id="content">
-<%= breadcrumbs(@taxon) if @taxon %>
-<% if flash.notice %>
-<div class="flash notice"><%= flash.notice %></div>
-<% end %>
-<% if flash[:error] %>
-<div class="flash errors"><%= flash[:error] %></div>
-<% end %>
-<%= yield %>
-</div>
-<%= render :partial => 'shared/footer'%>
-</div>
-</body>
+%>
+ <body class="<%= @body_class %>" id="<%= @body_id %>">
+ <div class="wrapper">
+ <div class="mainwrapper">
+ <div class="header">
+ <div class="logo">
+ <h1>
+ <a href="#">Home</a>
+ </h1>
+ </div>
+ <div class="tophead">
+ <div class="topsection">
+ <div class="global-nav">
+ <ul>
+ <li><a href="#">Home</a></li>
+ <li><a href="#">Service</a></li>
+ <li><a href="#">About us</a></li>
+ </ul>
+ </div>
+ <div class="cartinfo">
+ <ul>
+ <%= render 'shared/nav_bar' %>
+ </ul>
+ </div>
+ </div>
+ <div class="product-search">
+ <%=render 'shared/search'%>
+ </div>
+ </div>
+ </div><!-- header -->
+ <div class="body-container clearfix">
+ <div class="asidepanel">
+ <div class="sidenav">
+ <% if content_for?(:sidebar) %>
+ <%= hook :sidebar do %>
+ <%= yield :sidebar %>
+ <% end %>
+ <% end %>
+
+ </div><!-- sidenav -->
+ <div class="promo-banner">
+ <img src="/images/promo-banner.png" alt="" />
+ </div>
+ </div>
+ <div class="contpanel">
+ <div class="slider">
+ <img src="/images/slider01.png" alt="" />
+ </div><!-- slider -->
+ <%=yield%>
+ <div class="brands">
+ <h4 class="sechead">BRANDS</h4>
+ <div class="sroll-mid">
+ <div class="brand-list">
+ <ul id="mycarousel" class="jcarousel-skin-tango">
+ <li><a href="#"><img src="/images/logo-adidas.png"></a></li>
+ <li><a href="#"><img src="/images/logo-puma.png"></a></li>
+ <li><a href="#"><img src="/images/logo-peter-ingland.png"></a></li>
+ <li><a href="#"><img src="/images/logo-levis.png"></a></li>
+ <li><a href="#"><img src="/images/logo-nike.png"></a></li>
+ <li><a href="#"><img src="/images/logo-pepe-jean.png"></a></li>
+ </ul>
+ </div>
+ </div>
+ </div>
+ <!-- brands -->
+ </div>
+ </div><!-- body container -->
+ <div class="footer">
+ <p class="copy-rights">Copyright &copy; 2012 <a href="http://www.railsfactory.org" target="_blank">Railsfactory</a>. All Rights Reserved</p>
+ <ul>
+ <li><a href="">Home</a></li><li>|</li>
+ <li><a href="">About Us</a></li><li>|</li>
+ <li><a href="">Contact Us</a></li><li>|</li>
+ <li><a href="">Privacy</a></li><li>|</li>
+ <li><a href="">Terms &amp; Conditions</a></li>
+ </ul>
+ </div>
+ </div>
+ </div>
+ </body>
</html>
@@ -2,28 +2,34 @@
paginated_products = @searcher.products if params.key?(:keywords)
paginated_products ||= products
%>
-<% if products.empty? %>
- <%= t(:no_products_found) %>
-<% elsif params.key?(:keywords) %>
- <h3><%= t(:search_results, :keywords => h(params[:keywords])) %></h3>
-<% end %>
<% if products.any? %>
-<h2 class="title-pro">Products</h2>
-<ul id="products" class="product-listing">
-<%stock_val=find_stock_value("show_zero_stock_products")%>
- <% products.each do |product| %>
- <% if stock_val || product.has_stock? %>
- <li id="product_<%= product.id %>" data-hook="products_list_item">
- <div class="pro-image"><%= link_to small_image(product), product %></div>
- <div class="pro-name"><%= link_to product.name.capitalize, product, :class => 'info' %></div>
- <div class="price-selling"><span class=""><%= product_price(product) %></span></div>
- </li>
- <% end %>
- <% end %>
-</ul>
-<% end %>
+ <div class="collections">
+ <h4 class="sechead">LATEST COLLECTIONS</h4>
+ <%stock_val=find_stock_value("show_zero_stock_products")%>
+ <div class="collection-img-wrap products">
+ <% products.each do |product| %>
+ <% if stock_val || product.has_stock? %>
+ <div class="coll-left">
+ <div id="product_<%= product.id %>" data-hook="products_list_item">
+
+ <div class="coll-img"><a href=""><%= link_to small_image(product), product %></a></div>
+ <div class="coll-info">
+ <div class="item-name"><%=product.name.capitalize%></div>
+ <div class="price-enlarge-buy">
+ <p class="price"><span></span><%= product_price(product) %></p>
+ <%= link_to "BUY-IT", product,:class=>"buy-it"%>
+ </div>
+ </div>
+ </div>
+ </div>
+ <% end %>
+ <% end %>
+
+ </div><!--collection-img-wrap-->
+ </div>
+<% end %>
<% if paginated_products.respond_to?(:total_pages)
params.delete(:search)
@@ -32,5 +38,4 @@
%><%= will_paginate(paginated_products,
:previous_label => "&#171; #{t('previous')}",
:next_label => "#{t('next')} &#187;") %>
-<% end %>
-
+<% end %>
@@ -1,14 +1,24 @@
<%unless (request.url.include?(APP_CONFIG['domain_url']) || request.url.include?(APP_CONFIG['secure_domain_url']))%>
<% @taxons = @taxon && @taxon.parent ? @taxon.parent.children : get_taxons(current_subdomain) %>
<%= form_tag products_url, :method => :get do %>
- <span style="text-align:center;">
- <%= select_tag :taxon,
+
+<div class="prod-search-form">
+ <div class="search-head">Product Search</div>
+ <div class="sfield">
+ <%= select_tag :taxon,
options_for_select([[t(:all_departments), '']] +
@taxons.map {|t| [t.name, t.id]},
- @taxon ? @taxon.id : params[:taxon]) %>
- <%= text_field_tag :keywords, params[:keywords] %>
- <%= submit_tag t(:search),:class=>"search_btn" ,:name => nil %></span>
+ @taxon ? @taxon.id : params[:taxon]) ,:class=>"product-select"%>
+
+ </div>
+ <div class="sfield">
+ <%= text_field_tag :keywords, params[:keywords],:html=>{:class=>"search_input"} %>
+ </div>
+ <div class="sbutton">
+ <%= submit_tag t(:search),:class=>"sbtn-submit" ,:name => nil %>
+ </div>
+ </div>
+
<% end %>
<% end %>
-
-
+
@@ -1,4 +1,6 @@
-<li id="home-link"><%= link_to t("home") , root_path %></li>
<%unless (request.url.include?(APP_CONFIG['domain_url']) || request.url.include?(APP_CONFIG['secure_domain_url']))%>
-<li id="link-to-cart"><%= link_to_cart %></li>
+ <li class="cart-detail"><%= link_to_cart %></li>
<% end %>
+ <li class="login"><%= link_to t("home") , root_path %></li>
+
+
@@ -1,13 +1,16 @@
<div id="taxonomies" class="sidebar-item">
- <ul class="navigation-list">
- <h2>categories</h2>
- <% get_taxonomies(current_subdomain).each do |taxonomy| %>
+ <h4 class="sechead">PRODUCT CATEGORIES</h4>
+ <div class="prolist">
+ <ul>
+ <% get_taxonomies(current_subdomain).each do |taxonomy| %>
<li<%== ' class="current"' if @taxon && @taxon == taxonomy.root %>>
- <%= link_to t("shop_by_taxonomy", :taxonomy => taxonomy.name.capitalize), seo_url(taxonomy.root),
- :class => 'root' %>
+ <%= link_to t("shop_by_taxonomy", :taxonomy => taxonomy.name.capitalize), seo_url(taxonomy.root),:class => 'root' %>
</li>
<% end %>
- </ul>
+ </ul>
+ </div>
+
</div>
+

0 comments on commit 0486802

Please sign in to comment.