Skip to content

Commit 4b1f7ac

Browse files
committed
sponsors update
1 parent 6e169f3 commit 4b1f7ac

File tree

8 files changed

+353
-26
lines changed

8 files changed

+353
-26
lines changed

_data/sponsors.yml

Lines changed: 28 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,41 @@
1+
- title: Civic Tech Toronto
2+
url: https://civictech.ca
3+
logo: civic-tech-toronto-logo.png
4+
level: organizing_partner
5+
description: comming soon.
6+
17
- title: Centre for Analytics & Artificial Intelligence Engineering (CARTE)
28
url: https://carte.utoronto.ca
39
logo: carte-logo.png
4-
level: venue_partner
10+
level: organizing_partner
11+
description: comming soon.
512

613
- title: 1RG
714
url: https://1rg.space
815
logo: 1rg-logo.png
916
level: organizing_partner
17+
description: comming soon.
1018

11-
- title: Civic Tech Toronto
12-
url: https://civictech.ca
13-
logo: civic-tech-toronto-logo.png
14-
level: organizing_partner
15-
16-
- title: Code for Canada
17-
url: https://codefor.ca
18-
logo: code-for-canada-logo.png
19-
level: BEN_TO_DEFINE
20-
21-
- title: The City of Toronto
22-
url: https://www.toronto.ca
23-
logo: toronto.png
24-
level: presenting_partner
25-
26-
- title: Open Data Toronto
19+
- title: Open Data – The City of Toronto
2720
url: https://open.toronto.ca
28-
logo: open-data.jpg
29-
level: presenting_partner
21+
logo: Toronto Lockup Transparent.png
22+
level: presenting_sponsor
23+
description: comming soon.
3024

3125
- title: The Toronto Star
3226
url: https://www.thestar.com
33-
logo: StarRibbonLogo-B&W.png
34-
level: presenting_partner
27+
logo: Toronto-Star-Logo.svg
28+
level: presenting_sponsor
29+
description: comming soon.
30+
31+
- title: Bloom Works
32+
url: https://bloomworks.digital
33+
logo: bloom.svg
34+
level: major_sponsor
35+
description: comming soon.
36+
37+
- title: Code for Canada
38+
url: https://codefor.ca
39+
logo: code-for-canada-logo.png
40+
level: supporting_sponsor
41+
description: comming soon.

_includes/section-sponsors.html

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<style>
55
.sponsors {
66
display: grid;
7-
grid-template-columns: 2fr 1fr 2fr 0.5fr;
7+
grid-template-columns: 1fr 1fr;
88
gap: 1.5rem;
99
justify-items: center;
1010
align-items: center;
@@ -17,8 +17,9 @@
1717
.sponsors img:hover {
1818
filter: none;
1919
}
20-
.sponsors a {
20+
.sponsors a, .textsponsor {
2121
text-decoration: none;
22+
color: inherit;
2223
}
2324

2425
@media (max-width: 767px) {
@@ -35,10 +36,21 @@
3536
</style>
3637
<div class="sponsors">
3738
{% for sponsor in site.data.sponsors %}
38-
{% if sponsor.level == "presenting_partner" %}
39+
{% if sponsor.level == "presenting_sponsor" %}
3940
<a href="{{ sponsor.url }}" target="_blank" rel="noopener noreferrer">
4041
<img src="{{ site.baseurl }}/assets/images/sponsors/{{ sponsor.logo }}" alt="{{ sponsor.title }}">
4142
</a>
4243
{% endif %}
4344
{% endfor %}
45+
</div>
46+
<div>
47+
<p>
48+
Major and supporting sponsors:&ensp;
49+
{% assign major_supporting = site.data.sponsors | where_exp: "s", "s.level == 'major_sponsor' or s.level == 'supporting_sponsor'" %}
50+
{% for sponsor in major_supporting %}
51+
<a class="textsponsor" href="{{ sponsor.url }}" target="_blank" rel="noopener noreferrer">{{ sponsor.title }}</a>
52+
{% unless forloop.last %} • {% endunless %}
53+
{% endfor %}<br/>
54+
<a href="{{ '/sponsors' | relative_url}}">Learn more about our sponsors</a></p>
55+
</div>
4456
</section>

_layouts/base.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@
2121
<main role="main" id="main-content" class="container" tabindex="-1">
2222
{{ content }}
2323
</main>
24-
{% include section-sponsors.html %}
24+
{% unless page.hide_sponsors %}
25+
{% include section-sponsors.html %}
26+
{% endunless %}
2527
{% include footer.html %}
2628
</body>
2729
</html>

_pages/sponsors.html

Lines changed: 73 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,79 @@
44
description: "Civic Spark is made possible by the generous support of our sponsors."
55
permalink: /sponsors/
66
redirect_from: /sponsors
7+
hide_sponsors: true
78
---
89

910

10-
coming soon.
11+
<style>
12+
.sponsor-logo-container {
13+
width: 100%;
14+
height: 250px;
15+
display: flex;
16+
align-items: center;
17+
justify-content: center;
18+
background: transparent;
19+
}
20+
.sponsor-logo {
21+
width: 100%;
22+
height: auto;
23+
max-width: 100%;
24+
max-height: 100%;
25+
object-fit: contain;
26+
object-position: center center;
27+
display: block;
28+
}
29+
30+
.sponsor-grid{
31+
display: grid;
32+
grid-template-columns: 1fr 1fr;
33+
gap: 1rem;
34+
}
35+
36+
@media (max-width: 767px) {
37+
.sponsor-grid {
38+
grid-template-columns: 1fr;
39+
}
40+
}
41+
42+
43+
44+
</style>
45+
46+
{% assign levels = "presenting_sponsor,major_sponsor,supporting_sponsor,community_partner" | split: "," %}
47+
{% assign level_names =
48+
"presenting_sponsor:Presenting Partner,major_sponsor:Major Sponsor,supporting_sponsor:Supporting Sponsor,community_partner:Community Partner"
49+
| split: "," | map: "split" | map: "first" | zip: "split:':'|last" %}
50+
51+
{% for level in levels %}
52+
{% assign sponsors_in_level = site.data.sponsors | where: "level", level %}
53+
{% if sponsors_in_level.size > 0 %}
54+
<h2>
55+
{% case level %}
56+
{% when "presenting_sponsor" %}Presenting Sponsors
57+
{% when "lead_sponsor" %}Lead Sponsors
58+
{% when "major_sponsor" %}Major Sponsors
59+
{% when "supporting_sponsor" %}Supporting Sponsors
60+
{% else %}{{ level | capitalize }}
61+
{% endcase %}
62+
</h2>
63+
<div class="sponsor-list sponsor-grid sponsor-list-{{ level }}">
64+
{% for sponsor in sponsors_in_level %}
65+
<article class="sponsor-row">
66+
<div class="sponsor-logo-container">
67+
<img
68+
class="sponsor-logo"
69+
src="{{ site.baseurl }}/assets/images/sponsors/{{ sponsor.logo }}"
70+
alt="{{ sponsor.title }}"
71+
style="cursor:pointer"
72+
onclick="window.open('{{ sponsor.url }}', '_blank', 'noopener,noreferrer')"
73+
/>
74+
</div>
75+
<!-- <div class="sponsor-info">
76+
<p class="sponsor-description">{{ sponsor.description }}</p>
77+
</div> -->
78+
</article>
79+
{% endfor %}
80+
</div>
81+
{% endif %}
82+
{% endfor %}
104 KB
Loading

0 commit comments

Comments
 (0)