Skip to content

Commit 08e4cb9

Browse files
committed
feat: added education summit Sponsor in admin and frontpage
1 parent cab041b commit 08e4cb9

4 files changed

Lines changed: 59 additions & 0 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
@@ -472,6 +472,45 @@
472472
{% endfor %}
473473
</div>
474474
</div>
475+
{% elif sponsor_type_key == "EDUCATION_SUMMIT" %}
476+
<div class="mb-16">
477+
<h3 class="text-2xl font-bold mb-8 uppercase font-bantayog"
478+
style="color: #7c5e3b">Education Summit Sponsor</h3>
479+
<div class="grid grid-cols-1 sm:grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 items-center">
480+
{% for sponsor in sponsors %}
481+
<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 %}">
482+
{% if sponsor.is_pao_connected %}
483+
<img
484+
src="/static/img/vectors/pao-ribbon.svg"
485+
alt="PAO Ribbon"
486+
class="sponsor-pao-ribbon absolute top-0 right-[20px] w-[50px] z-20"
487+
>
488+
{% endif %}
489+
{% if sponsor.website_url %}
490+
<a href="{{ sponsor.website_url }}"
491+
target="_blank"
492+
rel="noopener noreferrer"
493+
class="w-full h-full flex items-center justify-center">
494+
<img src="{{ sponsor.logo_url }}"
495+
alt="{{ sponsor.name }}"
496+
class="sponsor-logo-blur max-w-full max-h-32 object-contain"
497+
width="256" height="128" />
498+
</a>
499+
{% else %}
500+
<img src="{{ sponsor.logo_url }}"
501+
alt="{{ sponsor.name }}"
502+
class="sponsor-logo-blur max-w-full max-h-32 object-contain"
503+
width="256" height="128" />
504+
{% endif %}
505+
{% if sponsor.info %}
506+
<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">
507+
<p class="text-sm text-center font-nunito" style="color: #7c5e3b">{{ sponsor.info }}</p>
508+
</div>
509+
{% endif %}
510+
</div>
511+
{% endfor %}
512+
</div>
513+
</div>
475514
{% endif %}
476515
{% endfor %}
477516
</div>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Generated by Django 5.2.7 on 2026-02-11 17:39
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('sponsors', '0006_alter_sponsor_sponsor_type'),
10+
]
11+
12+
operations = [
13+
migrations.AlterField(
14+
model_name='sponsor',
15+
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'), ('EDUCATION_SUMMIT', 'Education Summit')], max_length=255),
17+
),
18+
]

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)