Task 7 - Add sponsors
This commit is contained in:
parent
a024466201
commit
acac7e6ec1
10 changed files with 238 additions and 1 deletions
30
templates/includes/home/sponsors.html.twig
Normal file
30
templates/includes/home/sponsors.html.twig
Normal 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>
|
14
templates/includes/sponsor-list.html.twig
Normal file
14
templates/includes/sponsor-list.html.twig
Normal 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>
|
|
@ -4,4 +4,6 @@
|
|||
{% include 'includes/home/video.html.twig' %}
|
||||
|
||||
{% include 'includes/home/intro-text.html.twig' %}
|
||||
|
||||
{% include 'includes/home/sponsors.html.twig' %}
|
||||
{% endblock %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue