Task 7 - Add sponsors

This commit is contained in:
Oliver Davies 2021-02-18 00:43:24 +00:00
parent a024466201
commit acac7e6ec1
10 changed files with 238 additions and 1 deletions

View file

@ -0,0 +1,30 @@
<div>
<h2>Sponsors</h2>
<div>
{% include 'includes/sponsor-list.html.twig' with {
title: 'Platinum Sponsors',
type: 'platinum',
} only %}
{% include 'includes/sponsor-list.html.twig' with {
title: 'Gold Sponsors',
type: 'gold',
} only %}
{% include 'includes/sponsor-list.html.twig' with {
title: 'Silver Sponsors',
type: 'silver',
} only %}
{% include 'includes/sponsor-list.html.twig' with {
title: 'Bronze Sponsors',
type: 'bronze',
} only %}
{% include 'includes/sponsor-list.html.twig' with {
title: 'In Kind Sponsors',
type: 'in_kind',
} only %}
</div>
</div>

View file

@ -0,0 +1,14 @@
<div>
<h2>{{ title }}</h2>
<ul>
{% for sponsor in sponsors.findByType(type) %}
<li>
<a href="#0">
<img src="{{ sponsor.logo_url }}" alt="">
<p>{{ sponsor.name }}</p>
</a>
</li>
{% endfor %}
</ul>
</div>