Skip to content

Commit 94055cd

Browse files
committed
feat(sponsors): add platinum partner sponsor type
1 parent 5267e6d commit 94055cd

4 files changed

Lines changed: 47 additions & 3577 deletions

File tree

app/home/templates/home/sections/sponsor-section.html

Lines changed: 44 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -208,13 +208,50 @@
208208
<div class="grid grid-cols-1 sm:grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 items-center">
209209
{% for sponsor in sponsors %}
210210
<div class="{% if sponsor.info %}sponsor-card-container group{% endif %} relative flex h-48 items-center justify-center overflow-hidden rounded-lg bg-white p-8 {% if sponsor.info %}cursor-pointer{% endif %}">
211-
{% if sponsor.is_pao_connected %}
212-
<img
213-
src="/static/img/vectors/pao-ribbon.svg"
214-
alt="PAO Ribbon"
215-
class="sponsor-pao-ribbon absolute top-0 right-[20px] w-[50px] z-20"
216-
>
217-
{% endif %}
211+
{% if sponsor.is_pao_connected %}
212+
<img
213+
src="/static/img/vectors/pao-ribbon.svg"
214+
alt="PAO Ribbon"
215+
class="sponsor-pao-ribbon absolute top-0 right-[20px] w-[50px] z-20">
216+
{% endif %}
217+
{% if sponsor.website_url %}
218+
<a href="{{ sponsor.website_url }}"
219+
target="_blank"
220+
rel="noopener noreferrer"
221+
class="w-full h-full flex items-center justify-center">
222+
<img src="{{ sponsor.logo_url }}"
223+
alt="{{ sponsor.name }}"
224+
class="sponsor-logo-blur max-w-full max-h-32 object-contain"
225+
width="256" height="128" />
226+
</a>
227+
{% else %}
228+
<img src="{{ sponsor.logo_url }}"
229+
alt="{{ sponsor.name }}"
230+
class="sponsor-logo-blur max-w-full max-h-32 object-contain"
231+
width="256" height="128" />
232+
{% endif %}
233+
{% if sponsor.info %}
234+
<div class="sponsor-card-overlay absolute inset-0 flex items-center justify-center p-4 bg-white/85 opacity-0 group-hover:opacity-100 transition-opacity duration-300 z-10 rounded-lg">
235+
<p class="text-sm text-center font-nunito" style="color: #7c5e3b">{{ sponsor.info }}</p>
236+
</div>
237+
{% endif %}
238+
</div>
239+
{% endfor %}
240+
</div>
241+
</div>
242+
{% elif sponsor_type_key == "PLATINUM_PARTNER" %}
243+
<div class="mb-16">
244+
<h3 class="text-2xl font-bold mb-8 uppercase font-bantayog font-bantayog"
245+
style="color: #7c5e3b">Platinum Partner</h3>
246+
<div class="grid grid-cols-1 sm:grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 items-center">
247+
{% for sponsor in sponsors %}
248+
<div class="{% if sponsor.info %}sponsor-card-container group{% endif %} relative flex h-48 items-center justify-center overflow-hidden rounded-lg bg-white p-8 {% if sponsor.info %}cursor-pointer{% endif %}">
249+
{% if sponsor.is_pao_connected %}
250+
<img
251+
src="/static/img/vectors/pao-ribbon.svg"
252+
alt="PAO Ribbon"
253+
class="sponsor-pao-ribbon absolute top-0 right-[20px] w-[50px] z-20">
254+
{% endif %}
218255
{% if sponsor.website_url %}
219256
<a href="{{ sponsor.website_url }}"
220257
target="_blank"

app/sponsors/models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ class SponsorType(models.TextChoices):
99
WELLNESS_PARTNER = "WELLNESS_PARTNER"
1010
KEYSTONE = "KEYSTONE"
1111
PLATINUM = "PLATINUM"
12+
PLATINUM_PARTNER = "PLATINUM_PARTNER"
1213
TITANIUM = "TITANIUM"
1314
GOLD = "GOLD"
1415
SILVER = "SILVER"

config/constants.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"INSTITUTIONAL",
44
"KEYSTONE",
55
"PLATINUM",
6+
"PLATINUM_PARTNER",
67
"TITANIUM",
78
"GOLD",
89
"SILVER",

0 commit comments

Comments
 (0)