brotherton-erpnext/erpnext/templates/pages/home.html

76 lines
1.8 KiB
HTML
Raw Normal View History

2016-04-22 09:09:02 +00:00
{% extends "templates/web.html" %}
2016-04-22 13:23:21 +00:00
{% from "erpnext/templates/includes/macros.html" import product_image_square %}
2016-04-22 09:09:02 +00:00
{% block page_content %}
<div class="row">
<div class="col-sm-12">
2016-05-20 11:06:56 +00:00
<div class="hero">
<h1 class="text-center">{{ homepage.tag_line or '' }}</h1>
<p class="text-center">{{ homepage.description or '' }}</p>
</div>
2016-04-22 13:23:21 +00:00
{% if homepage.products %}
2016-05-02 06:13:44 +00:00
<div class='featured-products-section' itemscope itemtype="http://schema.org/Product">
<h5 class='featured-product-heading'>{{ _("Featured Products") }}</h5>
2016-04-22 13:23:21 +00:00
<div class="featured-products">
<div id="search-list" class="row" style="margin-top:40px;">
{% for item in homepage.products %}
2016-05-02 06:13:44 +00:00
<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 07:33:11 +00:00
<!-- thumbnail not updated, and used as background image in item card -->
{{ product_image_square(item.image) }}
2016-05-02 06:13:44 +00:00
<div class="product-text" itemprop="name">{{ item.item_name }}</div>
2016-04-22 13:23:21 +00:00
</div>
2016-05-02 06:13:44 +00:00
</div>
</a>
2016-04-22 13:23:21 +00:00
{% endfor %}
</div>
</div>
2016-05-20 11:06:56 +00:00
<div class="text-center padding">
<a href="{{ homepage.products_url or "/products" }}" class="btn btn-primary all-products">
2016-05-20 11:06:56 +00:00
{{ _("View All Products") }}</a></div>
2016-04-22 09:09:02 +00:00
</div>
2016-04-22 13:23:21 +00:00
{% endif %}
2016-04-22 09:09:02 +00:00
</div>
</div>
{% endblock %}
2016-04-22 13:23:21 +00:00
{% block style %}
<style>
2016-05-20 11:06:56 +00:00
.hero {
padding-top: 50px;
padding-bottom: 100px;
}
.hero h1 {
font-size: 40px;
font-weight: 200;
2016-05-02 06:13:44 +00:00
}
.home-login {
margin-top: 30px;
}
.btn-login {
width: 80px;
2016-04-22 13:23:21 +00:00
}
2016-05-12 09:52:59 +00:00
2016-05-20 11:06:56 +00:00
.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 09:52:59 +00:00
2016-04-22 13:23:21 +00:00
</style>
{% endblock %}