fix: separate logo and hero icon

This commit is contained in:
mohamad
2026-08-03 16:29:25 +03:30
parent 04b6e9049e
commit 4fc4282f0f
45 changed files with 900 additions and 495 deletions
@@ -0,0 +1,18 @@
# Generated by Django 5.2.8 on 2026-08-01 15:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pages', '0017_video_description_format'),
]
operations = [
migrations.AlterField(
model_name='herosection',
name='title',
field=models.CharField(blank=True, help_text="Main title line (e.g. 'Communication to Care,').", max_length=300),
),
]
+1 -1
View File
@@ -23,7 +23,7 @@ RESERVED_PAGE_SLUGS = frozenset({
class HeroSection(models.Model):
badge = models.CharField(max_length=200, blank=True, help_text="Small label above the title (e.g. 'Developing since 2021').")
title = models.CharField(max_length=300, blank=True, help_text="Main title line (e.g. 'Radiuma,').")
title = models.CharField(max_length=300, blank=True, help_text="Main title line (e.g. 'Communication to Care,').")
title_highlight = models.CharField(max_length=300, blank=True, help_text="Second title line shown in gradient colour (e.g. 'A Powerful Workflow Generator').")
subtitle = models.CharField(max_length=500, blank=True, help_text="Short line below the title (e.g. 'for Standardized Radiomics Analysis…').")
description = models.TextField(blank=True, help_text="Longer paragraph below the subtitle.")
+3 -3
View File
@@ -156,8 +156,8 @@ class PageVideoTest(TestCase):
class ProductVideoTest(TestCase):
def setUp(self):
self.main_product = MainProduct.objects.create(
name="Radiuma",
slug="radiuma",
name="Communication to Care",
slug="com2care",
short_description="Short",
description="Long",
is_active=True,
@@ -173,7 +173,7 @@ class ProductVideoTest(TestCase):
is_active=True,
)
response = self.client.get(
reverse("products:main_product_detail", kwargs={"main_slug": "radiuma"})
reverse("products:main_product_detail", kwargs={"main_slug": "com2care"})
)
self.assertContains(response, "Product Demo")
self.assertContains(response, "video-block--full")
+1 -1
View File
@@ -207,7 +207,7 @@ class PageVideoArchiveView(ListView):
PAGE_CONFIG = {
PageVideo.PAGE_CONTACT: (
"Contact videos",
"Guides and updates from the Radiuma team.",
"Guides and updates from the Communication to Care team.",
"pages:contact",
),
PageVideo.PAGE_FAQ: (