Skip to content

Commit 4de86bb

Browse files
committed
Merge remote-tracking branch 'origin/main' into feat/homepage-polish
2 parents b7945ab + 08e4cb9 commit 4de86bb

4 files changed

Lines changed: 43 additions & 2 deletions

File tree

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

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,45 @@ <h3 class="text-2xl font-bold mb-8 uppercase font-bantayog font-bantayog text-br
463463
{% endfor %}
464464
</div>
465465
</div>
466+
{% elif sponsor_type_key == "EDUCATION_SUMMIT" %}
467+
<div class="mb-16">
468+
<h3 class="text-2xl font-bold mb-8 uppercase font-bantayog"
469+
style="color: #7c5e3b">Education Summit Sponsor</h3>
470+
<div class="grid grid-cols-1 sm:grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 items-center">
471+
{% for sponsor in sponsors %}
472+
<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 %}">
473+
{% if sponsor.is_pao_connected %}
474+
<img
475+
src="/static/img/vectors/pao-ribbon.svg"
476+
alt="PAO Ribbon"
477+
class="sponsor-pao-ribbon absolute top-0 right-[20px] w-[50px] z-20"
478+
>
479+
{% endif %}
480+
{% if sponsor.website_url %}
481+
<a href="{{ sponsor.website_url }}"
482+
target="_blank"
483+
rel="noopener noreferrer"
484+
class="w-full h-full flex items-center justify-center">
485+
<img src="{{ sponsor.logo_url }}"
486+
alt="{{ sponsor.name }}"
487+
class="sponsor-logo-blur max-w-full max-h-32 object-contain"
488+
width="256" height="128" />
489+
</a>
490+
{% else %}
491+
<img src="{{ sponsor.logo_url }}"
492+
alt="{{ sponsor.name }}"
493+
class="sponsor-logo-blur max-w-full max-h-32 object-contain"
494+
width="256" height="128" />
495+
{% endif %}
496+
{% if sponsor.info %}
497+
<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">
498+
<p class="text-sm text-center font-nunito" style="color: #7c5e3b">{{ sponsor.info }}</p>
499+
</div>
500+
{% endif %}
501+
</div>
502+
{% endfor %}
503+
</div>
504+
</div>
466505
{% endif %}
467506
{% endfor %}
468507
</div>

app/sponsors/migrations/0007_alter_sponsor_sponsor_type.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Generated by Django 5.2.5 on 2026-02-04 16:41
1+
# Generated by Django 5.2.7 on 2026-02-11 17:39
22

33
from django.db import migrations, models
44

@@ -13,6 +13,6 @@ class Migration(migrations.Migration):
1313
migrations.AlterField(
1414
model_name='sponsor',
1515
name='sponsor_type',
16-
field=models.CharField(choices=[('ORGANIZER', 'Organizer'), ('INSTITUTIONAL', 'Institutional'), ('COMMUNITY_PARTNER', 'Community Partner'), ('WELLNESS_PARTNER', 'Wellness Partner'), ('KEYSTONE', 'Keystone'), ('PLATINUM', 'Platinum'), ('PLATINUM_PARTNER', 'Platinum Partner'), ('TITANIUM', 'Titanium'), ('GOLD', 'Gold'), ('SILVER', 'Silver'), ('COFFEE', 'Coffee')], max_length=255),
16+
field=models.CharField(choices=[('ORGANIZER', 'Organizer'), ('INSTITUTIONAL', 'Institutional'), ('COMMUNITY_PARTNER', 'Community Partner'), ('WELLNESS_PARTNER', 'Wellness Partner'), ('KEYSTONE', 'Keystone'), ('PLATINUM', 'Platinum'), ('PLATINUM_PARTNER', 'Platinum Partner'), ('TITANIUM', 'Titanium'), ('GOLD', 'Gold'), ('SILVER', 'Silver'), ('COFFEE', 'Coffee'), ('EDUCATION_SUMMIT', 'Education Summit')], max_length=255),
1717
),
1818
]

app/sponsors/models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ class SponsorType(models.TextChoices):
1414
GOLD = "GOLD"
1515
SILVER = "SILVER"
1616
COFFEE = "COFFEE"
17+
EDUCATION_SUMMIT = "EDUCATION_SUMMIT"
1718

1819
name = models.CharField(max_length=255)
1920
logo_url = models.URLField(max_length=255)

config/constants.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@
1010
"COMMUNITY_PARTNER",
1111
"WELLNESS_PARTNER",
1212
"COFFEE",
13+
"EDUCATION_SUMMIT",
1314
]

0 commit comments

Comments
 (0)