Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions app/home/templates/home/sections/sponsor-section.html
Original file line numberDiff line numberDiff line change
Expand Up@@ -396,6 +396,45 @@
{% endfor %}
</div>
</div>
{% elif sponsor_type_key == "COFFEE" %}
<div class="mb-16">
<h3 class="text-2xl font-bold mb-8 uppercase font-bantayog"
style="color: #7c5e3b">Coffee Sponsor</h3>
<div class="grid grid-cols-1 sm:grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 items-center">
{% for sponsor in sponsors %}
<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 %}">
{% if sponsor.is_pao_connected %}
<img
src="/static/img/vectors/pao-ribbon.svg"
alt="PAO Ribbon"
class="sponsor-pao-ribbon absolute top-0 right-[20px] w-[50px] z-20"
>
{% endif %}
{% if sponsor.website_url %}
<a href="{{sponsor.website_url }}"
target="_blank"
rel="noopener noreferrer"
class="w-full h-full flex items-center justify-center">
<img src="{{sponsor.logo_url }}"
alt="{{sponsor.name }}"
class="sponsor-logo-blur max-w-full max-h-32 object-contain"
width="256" height="128" />
</a>
{% else %}
<img src="{{sponsor.logo_url }}"
alt="{{sponsor.name }}"
class="sponsor-logo-blur max-w-full max-h-32 object-contain"
width="256" height="128" />
{% endif %}
{% if sponsor.info %}
<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">
<p class="text-sm text-center font-nunito" style="color: #7c5e3b">{{sponsor.info }}</p>
</div>
{% endif %}
</div>
{% endfor %}
</div>
</div>
{% endif %}
{% endfor %}
</div>
Expand Down
18 changes: 18 additions & 0 deletions app/sponsors/migrations/0006_alter_sponsor_sponsor_type.py
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
# Generated by Django 5.2.7 on 2026-01-27 09:00

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('sponsors', '0005_remove_sponsor_ribbon_visible_and_more'),
]

operations = [
migrations.AlterField(
model_name='sponsor',
name='sponsor_type',
field=models.CharField(choices=[('ORGANIZER', 'Organizer'), ('INSTITUTIONAL', 'Institutional'), ('COMMUNITY_PARTNER', 'Community Partner'), ('WELLNESS_PARTNER', 'Wellness Partner'), ('KEYSTONE', 'Keystone'), ('PLATINUM', 'Platinum'), ('TITANIUM', 'Titanium'), ('GOLD', 'Gold'), ('SILVER', 'Silver'), ('COFFEE', 'Coffee')], max_length=255),
),
]
1 change: 1 addition & 0 deletions app/sponsors/models.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -12,6 +12,7 @@ class SponsorType(models.TextChoices):
TITANIUM = "TITANIUM"
GOLD = "GOLD"
SILVER = "SILVER"
COFFEE = "COFFEE"

name = models.CharField(max_length=255)
logo_url = models.URLField(max_length=255)
Expand Down
1 change: 1 addition & 0 deletions config/constants.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -8,4 +8,5 @@
"SILVER",
"COMMUNITY_PARTNER",
"WELLNESS_PARTNER",
"COFFEE",
]