Skip to content

Commit fd8c406

Browse files
ryanmrBrianMitchL
authored andcommitted
Add top-level sponsors to index
1 parent b5c5b37 commit fd8c406

File tree

2 files changed

+80
-3
lines changed

2 files changed

+80
-3
lines changed

src/globals/sponsors.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[
22
{
3+
"key": "host",
34
"section": "Host 🌎",
45
"sponsors": [
56
{
@@ -10,6 +11,7 @@
1011
]
1112
},
1213
{
14+
"key": "diamond",
1315
"section": "Diamond 💎",
1416
"sponsors": [
1517
{
@@ -34,6 +36,6 @@
3436
}
3537
]
3638
},
37-
{ "section": "Gold 🥇", "sponsors": [] },
38-
{ "section": "Silver 🥈", "sponsors": [] }
39+
{ "key": "gold", "section": "Gold 🥇", "sponsors": [] },
40+
{ "key": "silver", "section": "Silver 🥈", "sponsors": [] }
3941
]

src/index.njk

Lines changed: 76 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,10 @@ links:
116116
</div>
117117
</div>
118118
</div>
119-
<div>
119+
120+
121+
{# speaking #}
122+
<div class="mb-8">
120123
<div class="flex justify-start items-center mb-2">
121124
<h2
122125
class="inline-block bg-black text-white text-2xl font-bold px-4 transform -rotate-1"
@@ -143,6 +146,78 @@ links:
143146
</div>
144147
</div>
145148
</div>
149+
150+
151+
{# promoted sponsors #}
152+
<div class="mb-8">
153+
<div class="flex justify-between items-center mb-2">
154+
<h2
155+
class="inline-block bg-black text-white text-2xl font-bold px-4 transform -rotate-1"
156+
>
157+
Sponsors
158+
</h2>
159+
<p><a class="hover:underline" href="{{ site.baseUrl }}sponsors/">More Sponsors →</a></p>
160+
</div>
161+
<div
162+
class="border-jsmn-yellow border-4 p-4"
163+
>
164+
{# host #}
165+
<div class="w-2/3 mx-auto mb-4">
166+
<h3 class="font-bold text-2xl">Host 🌎</h3>
167+
<div class="grid sm:grid-cols-4 sm:gap-2 grid-cols-none space-y-4 sm:space-y-0">
168+
{% for section in sponsors %}
169+
{% if section.key === "host" %}
170+
{% for sponsor in section.sponsors %}
171+
<div class="flex justify-center items-center">
172+
<a
173+
href="{{ sponsor.href }}"
174+
target="_blank"
175+
rel="noopener noreferrer"
176+
class="flex justify-center items-center shadow transition-all border border-gray-200 hover:border-gray-400 w-full p-4"
177+
>
178+
<img
179+
src="{{ site.baseUrl }}sponsors/{{ sponsor.imgSrc }}"
180+
alt="{{ sponsor.title }}"
181+
title="{{ sponsor.title }}"
182+
class="h-32"
183+
/>
184+
</a>
185+
</div>
186+
{% endfor %}
187+
{% endif %}
188+
{% endfor %}
189+
</div>
190+
</div>
191+
{# diamond #}
192+
<div class="w-2/3 mx-auto mb-4">
193+
<h3 class="font-bold text-2xl">Diamond 💎</h3>
194+
<div class="grid sm:grid-cols-4 sm:gap-2 grid-cols-none space-y-4 sm:space-y-0">
195+
{% for section in sponsors %}
196+
{% if section.key === "diamond" %}
197+
{% for sponsor in section.sponsors %}
198+
<div class="flex justify-center items-center">
199+
<a
200+
href="{{ sponsor.href }}"
201+
target="_blank"
202+
rel="noopener noreferrer"
203+
class="flex justify-center items-center shadow transition-all border border-gray-200 hover:border-gray-400 w-full p-4"
204+
>
205+
<img
206+
src="{{ site.baseUrl }}sponsors/{{ sponsor.imgSrc }}"
207+
alt="{{ sponsor.title }}"
208+
title="{{ sponsor.title }}"
209+
class="h-32"
210+
/>
211+
</a>
212+
</div>
213+
{% endfor %}
214+
{% endif %}
215+
{% endfor %}
216+
</div>
217+
</div>
218+
</div>
219+
</div>
220+
146221
</div>
147222
</div>
148223
</div>

0 commit comments

Comments
 (0)