blob: 790a430e378775f7a4dd5fba3497708ee3838074 [file] [log] [blame]
Kanchan Chauhane0818f82016-04-22 14:39:02 +05301{% extends "templates/web.html" %}
Anand Doshie3bd78e2016-04-22 18:53:21 +05302{% from "erpnext/templates/includes/macros.html" import product_image_square %}
Kanchan Chauhane0818f82016-04-22 14:39:02 +05303
Kanchan Chauhane0818f82016-04-22 14:39:02 +05304{% block page_content %}
Kanchan Chauhane0818f82016-04-22 14:39:02 +05305
6<div class="row">
7 <div class="col-sm-12">
Rushabh Mehtaac123c52016-05-20 16:36:56 +05308 <div class="hero">
9 <h1 class="text-center">{{ homepage.tag_line or '' }}</h1>
10 <p class="text-center">{{ homepage.description or '' }}</p>
11 </div>
Anand Doshie3bd78e2016-04-22 18:53:21 +053012 {% if homepage.products %}
Kanchan Chauhan239b3512016-05-02 11:43:44 +053013 <div class='featured-products-section' itemscope itemtype="http://schema.org/Product">
14 <h5 class='featured-product-heading'>{{ _("Featured Products") }}</h5>
Anand Doshie3bd78e2016-04-22 18:53:21 +053015 <div class="featured-products">
16 <div id="search-list" class="row" style="margin-top:40px;">
17 {% for item in homepage.products %}
Kanchan Chauhan239b3512016-05-02 11:43:44 +053018 <a class="product-link" href="{{ item.route|abs_url }}">
19 <div class="col-sm-4 col-xs-4 product-image-wrapper">
20 <div class="product-image-img">
21 {{ product_image_square(item.thumbnail or item.image) }}
22 <div class="product-text" itemprop="name">{{ item.item_name }}</div>
Anand Doshie3bd78e2016-04-22 18:53:21 +053023 </div>
Kanchan Chauhan239b3512016-05-02 11:43:44 +053024 </div>
25 </a>
Anand Doshie3bd78e2016-04-22 18:53:21 +053026 {% endfor %}
27 </div>
28 </div>
29 <!-- TODO: remove hardcoding of /products -->
Rushabh Mehtaac123c52016-05-20 16:36:56 +053030 <div class="text-center padding">
31 <a href="/products" class="btn btn-primary all-products">
32 {{ _("View All Products") }}</a></div>
Kanchan Chauhane0818f82016-04-22 14:39:02 +053033 </div>
Anand Doshie3bd78e2016-04-22 18:53:21 +053034 {% endif %}
Kanchan Chauhane0818f82016-04-22 14:39:02 +053035 </div>
36</div>
37{% endblock %}
Anand Doshie3bd78e2016-04-22 18:53:21 +053038
39{% block style %}
40<style>
Rushabh Mehtaac123c52016-05-20 16:36:56 +053041 .hero {
42 padding-top: 50px;
43 padding-bottom: 100px;
44 }
45
46 .hero h1 {
47 font-size: 40px;
48 font-weight: 200;
Anand Doshie3bd78e2016-04-22 18:53:21 +053049 }
Kanchan Chauhan239b3512016-05-02 11:43:44 +053050
51 .home-login {
52 margin-top: 30px;
53 }
54 .btn-login {
55 width: 80px;
56 }
Rushabh Mehta4b9238a2016-05-12 15:22:59 +053057
Rushabh Mehtaac123c52016-05-20 16:36:56 +053058 .featured-product-heading, .all-products {
59 text-transform: uppercase;
60 letter-spacing: 0.5px;
61 font-size: 12px;
62 font-weight: 500;
63 }
64
65 .all-products {
66 font-weight: 300;
67 padding-left: 25px;
68 padding-right: 25px;
69 padding-top: 10px;
70 padding-bottom: 10px;
71 }
72
Rushabh Mehta4b9238a2016-05-12 15:22:59 +053073
Anand Doshie3bd78e2016-04-22 18:53:21 +053074</style>
75{% endblock %}