Switch the demo catalog and copy to an electronics store

The shop sells tech, not clothing, so the demo data and page copy now
match that:

- seven categories: smartphones, laptops, tablets, audio, TVs, home
  appliances, accessories
- fifteen products with real-looking specs (screen, CPU, RAM, storage,
  energy class, warranty) instead of apparel attributes
- hero copy and meta description talk about tech and appliances
- banner updated in place by position/sort_order, so re-seeding does not
  leave a stale duplicate

Catalog polish:
- brand list and price range now follow the selected category instead of
  the whole catalog

Tests: storefront fixtures renamed to the tech domain; suite is 61
passing.
This commit is contained in:
apuc committed 2026-11-22 22:46:56 +03:00
1 parent 37d5d7b366
commit a64d567cff
5 files changed
+326 -144

No files matched your search

+4 -4
View File
@@ -1,7 +1,7 @@
{% extends "storefront/base.html" %}
{% load storefront %}
{% block title %}{{ site.site_name }} — одежда и аксессуары{% endblock %}
{% block title %}{{ site.site_name }} — техника и электроника{% endblock %}
{% block content %}
{% if banners %}
@@ -9,7 +9,7 @@
{% with banner=banners.0 %}
{% if banner.image_url %}<img class="hero-image" src="{{ banner.image_url }}" alt="">{% endif %}
<h1>{{ banner.title }}</h1>
<p>{{ site.site_name }}: одежда, обувь и аксессуары. Ассортимент и наличие синхронизированы с 1С.</p>
<p>{{ site.site_name }}: смартфоны, ноутбуки, телевизоры и бытовая техника. Цены и наличие синхронизированы с 1С.</p>
{% if banner.link_url %}
<a class="btn btn-accent" href="{{ banner.link_url }}">Смотреть</a>
{% else %}
@@ -19,8 +19,8 @@
</div>
{% else %}
<div class="hero">
<h1>{{ site.site_name }} — вещи, которые носят годами</h1>
<p>Одежда, обувь и аксессуары. Цены и наличие обновляются из 1С в реальном времени.</p>
<h1>{{ site.site_name }} — техника для дома и работы</h1>
<p>Смартфоны, ноутбуки, телевизоры и бытовая техника. Цены и наличие обновляются из 1С в реальном времени.</p>
<a class="btn btn-accent" href="{% url 'catalog' %}">Смотреть каталог</a>
</div>
{% endif %}