76 lines
1.8 KiB
HTML
Raw Normal View History

2016-04-22 14:39:02 +05:30
{% extends "templates/web.html" %}
2016-04-22 18:53:21 +05:30
{% from "erpnext/templates/includes/macros.html" import product_image_square %}
2016-04-22 14:39:02 +05:30
{% block page_content %}
<div class="row">
<div class="col-sm-12">
2016-05-20 16:36:56 +05:30
<div class="hero">
<h1 class="text-center">{{ homepage.tag_line or '' }}</h1>
<p class="text-center">{{ homepage.description or '' }}</p>
</div>
2016-04-22 18:53:21 +05:30
{% if homepage.products %}
2016-05-02 11:43:44 +05:30
<div class='featured-products-section' itemscope itemtype="http://schema.org/Product">
<h5 class='featured-product-heading'>{{ _("Featured Products") }}</h5>
2016-04-22 18:53:21 +05:30
<div class="featured-products">
<div id="search-list" class="row" style="margin-top:40px;">
{% for item in homepage.products %}
2016-05-02 11:43:44 +05:30
<a class="product-link" href="{{ item.route|abs_url }}">
<div class="col-sm-4 col-xs-4 product-image-wrapper">
<div class="product-image-img">
2018-04-25 13:03:11 +05:30
<!-- thumbnail not updated, and used as background image in item card -->
{{ product_image_square(item.image) }}
2016-05-02 11:43:44 +05:30
<div class="product-text" itemprop="name">{{ item.item_name }}</div>
2016-04-22 18:53:21 +05:30
</div>
2016-05-02 11:43:44 +05:30
</div>
</a>
2016-04-22 18:53:21 +05:30
{% endfor %}
</div>
</div>
2016-05-20 16:36:56 +05:30
<div class="text-center padding">
<a href="{{ homepage.products_url or "/products" }}" class="btn btn-primary all-products">
2016-05-20 16:36:56 +05:30
{{ _("View All Products") }}</a></div>
2016-04-22 14:39:02 +05:30
</div>
2016-04-22 18:53:21 +05:30
{% endif %}
2016-04-22 14:39:02 +05:30
</div>
</div>
{% endblock %}
2016-04-22 18:53:21 +05:30
{% block style %}
<style>
2016-05-20 16:36:56 +05:30
.hero {
padding-top: 50px;
padding-bottom: 100px;
}
.hero h1 {
font-size: 40px;
font-weight: 200;
2016-05-02 11:43:44 +05:30
}
.home-login {
margin-top: 30px;
}
.btn-login {
width: 80px;
2016-04-22 18:53:21 +05:30
}
2016-05-12 15:22:59 +05:30
2016-05-20 16:36:56 +05:30
.featured-product-heading, .all-products {
text-transform: uppercase;
letter-spacing: 0.5px;
font-size: 12px;
font-weight: 500;
}
.all-products {
font-weight: 300;
padding-left: 25px;
padding-right: 25px;
padding-top: 10px;
padding-bottom: 10px;
}
2016-05-12 15:22:59 +05:30
2016-04-22 18:53:21 +05:30
</style>
{% endblock %}