feat: dynamic citation text and logo

This commit is contained in:
mohamad
2026-05-20 16:02:16 +03:30
parent 2341b32d4c
commit 24dd24e1c9
11 changed files with 181 additions and 29 deletions
@@ -0,0 +1,34 @@
# Generated by Django 5.0.2 on 2026-05-20 09:43
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pages', '0006_homepagesectionitem_image_supporters'),
]
operations = [
migrations.CreateModel(
name='HeroSection',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('badge', models.CharField(blank=True, help_text="Small label above the title (e.g. 'Developing since 2021').", max_length=200)),
('title', models.CharField(blank=True, help_text="Main title line (e.g. 'Radiuma,').", max_length=300)),
('title_highlight', models.CharField(blank=True, help_text="Second title line shown in gradient colour (e.g. 'A Powerful Workflow Generator').", max_length=300)),
('subtitle', models.CharField(blank=True, help_text="Short line below the title (e.g. 'for Standardized Radiomics Analysis…').", max_length=500)),
('description', models.TextField(blank=True, help_text='Longer paragraph below the subtitle.')),
('primary_cta_text', models.CharField(blank=True, help_text='Primary button label.', max_length=100)),
('primary_cta_url', models.CharField(blank=True, help_text='Primary button URL (relative or absolute).', max_length=300)),
('secondary_cta_text', models.CharField(blank=True, help_text='Secondary (ghost) button label.', max_length=100)),
('secondary_cta_url', models.CharField(blank=True, help_text='Secondary (ghost) button URL.', max_length=300)),
('image', models.ImageField(blank=True, help_text='App preview screenshot shown on the right.', null=True, upload_to='hero/')),
('image_alt', models.CharField(blank=True, help_text='Alt text for the preview image.', max_length=300)),
],
options={
'verbose_name': 'Hero Section',
'verbose_name_plural': 'Hero Section',
},
),
]