Files
press/cabinet_service/templates/_ui.html
T

22 lines
14 KiB
HTML

{# Компоненты дизайн-системы «ИИ Пресс-секретарь» для Jinja. Сгенерировано из дизайн-системы. #}
{% set ICONS = {"send": "M12 19V5M5.5 11.5L12 5l6.5 6.5", "mic": "M12 3a3 3 0 0 0-3 3v6a3 3 0 0 0 6 0V6a3 3 0 0 0-3-3zM19 11a7 7 0 0 1-14 0M12 18v3", "attach": "M20 11.5l-8.2 8.2a5 5 0 0 1-7.1-7.1l8.6-8.6a3.5 3.5 0 0 1 5 5l-8.5 8.5a2 2 0 0 1-2.8-2.8l7.8-7.8", "sparkle": "M12 3.5l1.9 5.1 5.1 1.9-5.1 1.9L12 17.5l-1.9-5.1L5 10.5l5.1-1.9zM18.5 16.5l.8 1.7 1.7.8-1.7.8-.8 1.7-.8-1.7-1.7-.8 1.7-.8z", "stop": "M9 7h6a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H9a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2z", "copy": "M10 8h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-8a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2zM16 8V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h2", "edit": "M4 20h4L19 9a2.83 2.83 0 0 0-4-4L4 16zM13.5 6.5l4 4", "refresh": "M20 12a8 8 0 1 1-2.34-5.66M20 4v5h-5", "check": "M5 12.5l4.5 4.5L19 7.5", "close": "M6.5 6.5l11 11M17.5 6.5l-11 11", "plus": "M12 5v14M5 12h14", "chevron-right": "M9.5 6l6 6-6 6", "news": "M7 3h7l5 5v11a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2zM14 3v5h5M8.5 13h7M8.5 17h5", "megaphone": "M4 10v4a1 1 0 0 0 1 1h2l8 4V5L7 9H5a1 1 0 0 0-1 1zM18.5 9a4 4 0 0 1 0 6M8 15.5l1 4.5", "chat": "M20 12a8 8 0 0 1-11.6 7.1L4 20l1-4.2A8 8 0 1 1 20 12z", "calendar": "M6 5h12a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2zM4 10h16M8.5 3v4M15.5 3v4", "clock": "M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18zM12 7.5V12l3 2", "home": "M4 11l8-7 8 7v8a2 2 0 0 1-2 2h-3v-6H9v6H6a2 2 0 0 1-2-2z", "user": "M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8zM4.5 20a7.5 7.5 0 0 1 15 0", "settings": "M4 7h9M19 7h1M4 17h1M11 17h9M16 4.5a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5zM8 14.5a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5z", "alert": "M12 4.5l8.5 14.5h-17zM12 10v4M12 16.8v.2", "info": "M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18zM12 11v5.5M12 7.8v.2", "search": "M11 4a7 7 0 1 0 0 14 7 7 0 0 0 0-14zM20 20l-4-4", "image": "M5 4h14a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1zM4 16l5-5 4 4 3-3 4 4M15.5 8.5v.01", "chart": "M4 20h16M7 16v-5M12 16V7M17 16V9", "cpu": "M7 5h10a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2zM10 10h4v4h-4zM9.5 2.5V5M14.5 2.5V5M9.5 19v2.5M14.5 19v2.5M2.5 9.5H5M2.5 14.5H5M19 9.5h2.5M19 14.5h2.5", "persona": "M5 5h14a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2zM9 12a2 2 0 1 0 0-4 2 2 0 0 0 0 4zM6 16a3 3 0 0 1 6 0M14.5 10h3.5M14.5 13.5h3.5", "history": "M3.5 12a8.5 8.5 0 1 0 2.5-6M3.5 4v4h4M12 8v4.5l3 1.5", "download": "M12 4v11M7.5 10.5L12 15l4.5-4.5M5 20h14", "upload": "M12 15V4M7.5 8.5L12 4l4.5 4.5M5 20h14", "trash": "M5 7h14M10 7V5h4v2M7 7l1 12a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1l1-12M10.5 11v5M13.5 11v5", "link": "M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1", "key": "M8 7a4 4 0 1 0 0 8 4 4 0 0 0 0-8zM12 11h9M18 11v3.5M15.5 11v2.5", "users": "M9 11a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7zM3 20a6 6 0 0 1 12 0M16 4.5a3.5 3.5 0 0 1 0 6.5M17.5 14.5A6 6 0 0 1 21 20", "building": "M5 21V5a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v16M15 9h3a1 1 0 0 1 1 1v11M3 21h18M8.5 8h3M8.5 12h3M8.5 16h3", "landmark": "M4 21h16M6 21V11M10 21V11M14 21V11M18 21V11M12 3l8 6H4z", "grid": "M6 4h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2zM15 4h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2h-3a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2zM6 13h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2zM15 13h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2h-3a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2z", "eye": "M2.5 12S6 5.5 12 5.5 21.5 12 21.5 12 18 18.5 12 18.5 2.5 12 2.5 12zM12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6z", "eye-off": "M4 4l16 16M9.9 5.8A9.6 9.6 0 0 1 12 5.5c6 0 9.5 6.5 9.5 6.5a16 16 0 0 1-2.6 3.4M6.3 7.6C3.9 9.3 2.5 12 2.5 12S6 18.5 12 18.5c1.7 0 3.2-.5 4.5-1.2M9.9 9.9a3 3 0 0 0 4.2 4.2", "chevron-down": "M6 9.5l6 6 6-6", "chevron-left": "M14.5 6l-6 6 6 6", "logout": "M10 5H6a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h4M15 8l4 4-4 4M19 12H9", "theme": "M20 14.5A8.5 8.5 0 1 1 9.5 4a6.5 6.5 0 0 0 10.5 10.5z"} %}
{% set PRESET_ART = {"cover": "<rect class=\"b\" width=\"64\" height=\"48\"/><rect class=\"s\" x=\"8\" y=\"26\" width=\"34\" height=\"6\" rx=\"3\"/><rect class=\"a\" x=\"8\" y=\"35\" width=\"22\" height=\"4\" rx=\"2\"/>", "quote": "<rect class=\"t\" width=\"64\" height=\"48\"/><circle class=\"b\" cx=\"22\" cy=\"18\" r=\"6\"/><circle class=\"b\" cx=\"38\" cy=\"18\" r=\"6\"/><rect class=\"c\" x=\"12\" y=\"31\" width=\"40\" height=\"4\" rx=\"2\"/><rect class=\"c\" x=\"20\" y=\"38\" width=\"24\" height=\"3\" rx=\"1.5\"/>", "announce": "<rect class=\"t\" width=\"64\" height=\"48\"/><rect class=\"a\" x=\"8\" y=\"8\" width=\"22\" height=\"8\" rx=\"4\"/><rect class=\"b\" x=\"8\" y=\"22\" width=\"48\" height=\"7\" rx=\"3.5\"/><rect class=\"c\" x=\"8\" y=\"34\" width=\"30\" height=\"4\" rx=\"2\"/>", "mockup": "<rect class=\"t\" width=\"64\" height=\"48\"/><rect class=\"b\" x=\"22\" y=\"5\" width=\"20\" height=\"38\" rx=\"5\"/><rect class=\"s\" x=\"25\" y=\"10\" width=\"14\" height=\"26\" rx=\"2\"/>", "collage": "<rect class=\"t\" width=\"64\" height=\"48\"/><rect class=\"b\" x=\"6\" y=\"6\" width=\"24\" height=\"36\" rx=\"4\"/><rect class=\"a\" x=\"34\" y=\"6\" width=\"24\" height=\"16\" rx=\"4\"/><rect class=\"c\" x=\"34\" y=\"26\" width=\"24\" height=\"16\" rx=\"4\"/>", "background": "<rect class=\"b\" width=\"64\" height=\"48\"/><circle class=\"a\" cx=\"52\" cy=\"8\" r=\"20\"/><circle class=\"t\" cx=\"8\" cy=\"46\" r=\"14\"/>", "portrait": "<rect class=\"t\" width=\"64\" height=\"48\"/><circle class=\"b\" cx=\"32\" cy=\"19\" r=\"9\"/><path class=\"b\" d=\"M13 48a19 17 0 0 1 38 0z\"/>", "product": "<rect class=\"t\" width=\"64\" height=\"48\"/><ellipse class=\"c\" cx=\"32\" cy=\"41\" rx=\"15\" ry=\"3\"/><rect class=\"b\" x=\"22\" y=\"9\" width=\"20\" height=\"29\" rx=\"6\"/>", "landscape": "<rect class=\"t\" width=\"64\" height=\"48\"/><circle class=\"a\" cx=\"47\" cy=\"13\" r=\"6\"/><path class=\"b\" d=\"M0 48L20 22l14 16 10-10 20 20z\"/>", "abstract": "<rect class=\"t\" width=\"64\" height=\"48\"/><circle class=\"b\" cx=\"21\" cy=\"20\" r=\"13\"/><rect class=\"a\" x=\"27\" y=\"17\" width=\"30\" height=\"22\" rx=\"6\" transform=\"rotate(12 42 28)\"/>", "meme": "<rect class=\"t\" width=\"64\" height=\"48\"/><rect class=\"b\" x=\"8\" y=\"12\" width=\"48\" height=\"24\" rx=\"4\"/><rect class=\"c\" x=\"14\" y=\"4\" width=\"36\" height=\"5\" rx=\"2.5\"/><rect class=\"c\" x=\"14\" y=\"39\" width=\"36\" height=\"5\" rx=\"2.5\"/>", "minimal": "<rect class=\"s\" width=\"64\" height=\"48\"/><circle class=\"b\" cx=\"32\" cy=\"24\" r=\"5\"/>"} %}
{% macro icon(name, size=20, cls='', label='') -%}
<svg class="ps-icon {{ cls }}" width="{{ size }}" height="{{ size }}" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"{% if label %} role="img" aria-label="{{ label }}"{% else %} aria-hidden="true"{% endif %}><path d="{{ ICONS.get(name, '') }}"/></svg>
{%- endmacro %}
{% macro mark(uid='pl', tone='color', size=40) -%}
<span class="ps-logo-mark" style="width:{{ size }}px;height:{{ size }}px" aria-hidden="true">
{%- if tone == 'color' -%}
<svg viewBox="0 0 5669.29 5669.29" xmlns="http://www.w3.org/2000/svg" focusable="false"><defs><linearGradient id="{{ uid }}g137" x1="1189.35" y1="5684.39" x2="4479.95" y2="-15.1" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#1d71b8"/><stop offset="1" stop-color="#009fe3"/></linearGradient><linearGradient id="{{ uid }}g14a" x1="2583.32" y1="3977.34" x2="3684.12" y2="2070.69" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#009fe3"/><stop offset="1" stop-color="#312783"/></linearGradient><linearGradient id="{{ uid }}g14b" x1="1783.3" y1="3867.5" x2="2693.66" y2="2290.71" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#009fe3"/><stop offset="1" stop-color="#312783"/></linearGradient><linearGradient id="{{ uid }}g14c" x1="2671.48" y1="3177.09" x2="2908.46" y2="2766.62" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#009fe3"/><stop offset="1" stop-color="#312783"/></linearGradient></defs><rect width="5669.29" height="5669.29" rx="1589.68" ry="1589.68" fill="url(#{{ uid }}g137)"/><path fill="#fff" d="M3720.19,2839.18l-572.18,1154.71-60.86,122.81-329.71-882.38c-1.19-3.17-2.33-6.37-3.44-9.59l71.95-505.75c42.35-78.96,97.59-152.06,163.21-211.45l541.2-489.89,66.89,74.35,87.56,97.32c124.93,138.85,141.13,436.45,35.38,649.87Z"/><path fill="#fff" d="M4723.87,3339.65l-1093.38,989.71c-87.45,79.16-182.61,115.97-254.55,98.46-48.02-11.69-83.39-47.1-105.12-105.25l-26.86-71.89c.21-.42.41-.83.62-1.25l654.81-1321.45c67.88-136.98,99.36-301.15,88.64-462.25-11.04-166.03-65.93-311.7-154.54-410.19l-87.97-97.77,404.13-365.81c87.45-79.16,182.61-115.97,254.55-98.46,48.02,11.69,83.39,47.1,105.11,105.25l419.71,1123.26c65.38,174.96-28.57,457.81-205.15,617.64Z"/><path fill="url(#{{ uid }}g14a)" d="M3056.27,2581.67l540.98-489.68-66.89-74.35-66.89-74.34-541.42,490.09c-34.48,31.22-66.75,66.01-96.33,103.64,6.36,61.34,6.52,122.59.23,181.95l-71.95,505.75-29.64,206.77,298.85,799.81c15.18-21.15,29.35-44.82,42.17-70.68l21.77-43.93,60.86-122.81-296.9-794.57c-65.37-174.97,28.58-457.81,205.16-617.65Z"/><path fill="#fff" d="M1926.21,3394.65c-124.93-138.85-141.13-436.46-35.38-649.87l353.54-713.47-86.91-49.82-356.23,718.89c-124.39,251.03-101.72,591.81,50.64,761.15l574.59,638.64,18.48-128.96-518.73-576.56ZM3684.81,2189.31l-87.56-97.32-66.89-74.35-66.89-74.34-580.67-645.4c-36.29-40.34-75.92-60.7-118.03-60.7-6.06,0-12.17.42-18.34,1.27-73.35,10.06-148.41,79.17-200.79,184.86l-212.3,428.44,153.87,88.2c114.94,65.89,212.58,187.13,274.93,341.4,33.16,82.06,54.57,168.96,63.58,255.66,6.36,61.34,6.52,122.59.23,181.95l-71.95,505.75-29.64,206.77-105.14,733.41,109,121.15c36.29,40.34,75.92,60.7,118.03,60.7,6.06,0,12.17-.42,18.34-1.27,55.4-7.6,111.78-48.89,158.62-114.18,15.18-21.15,29.35-44.82,42.17-70.68l21.77-43.93,60.86-122.81,572.18-1154.71c105.75-213.42,89.55-511.02-35.38-649.87Z"/><path fill="url(#{{ uid }}g14b)" d="M1926.21,3394.65c-124.93-138.85-141.13-436.46-35.38-649.87l353.54-713.47-86.91-49.82-86.92-49.82-358.91,724.31c-67.88,136.98-99.36,301.15-88.64,462.25,11.04,166.02,65.93,311.7,154.54,410.19l628.59,698.66c3.6-15.21,6.59-31.04,8.94-47.42l11.4-79.49,18.48-128.96-518.73-576.56Z"/><path fill="#fff" d="M2624.35,2719.79l-179.41,1251.42-18.48,128.96-11.4,79.49c-2.35,16.38-5.34,32.21-8.94,47.42-22.07,93.22-66.84,162.99-124.06,190.91-18.29,8.93-37.5,13.39-57.54,13.38-28.6,0-58.89-9.09-90.56-27.24l-1040.33-596.3c-162.04-92.88-270.39-370.53-236.59-606.3l209.28-1459.87c16.74-116.76,66.46-205.86,133-238.33,18.3-8.92,37.51-13.38,57.55-13.38,28.6,0,58.88,9.09,90.56,27.24l723.11,414.48,86.92,49.82,86.91,49.82,143.38,82.18c162.05,92.88,270.39,370.53,236.6,606.3Z"/><path fill="url(#{{ uid }}g14c)" d="M2754,3224.73l68.32-476.56c1.39-9.67,2.6-19.4,3.63-29.19l-71.95,505.75Z"/></svg>
{%- else -%}
<svg viewBox="795 735 4200 4200" xmlns="http://www.w3.org/2000/svg" focusable="false"><defs><mask id="{{ uid }}m" maskUnits="userSpaceOnUse" x="0" y="0" width="5669.29" height="5669.29"><path fill="#fff" d="M3720.19,2839.18l-572.18,1154.71-60.86,122.81-329.71-882.38c-1.19-3.17-2.33-6.37-3.44-9.59l71.95-505.75c42.35-78.96,97.59-152.06,163.21-211.45l541.2-489.89,66.89,74.35,87.56,97.32c124.93,138.85,141.13,436.45,35.38,649.87Z"/><path fill="#fff" d="M4723.87,3339.65l-1093.38,989.71c-87.45,79.16-182.61,115.97-254.55,98.46-48.02-11.69-83.39-47.1-105.12-105.25l-26.86-71.89c.21-.42.41-.83.62-1.25l654.81-1321.45c67.88-136.98,99.36-301.15,88.64-462.25-11.04-166.03-65.93-311.7-154.54-410.19l-87.97-97.77,404.13-365.81c87.45-79.16,182.61-115.97,254.55-98.46,48.02,11.69,83.39,47.1,105.11,105.25l419.71,1123.26c65.38,174.96-28.57,457.81-205.15,617.64Z"/><path fill="#000" d="M3056.27,2581.67l540.98-489.68-66.89-74.35-66.89-74.34-541.42,490.09c-34.48,31.22-66.75,66.01-96.33,103.64,6.36,61.34,6.52,122.59.23,181.95l-71.95,505.75-29.64,206.77,298.85,799.81c15.18-21.15,29.35-44.82,42.17-70.68l21.77-43.93,60.86-122.81-296.9-794.57c-65.37-174.97,28.58-457.81,205.16-617.65Z"/><path fill="#fff" d="M1926.21,3394.65c-124.93-138.85-141.13-436.46-35.38-649.87l353.54-713.47-86.91-49.82-356.23,718.89c-124.39,251.03-101.72,591.81,50.64,761.15l574.59,638.64,18.48-128.96-518.73-576.56ZM3684.81,2189.31l-87.56-97.32-66.89-74.35-66.89-74.34-580.67-645.4c-36.29-40.34-75.92-60.7-118.03-60.7-6.06,0-12.17.42-18.34,1.27-73.35,10.06-148.41,79.17-200.79,184.86l-212.3,428.44,153.87,88.2c114.94,65.89,212.58,187.13,274.93,341.4,33.16,82.06,54.57,168.96,63.58,255.66,6.36,61.34,6.52,122.59.23,181.95l-71.95,505.75-29.64,206.77-105.14,733.41,109,121.15c36.29,40.34,75.92,60.7,118.03,60.7,6.06,0,12.17-.42,18.34-1.27,55.4-7.6,111.78-48.89,158.62-114.18,15.18-21.15,29.35-44.82,42.17-70.68l21.77-43.93,60.86-122.81,572.18-1154.71c105.75-213.42,89.55-511.02-35.38-649.87Z"/><path fill="#000" d="M1926.21,3394.65c-124.93-138.85-141.13-436.46-35.38-649.87l353.54-713.47-86.91-49.82-86.92-49.82-358.91,724.31c-67.88,136.98-99.36,301.15-88.64,462.25,11.04,166.02,65.93,311.7,154.54,410.19l628.59,698.66c3.6-15.21,6.59-31.04,8.94-47.42l11.4-79.49,18.48-128.96-518.73-576.56Z"/><path fill="#fff" d="M2624.35,2719.79l-179.41,1251.42-18.48,128.96-11.4,79.49c-2.35,16.38-5.34,32.21-8.94,47.42-22.07,93.22-66.84,162.99-124.06,190.91-18.29,8.93-37.5,13.39-57.54,13.38-28.6,0-58.89-9.09-90.56-27.24l-1040.33-596.3c-162.04-92.88-270.39-370.53-236.59-606.3l209.28-1459.87c16.74-116.76,66.46-205.86,133-238.33,18.3-8.92,37.51-13.38,57.55-13.38,28.6,0,58.88,9.09,90.56,27.24l723.11,414.48,86.92,49.82,86.91,49.82,143.38,82.18c162.05,92.88,270.39,370.53,236.6,606.3Z"/><path fill="#000" d="M2754,3224.73l68.32-476.56c1.39-9.67,2.6-19.4,3.63-29.19l-71.95,505.75Z"/></mask></defs><rect width="5669.29" height="5669.29" fill="currentColor" mask="url(#{{ uid }}m)"/></svg>
{%- endif -%}</span>
{%- endmacro %}
{% macro logo(uid='pl', tone='color', size=40, variant='lockup') -%}
<span class="ps-logo ps-logo--{{ tone }}" role="img" aria-label="ИИ Пресс-секретарь" style="--ps-logo-size: {{ size }}px">
{{ mark(uid, tone, size) }}
{%- if variant == 'lockup' %}<span class="ps-logo-word" aria-hidden="true"><span class="ps-logo-ai">ИИ</span><span class="ps-logo-name">Пресс-секретарь</span></span>{% endif %}</span>
{%- endmacro %}