blob: b9b435c7c338cacd49d5301bd4f0ac31e5638458 [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' %}
mergify[bot]5b7b5832022-07-26 13:46:03 +05308 <section class="hero-section border-bottom {%if homepage.hero_image%}hero-image{%endif%}"
9 {% if homepage.hero_image %}
10 style="background-image: url('{{ homepage.hero_image }}');"
11 {%- endif %}
12 >
Faris Ansari5f8b3582019-03-19 11:48:32 +053013 <div class="container py-5">
14 <h1 class="d-none d-sm-block display-4">{{ homepage.tag_line }}</h1>
15 <h1 class="d-block d-sm-none">{{ homepage.tag_line }}</h1>
16 <h2 class="d-none d-sm-block">{{ homepage.description }}</h2>
17 <h3 class="d-block d-sm-none">{{ homepage.description }}</h3>
Rushabh Mehtaac123c52016-05-20 16:36:56 +053018 </div>
Faris Ansari5f8b3582019-03-19 11:48:32 +053019
Faris Ansari5f8b3582019-03-19 11:48:32 +053020 </section>
21 {% elif homepage.hero_section_based_on == 'Slideshow' and slideshow %}
22 <section class="hero-section">
23 {% include "templates/includes/slideshow.html" %}
24 </section>
25 {% elif homepage.hero_section_based_on == 'Homepage Section' %}
26 {{ render_homepage_section(homepage.hero_section_doc) }}
27 {% endif %}
28
rohitwaghchaured6201ce2023-12-14 22:47:32 +053029 {% if homepage.products %}
30 <section class="container section-products my-5">
31 <h3>{{ _('Products') }}</h3>
32
33 <div class="row">
34 {% for item in homepage.products %}
35 <div class="col-md-4 mb-4">
36 <div class="card h-100 justify-content-between">
37 <img class="card-img-top website-image-extra-large" src="{{ item.image }}" loading="lazy" alt="{{ item.item_name }}"></img>
38 <div class="card-body flex-grow-0">
39 <h5 class="card-title">{{ item.item_name }}</h5>
40 <a href="{{ item.route }}" class="card-link">{{ _('More details') }}</a>
41 </div>
42 </div>
43 </div>
44 {% endfor %}
45 </div>
46 </section>
47 {% endif %}
48
Faris Ansari5f8b3582019-03-19 11:48:32 +053049 {% if blogs %}
50 <section class="container my-5">
51 <h3>{{ _('Publications') }}</h3>
Rushabh Mehtaac123c52016-05-20 16:36:56 +053052
Faris Ansari5f8b3582019-03-19 11:48:32 +053053 <div class="row">
54 {% for blog in blogs %}
55 <div class="col-md-4 mb-4">
56 <div class="card h-100">
57 <div class="card-body">
58 <h5 class="card-title">{{ blog.title }}</h5>
59 <p class="card-subtitle mb-2 text-muted">{{ _('By {0}').format(blog.blogger) }}</p>
60 <p class="card-text">{{ blog.blog_intro }}</p>
61 </div>
62 <div class="card-body flex-grow-0">
63 <a href="{{ blog.route }}" class="card-link">{{ _('Read blog') }}</a>
64 </div>
65 </div>
66 </div>
67 {% endfor %}
68 </div>
69 </section>
70 {% endif %}
Kanchan Chauhan239b3512016-05-02 11:43:44 +053071
Faris Ansari5f8b3582019-03-19 11:48:32 +053072 {% for section in homepage_sections %}
73 {{ render_homepage_section(section) }}
74 {% endfor %}
75</main>
Ankush Menat4551d7d2021-08-19 13:41:10 +053076{% endblock %}