version 0.2.0 replaces fromer version!
This commit is contained in:
6
adapters/django/templates/whynot/_banner.html
Normal file
6
adapters/django/templates/whynot/_banner.html
Normal file
@@ -0,0 +1,6 @@
|
||||
{# Banner.
|
||||
|
||||
{% include "whynot/_banner.html" with variant="success" title="Promoted" body="WNO-017 was promoted to Helix." %} #}
|
||||
<wn-banner variant="{{ variant|default:'info' }}"{% if title %} title="{{ title }}"{% endif %}{% if dismissible %} dismissible{% endif %}>
|
||||
{{ body }}
|
||||
</wn-banner>
|
||||
9
adapters/django/templates/whynot/_base_head.html
Normal file
9
adapters/django/templates/whynot/_base_head.html
Normal file
@@ -0,0 +1,9 @@
|
||||
{# Link & register the design system. Include in <head> of your base template.
|
||||
|
||||
{% include "whynot/_base_head.html" %}
|
||||
|
||||
Customise STATIC_URL prefix if your collectstatic layout differs. #}
|
||||
{% load static %}
|
||||
<link rel="stylesheet" href="{% static 'whynot/colors_and_type.css' %}">
|
||||
<link rel="stylesheet" href="{% static 'whynot/components.css' %}">
|
||||
<script type="module" src="{% static 'whynot/index.js' %}" defer></script>
|
||||
6
adapters/django/templates/whynot/_button.html
Normal file
6
adapters/django/templates/whynot/_button.html
Normal file
@@ -0,0 +1,6 @@
|
||||
{# Button.
|
||||
|
||||
{% include "whynot/_button.html" with label="Promote" variant="primary" icon="arrow-right" %}
|
||||
{% include "whynot/_button.html" with label="Cancel" %}
|
||||
{% include "whynot/_button.html" with label="Read" href="/docs" variant="ghost" %} #}
|
||||
<wn-button{% if variant %} variant="{{ variant }}"{% endif %}{% if icon %} icon="{{ icon }}"{% endif %}{% if href %} href="{{ href }}"{% endif %}{% if type %} type="{{ type }}"{% endif %}{% if disabled %} disabled{% endif %}>{{ label }}</wn-button>
|
||||
9
adapters/django/templates/whynot/_empty_state.html
Normal file
9
adapters/django/templates/whynot/_empty_state.html
Normal file
@@ -0,0 +1,9 @@
|
||||
{# Empty state.
|
||||
|
||||
{% include "whynot/_empty_state.html" with icon="activity" title="No signals yet." body="Lack of signal is also information." cta_label="Record a signal" cta_href="/signals/new/" %} #}
|
||||
<wn-empty-state{% if icon %} icon="{{ icon }}"{% endif %}{% if title %} title="{{ title }}"{% endif %}>
|
||||
{{ body }}
|
||||
{% if cta_label %}
|
||||
<wn-button slot="cta" variant="primary"{% if cta_href %} href="{{ cta_href }}"{% endif %}>{{ cta_label }}</wn-button>
|
||||
{% endif %}
|
||||
</wn-empty-state>
|
||||
4
adapters/django/templates/whynot/_eyebrow.html
Normal file
4
adapters/django/templates/whynot/_eyebrow.html
Normal file
@@ -0,0 +1,4 @@
|
||||
{# Eyebrow label.
|
||||
|
||||
{% include "whynot/_eyebrow.html" with text="Stage 3 · Experiment" %} #}
|
||||
<wn-eyebrow{% if strong %} strong{% endif %}>{{ text }}</wn-eyebrow>
|
||||
10
adapters/django/templates/whynot/_field_row.html
Normal file
10
adapters/django/templates/whynot/_field_row.html
Normal file
@@ -0,0 +1,10 @@
|
||||
{# Field row — label / value (+ optional aside).
|
||||
|
||||
{% include "whynot/_field_row.html" with label="Learning question" value=prototype.learning_question %}
|
||||
{% include "whynot/_field_row.html" with label="Target" value=prototype.target aside="2026-04-01" %}
|
||||
|
||||
For arbitrary value markup, write <wn-field-row> inline and slot children. #}
|
||||
<wn-field-row label="{{ label }}"{% if stacked %} stacked{% endif %}{% if narrow %} narrow{% endif %}>
|
||||
{{ value }}
|
||||
{% if aside %}<span slot="aside">{{ aside }}</span>{% endif %}
|
||||
</wn-field-row>
|
||||
6
adapters/django/templates/whynot/_page_header.html
Normal file
6
adapters/django/templates/whynot/_page_header.html
Normal file
@@ -0,0 +1,6 @@
|
||||
{# Page header with eyebrow, title, optional lede.
|
||||
|
||||
{% include "whynot/_page_header.html" with eyebrow="whynot · prototypes" title="Prototypes" lede="Structured prototype cards." %}
|
||||
|
||||
For actions, write the component inline rather than using this partial. #}
|
||||
<wn-page-header{% if eyebrow %} eyebrow="{{ eyebrow }}"{% endif %} title="{{ title }}"{% if lede %} lede="{{ lede }}"{% endif %}></wn-page-header>
|
||||
4
adapters/django/templates/whynot/_pipeline.html
Normal file
4
adapters/django/templates/whynot/_pipeline.html
Normal file
@@ -0,0 +1,4 @@
|
||||
{# Pipeline strip — 5 stages, active index 0–4.
|
||||
|
||||
{% include "whynot/_pipeline.html" with active_idx=3 %} #}
|
||||
<wn-pipeline active-idx="{{ active_idx|default:0 }}"></wn-pipeline>
|
||||
12
adapters/django/templates/whynot/_prototype_card.html
Normal file
12
adapters/django/templates/whynot/_prototype_card.html
Normal file
@@ -0,0 +1,12 @@
|
||||
{# Prototype card.
|
||||
|
||||
Context: `p` — a prototype-like object with attributes:
|
||||
id, signal, stage_label, pitch, learning, smallest_test, target, href
|
||||
|
||||
{% include "whynot/_prototype_card.html" with p=prototype %} #}
|
||||
<wn-prototype-card card-id="{{ p.id }}" signal="{{ p.signal }}" stage-label="{{ p.stage_label }}"{% if p.href %} href="{{ p.href }}"{% endif %}>
|
||||
<span slot="pitch">{{ p.pitch }}</span>
|
||||
<span slot="learning">{{ p.learning }}</span>
|
||||
<span slot="test">{{ p.smallest_test }}</span>
|
||||
<span slot="target">→ {{ p.target }}</span>
|
||||
</wn-prototype-card>
|
||||
4
adapters/django/templates/whynot/_stage_dot.html
Normal file
4
adapters/django/templates/whynot/_stage_dot.html
Normal file
@@ -0,0 +1,4 @@
|
||||
{# Signal-strength dot.
|
||||
|
||||
{% include "whynot/_stage_dot.html" with level="S2" label="Medium" %} #}
|
||||
<wn-stage-dot level="{{ level }}">{% if label %}{{ label }}{% else %}{{ level }}{% endif %}</wn-stage-dot>
|
||||
4
adapters/django/templates/whynot/_tag.html
Normal file
4
adapters/django/templates/whynot/_tag.html
Normal file
@@ -0,0 +1,4 @@
|
||||
{# Tag pill.
|
||||
|
||||
{% include "whynot/_tag.html" with text="Experiment" active=True %} #}
|
||||
<wn-tag{% if active %} active{% endif %}{% if draft %} draft{% endif %}>{{ text }}</wn-tag>
|
||||
Reference in New Issue
Block a user