blob: 56bf019778b388690593669293fac89d3fa70f5f [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
Anand Doshie3bd78e2016-04-22 18:53:21 +05304{% block title %}{{ brand_html }}{% endblock %}
Kanchan Chauhane0818f82016-04-22 14:39:02 +05305
6{% block page_content %}
Kanchan Chauhane0818f82016-04-22 14:39:02 +05307
8<div class="row">
9 <div class="col-sm-12">
Rushabh Mehtaac123c52016-05-20 16:36:56 +053010 <div class="hero">
11 <h1 class="text-center">{{ homepage.tag_line or '' }}</h1>
12 <p class="text-center">{{ homepage.description or '' }}</p>
13 </div>
Anand Doshie3bd78e2016-04-22 18:53:21 +053014 {% if homepage.products %}
Kanchan Chauhan239b3512016-05-02 11:43:44 +053015 <div class='featured-products-section' itemscope itemtype="http://schema.org/Product">
16 <h5 class='featured-product-heading'>{{ _("Featured Products") }}</h5>
Anand Doshie3bd78e2016-04-22 18:53:21 +053017 <div class="featured-products">
18 <div id="search-list" class="row" style="margin-top:40px;">
19 {% for item in homepage.products %}
Kanchan Chauhan239b3512016-05-02 11:43:44 +053020 <a class="product-link" href="{{ item.route|abs_url }}">
21 <div class="col-sm-4 col-xs-4 product-image-wrapper">
22 <div class="product-image-img">
23 {{ product_image_square(item.thumbnail or item.image) }}
24 <div class="product-text" itemprop="name">{{ item.item_name }}</div>
Anand Doshie3bd78e2016-04-22 18:53:21 +053025 </div>
Kanchan Chauhan239b3512016-05-02 11:43:44 +053026 </div>
27 </a>
Anand Doshie3bd78e2016-04-22 18:53:21 +053028 {% endfor %}
29 </div>
30 </div>
31 <!-- TODO: remove hardcoding of /products -->
Rushabh Mehtaac123c52016-05-20 16:36:56 +053032 <div class="text-center padding">
33 <a href="/products" class="btn btn-primary all-products">
34 {{ _("View All Products") }}</a></div>
Kanchan Chauhane0818f82016-04-22 14:39:02 +053035 </div>
Anand Doshie3bd78e2016-04-22 18:53:21 +053036 {% endif %}
Kanchan Chauhane0818f82016-04-22 14:39:02 +053037 </div>
38</div>
39{% endblock %}
Anand Doshie3bd78e2016-04-22 18:53:21 +053040
41{% block style %}
42<style>
Rushabh Mehtaac123c52016-05-20 16:36:56 +053043 .hero {
44 padding-top: 50px;
45 padding-bottom: 100px;
46 }
47
48 .hero h1 {
49 font-size: 40px;
50 font-weight: 200;
Anand Doshie3bd78e2016-04-22 18:53:21 +053051 }
Kanchan Chauhan239b3512016-05-02 11:43:44 +053052
53 .home-login {
54 margin-top: 30px;
55 }
56 .btn-login {
57 width: 80px;
58 }
Rushabh Mehta4b9238a2016-05-12 15:22:59 +053059
Rushabh Mehtaac123c52016-05-20 16:36:56 +053060 .featured-product-heading, .all-products {
61 text-transform: uppercase;
62 letter-spacing: 0.5px;
63 font-size: 12px;
64 font-weight: 500;
65 }
66
67 .all-products {
68 font-weight: 300;
69 padding-left: 25px;
70 padding-right: 25px;
71 padding-top: 10px;
72 padding-bottom: 10px;
73 }
74
Rushabh Mehta4b9238a2016-05-12 15:22:59 +053075
Anand Doshie3bd78e2016-04-22 18:53:21 +053076</style>
77{% endblock %}