blob: 2ef9c1053473bd7980afa86dca7821c8563912ea [file] [log] [blame]
Kanchan Chauhane0818f82016-04-22 14:39:02 +05301{% extends "templates/web.html" %}
2
Faris Ansari5f8b3582019-03-19 11:48:32 +05303{% from "erpnext/templates/includes/macros.html" import render_homepage_section %}
Kanchan Chauhane0818f82016-04-22 14:39:02 +05304
Faris Ansari5f8b3582019-03-19 11:48:32 +05305{% block content %}
6<main>
7 {% if homepage.hero_section_based_on == 'Default' %}
8 <section class="hero-section border-bottom {%if homepage.hero_image%}hero-image{%endif%}">
9 <div class="container py-5">
10 <h1 class="d-none d-sm-block display-4">{{ homepage.tag_line }}</h1>
11 <h1 class="d-block d-sm-none">{{ homepage.tag_line }}</h1>
12 <h2 class="d-none d-sm-block">{{ homepage.description }}</h2>
13 <h3 class="d-block d-sm-none">{{ homepage.description }}</h3>
Rushabh Mehtaac123c52016-05-20 16:36:56 +053014 </div>
Faris Ansari5f8b3582019-03-19 11:48:32 +053015
16 <div class="container">
17 <a href="{{ explore_link }}" class="mb-5 btn btn-primary">{{ _('Explore') }}</a>
18 </div>
19 </section>
20 {% elif homepage.hero_section_based_on == 'Slideshow' and slideshow %}
21 <section class="hero-section">
22 {% include "templates/includes/slideshow.html" %}
23 </section>
24 {% elif homepage.hero_section_based_on == 'Homepage Section' %}
25 {{ render_homepage_section(homepage.hero_section_doc) }}
26 {% endif %}
27
28 {% if homepage.products %}
29 <section class="container section-products my-5">
30 <h3>{{ _('Products') }}</h3>
31
32 <div class="row">
33 {% for item in homepage.products %}
34 <div class="col-md-4 mb-4">
35 <div class="card h-100 justify-content-between">
Faris Ansari22642a52019-06-14 18:15:40 +053036 <div class="website-image-lazy" data-class="card-img-top website-image-extra-large" data-src="{{ item.image }}" data-alt="{{ item.item_name }}"></div>
Faris Ansari5f8b3582019-03-19 11:48:32 +053037 <div class="card-body flex-grow-0">
38 <h5 class="card-title">{{ item.item_name }}</h5>
39 <a href="{{ item.route }}" class="card-link">{{ _('More details') }}</a>
40 </div>
Anand Doshie3bd78e2016-04-22 18:53:21 +053041 </div>
42 </div>
Faris Ansari5f8b3582019-03-19 11:48:32 +053043 {% endfor %}
Kanchan Chauhane0818f82016-04-22 14:39:02 +053044 </div>
Faris Ansari5f8b3582019-03-19 11:48:32 +053045 </section>
46 {% endif %}
Anand Doshie3bd78e2016-04-22 18:53:21 +053047
Faris Ansari5f8b3582019-03-19 11:48:32 +053048 {% if blogs %}
49 <section class="container my-5">
50 <h3>{{ _('Publications') }}</h3>
Rushabh Mehtaac123c52016-05-20 16:36:56 +053051
Faris Ansari5f8b3582019-03-19 11:48:32 +053052 <div class="row">
53 {% for blog in blogs %}
54 <div class="col-md-4 mb-4">
55 <div class="card h-100">
56 <div class="card-body">
57 <h5 class="card-title">{{ blog.title }}</h5>
58 <p class="card-subtitle mb-2 text-muted">{{ _('By {0}').format(blog.blogger) }}</p>
59 <p class="card-text">{{ blog.blog_intro }}</p>
60 </div>
61 <div class="card-body flex-grow-0">
62 <a href="{{ blog.route }}" class="card-link">{{ _('Read blog') }}</a>
63 </div>
64 </div>
65 </div>
66 {% endfor %}
67 </div>
68 </section>
69 {% endif %}
Kanchan Chauhan239b3512016-05-02 11:43:44 +053070
Faris Ansari5f8b3582019-03-19 11:48:32 +053071 {% for section in homepage_sections %}
72 {{ render_homepage_section(section) }}
73 {% endfor %}
74</main>
75{% endblock %}