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 | |
Kanchan Chauhan | e0818f8 | 2016-04-22 14:39:02 +0530 | [diff] [blame] | 4 | {% block page_content %} |
Kanchan Chauhan | e0818f8 | 2016-04-22 14:39:02 +0530 | [diff] [blame] | 5 | |
| 6 | <div class="row"> |
| 7 | <div class="col-sm-12"> |
Rushabh Mehta | ac123c5 | 2016-05-20 16:36:56 +0530 | [diff] [blame] | 8 | <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 Doshi | e3bd78e | 2016-04-22 18:53:21 +0530 | [diff] [blame] | 12 | {% if homepage.products %} |
Kanchan Chauhan | 239b351 | 2016-05-02 11:43:44 +0530 | [diff] [blame] | 13 | <div class='featured-products-section' itemscope itemtype="http://schema.org/Product"> |
| 14 | <h5 class='featured-product-heading'>{{ _("Featured Products") }}</h5> |
Anand Doshi | e3bd78e | 2016-04-22 18:53:21 +0530 | [diff] [blame] | 15 | <div class="featured-products"> |
| 16 | <div id="search-list" class="row" style="margin-top:40px;"> |
| 17 | {% for item in homepage.products %} |
Kanchan Chauhan | 239b351 | 2016-05-02 11:43:44 +0530 | [diff] [blame] | 18 | <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 Doshi | e3bd78e | 2016-04-22 18:53:21 +0530 | [diff] [blame] | 23 | </div> |
Kanchan Chauhan | 239b351 | 2016-05-02 11:43:44 +0530 | [diff] [blame] | 24 | </div> |
| 25 | </a> |
Anand Doshi | e3bd78e | 2016-04-22 18:53:21 +0530 | [diff] [blame] | 26 | {% endfor %} |
| 27 | </div> |
| 28 | </div> |
Rushabh Mehta | ac123c5 | 2016-05-20 16:36:56 +0530 | [diff] [blame] | 29 | <div class="text-center padding"> |
Rushabh Mehta | 9d1b56f | 2016-08-29 11:03:10 +0530 | [diff] [blame] | 30 | <a href="{{ homepage.products_url or "/products" }}" class="btn btn-primary all-products"> |
Rushabh Mehta | ac123c5 | 2016-05-20 16:36:56 +0530 | [diff] [blame] | 31 | {{ _("View All Products") }}</a></div> |
Kanchan Chauhan | e0818f8 | 2016-04-22 14:39:02 +0530 | [diff] [blame] | 32 | </div> |
Anand Doshi | e3bd78e | 2016-04-22 18:53:21 +0530 | [diff] [blame] | 33 | {% endif %} |
Kanchan Chauhan | e0818f8 | 2016-04-22 14:39:02 +0530 | [diff] [blame] | 34 | </div> |
| 35 | </div> |
| 36 | {% endblock %} |
Anand Doshi | e3bd78e | 2016-04-22 18:53:21 +0530 | [diff] [blame] | 37 | |
| 38 | {% block style %} |
| 39 | <style> |
Rushabh Mehta | ac123c5 | 2016-05-20 16:36:56 +0530 | [diff] [blame] | 40 | .hero { |
| 41 | padding-top: 50px; |
| 42 | padding-bottom: 100px; |
| 43 | } |
| 44 | |
| 45 | .hero h1 { |
| 46 | font-size: 40px; |
| 47 | font-weight: 200; |
Anand Doshi | e3bd78e | 2016-04-22 18:53:21 +0530 | [diff] [blame] | 48 | } |
Kanchan Chauhan | 239b351 | 2016-05-02 11:43:44 +0530 | [diff] [blame] | 49 | |
| 50 | .home-login { |
| 51 | margin-top: 30px; |
| 52 | } |
| 53 | .btn-login { |
| 54 | width: 80px; |
| 55 | } |
Rushabh Mehta | 4b9238a | 2016-05-12 15:22:59 +0530 | [diff] [blame] | 56 | |
Rushabh Mehta | ac123c5 | 2016-05-20 16:36:56 +0530 | [diff] [blame] | 57 | .featured-product-heading, .all-products { |
| 58 | text-transform: uppercase; |
| 59 | letter-spacing: 0.5px; |
| 60 | font-size: 12px; |
| 61 | font-weight: 500; |
| 62 | } |
| 63 | |
| 64 | .all-products { |
| 65 | font-weight: 300; |
| 66 | padding-left: 25px; |
| 67 | padding-right: 25px; |
| 68 | padding-top: 10px; |
| 69 | padding-bottom: 10px; |
| 70 | } |
| 71 | |
Rushabh Mehta | 4b9238a | 2016-05-12 15:22:59 +0530 | [diff] [blame] | 72 | |
Anand Doshi | e3bd78e | 2016-04-22 18:53:21 +0530 | [diff] [blame] | 73 | </style> |
| 74 | {% endblock %} |