feat: added zerodha to sponsor list

This commit is contained in:
Shivam Mishra
2019-09-13 17:50:46 +05:30
parent 18eb0a7685
commit 0b6d07486f
3 changed files with 8 additions and 8 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View File

@@ -1,17 +1,17 @@
{% set platinum_sponsors = [
{
'image': '/assets/foundation/img/conf/sponsors/frappe-logo.png',
'title': 'Frappe Technologies',
'title': 'Frappe',
'website_url': 'http://frappe.io/'
},
{
'image': '/assets/foundation/img/people/tux.png',
'title': 'Your Awesome Company',
'website_url': 'http://www.example.com/'
'image': '/assets/foundation/img/conf/sponsors/zerodha.png',
'title': 'Zerodha',
'website_url': 'https://zerodha.com/'
}
] %}
{% macro show_section(sponsors, with_img = False, color=False) %}
{% macro show_section(sponsors, with_img = False) %}
<div class='row mt-4'>
{% for sponsor in sponsors %}
<div class='mx-3 mx-md-0 col-sm-3 mb-4'>
@@ -19,13 +19,13 @@
<div class="card-body">
{% if with_img %}
<div class='square-img'>
<img class="{% if not color %}greyscale{% endif %} p-4"
<img class=""
src="{{ sponsor.image or "/assets/foundation/img/people/tux.png" }}"
alt="{{ sponsor.title }}">
</div>
{% endif %}
<div>
<h6 class="mb-0">
<h6 class="mt-3 mb-0">
{{ sponsor.title }}
</h6>
</div>
@@ -49,7 +49,7 @@
<div class="mt-5">
{% if platinum_sponsors %}
<h4>Platinum Sponsors<h4>
{{ show_section(platinum_sponsors, color=True, with_img=True) }}
{{ show_section(platinum_sponsors, with_img=True) }}
{% endif %}
{% if gold_sponsors %}