Kanchan Chauhan | e0818f8 | 2016-04-22 14:39:02 +0530 | [diff] [blame] | 1 | {% extends "templates/web.html" %} |
Anand Doshi | e3bd78e | 2016-04-22 18:53:21 +0530 | [diff] [blame] | 2 | {% from "erpnext/templates/includes/macros.html" import product_image_square %} |
Kanchan Chauhan | e0818f8 | 2016-04-22 14:39:02 +0530 | [diff] [blame] | 3 | |
Anand Doshi | e3bd78e | 2016-04-22 18:53:21 +0530 | [diff] [blame] | 4 | {% block title %}{{ brand_html }}{% endblock %} |
Kanchan Chauhan | e0818f8 | 2016-04-22 14:39:02 +0530 | [diff] [blame] | 5 | |
| 6 | {% block page_content %} |
Kanchan Chauhan | e0818f8 | 2016-04-22 14:39:02 +0530 | [diff] [blame] | 7 | |
| 8 | <div class="row"> |
| 9 | <div class="col-sm-12"> |
Rushabh Mehta | ac123c5 | 2016-05-20 16:36:56 +0530 | [diff] [blame^] | 10 | <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 Doshi | e3bd78e | 2016-04-22 18:53:21 +0530 | [diff] [blame] | 14 | {% if homepage.products %} |
Kanchan Chauhan | 239b351 | 2016-05-02 11:43:44 +0530 | [diff] [blame] | 15 | <div class='featured-products-section' itemscope itemtype="http://schema.org/Product"> |
| 16 | <h5 class='featured-product-heading'>{{ _("Featured Products") }}</h5> |
Anand Doshi | e3bd78e | 2016-04-22 18:53:21 +0530 | [diff] [blame] | 17 | <div class="featured-products"> |
| 18 | <div id="search-list" class="row" style="margin-top:40px;"> |
| 19 | {% for item in homepage.products %} |
Kanchan Chauhan | 239b351 | 2016-05-02 11:43:44 +0530 | [diff] [blame] | 20 | <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 Doshi | e3bd78e | 2016-04-22 18:53:21 +0530 | [diff] [blame] | 25 | </div> |
Kanchan Chauhan | 239b351 | 2016-05-02 11:43:44 +0530 | [diff] [blame] | 26 | </div> |
| 27 | </a> |
Anand Doshi | e3bd78e | 2016-04-22 18:53:21 +0530 | [diff] [blame] | 28 | {% endfor %} |
| 29 | </div> |
| 30 | </div> |
| 31 | <!-- TODO: remove hardcoding of /products --> |
Rushabh Mehta | ac123c5 | 2016-05-20 16:36:56 +0530 | [diff] [blame^] | 32 | <div class="text-center padding"> |
| 33 | <a href="/products" class="btn btn-primary all-products"> |
| 34 | {{ _("View All Products") }}</a></div> |
Kanchan Chauhan | e0818f8 | 2016-04-22 14:39:02 +0530 | [diff] [blame] | 35 | </div> |
Anand Doshi | e3bd78e | 2016-04-22 18:53:21 +0530 | [diff] [blame] | 36 | {% endif %} |
Kanchan Chauhan | e0818f8 | 2016-04-22 14:39:02 +0530 | [diff] [blame] | 37 | </div> |
| 38 | </div> |
| 39 | {% endblock %} |
Anand Doshi | e3bd78e | 2016-04-22 18:53:21 +0530 | [diff] [blame] | 40 | |
| 41 | {% block style %} |
| 42 | <style> |
Rushabh Mehta | ac123c5 | 2016-05-20 16:36:56 +0530 | [diff] [blame^] | 43 | .hero { |
| 44 | padding-top: 50px; |
| 45 | padding-bottom: 100px; |
| 46 | } |
| 47 | |
| 48 | .hero h1 { |
| 49 | font-size: 40px; |
| 50 | font-weight: 200; |
Anand Doshi | e3bd78e | 2016-04-22 18:53:21 +0530 | [diff] [blame] | 51 | } |
Kanchan Chauhan | 239b351 | 2016-05-02 11:43:44 +0530 | [diff] [blame] | 52 | |
| 53 | .home-login { |
| 54 | margin-top: 30px; |
| 55 | } |
| 56 | .btn-login { |
| 57 | width: 80px; |
| 58 | } |
Rushabh Mehta | 4b9238a | 2016-05-12 15:22:59 +0530 | [diff] [blame] | 59 | |
Rushabh Mehta | ac123c5 | 2016-05-20 16:36:56 +0530 | [diff] [blame^] | 60 | .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 Mehta | 4b9238a | 2016-05-12 15:22:59 +0530 | [diff] [blame] | 75 | |
Anand Doshi | e3bd78e | 2016-04-22 18:53:21 +0530 | [diff] [blame] | 76 | </style> |
| 77 | {% endblock %} |