blob: c1e96205eb88298e435fb97388bc05031d375593 [file] [log] [blame]
Shivam Mishra823c7952019-05-19 16:01:45 +05301{% extends "templates/base.html" %}
2{% block title %}{{ education_settings.portal_title }}{% endblock %}
Shivam Mishraf22793f2019-05-30 16:34:53 +05303{% from "www/lms/macros/card.html" import program_card %}
Shivam Mishra2a0483d2019-06-06 16:02:38 +05304{% from "www/lms/macros/card.html" import null_card %}
Shivam Mishra823c7952019-05-19 16:01:45 +05305
6{% block head_include %}
7 <meta name="description" content="{{ education_settings.description }}" />
8 <meta name="keywords" content="ERP Software, Cloud ERP, Open Source ERP, Accounting Software, Online ERP, Online Accounting, ERP for small business" />
9 <style>
10 div.card-hero-img {
11 height: 220px;
12 background-size: cover;
13 background-repeat: no-repeat;
14 background-position: center;
15 background-color: rgb(250, 251, 252);
16 }
17
18 .card-image-wrapper {
19 display: flex;
20 overflow: hidden;
21 height: 220px;
22 background-color: rgb(250, 251, 252);
23 justify-content: center;
24 }
25
26 .image-body {
27 align-self: center;
28 color: #d1d8dd;
29 font-size: 24px;
30 font-weight: 600;
31 line-height: 1;
32 padding: 20px;
33 }
Shivam Mishrab3127652019-06-06 14:03:01 +053034
35 section {
36 padding: 5rem 0 5rem 0;
37 }
Shivam Mishra823c7952019-05-19 16:01:45 +053038 </style>
39{% endblock %}
40
Shivam Mishra823c7952019-05-19 16:01:45 +053041{% block content %}
Shivam Mishrab3127652019-06-06 14:03:01 +053042<section class="top-section" style="padding: 6rem 0rem;">
Shivam Mishra823c7952019-05-19 16:01:45 +053043 <div class='container pb-5'>
44 <h1>{{ education_settings.portal_title }}</h1>
Jannat Pateldcdd3be2021-04-19 10:36:40 +053045 {% if education_settings.description %}
46 <p class='lead'>{{ education_settings.description }}</p>
47 {% endif %}
Shivam Mishra823c7952019-05-19 16:01:45 +053048 <p class="mt-4">
Shivam Mishra2a0483d2019-06-06 16:02:38 +053049 {% if frappe.session.user == 'Guest' %}
Syed Mujeer Hashmic17cdd72020-10-29 11:10:06 +053050 <a class="btn btn-primary btn-lg" href="/login#signup">{{_('Sign Up')}}</a>
Shivam Mishra2a0483d2019-06-06 16:02:38 +053051 {% endif %}
Shivam Mishra823c7952019-05-19 16:01:45 +053052 </p>
Shivam Mishra823c7952019-05-19 16:01:45 +053053 </div>
54 <div class='container'>
55 <div class="row mt-5">
Shivam Mishra2a0483d2019-06-06 16:02:38 +053056 {% if featured_programs %}
Jannat Pateldcdd3be2021-04-19 10:36:40 +053057 {% for program in featured_programs %}
58 {{ program_card(program.program, program.has_access) }}
59 {% endfor %}
Shivam Mishra278ef4b2019-06-12 14:53:00 +053060 {% for n in range( (3 - (featured_programs|length)) %3) %}
Shivam Mishra2a0483d2019-06-06 16:02:38 +053061 {{ null_card() }}
62 {% endfor %}
Jannat Pateldcdd3be2021-04-19 10:36:40 +053063 {% else %}
64 <p class="lead">You have not enrolled in any program. Contact your Instructor.</p>
Shivam Mishra2a0483d2019-06-06 16:02:38 +053065 {% endif %}
Shivam Mishra823c7952019-05-19 16:01:45 +053066 </div>
Shivam Mishra823c7952019-05-19 16:01:45 +053067 </div>
68</section>
Syed Mujeer Hashmic17cdd72020-10-29 11:10:06 +053069{% endblock %}