@rmdes/indiekit-endpoint-homepage 1.0.7 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/locales/en.json +3 -1
- package/package.json +1 -1
- package/views/homepage-dashboard.njk +14 -0
package/locales/en.json
CHANGED
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
"title": "Quick Start",
|
|
7
7
|
"description": "Choose a preset to quickly configure your homepage. You can customize it further below.",
|
|
8
8
|
"apply": "Apply",
|
|
9
|
-
"active": "Active"
|
|
9
|
+
"active": "Active",
|
|
10
|
+
"custom": "Custom",
|
|
11
|
+
"customDescription": "Your own customized layout"
|
|
10
12
|
},
|
|
11
13
|
"saved": "Configuration saved successfully. Refresh your homepage to see changes.",
|
|
12
14
|
"save": "Save Configuration",
|
package/package.json
CHANGED
|
@@ -342,6 +342,20 @@
|
|
|
342
342
|
{% endif %}
|
|
343
343
|
</form>
|
|
344
344
|
{% endfor %}
|
|
345
|
+
{# Custom card — shown as active when config doesn't match any preset #}
|
|
346
|
+
<div class="hp-preset-card {% if not activePresetId %}hp-preset-card--active{% endif %}">
|
|
347
|
+
<div class="hp-preset-card__icon">
|
|
348
|
+
<svg width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
|
|
349
|
+
<line x1="4" y1="21" x2="4" y2="14"/><line x1="4" y1="10" x2="4" y2="3"/><line x1="12" y1="21" x2="12" y2="12"/><line x1="12" y1="8" x2="12" y2="3"/><line x1="20" y1="21" x2="20" y2="16"/><line x1="20" y1="12" x2="20" y2="3"/>
|
|
350
|
+
<line x1="1" y1="14" x2="7" y2="14"/><line x1="9" y1="8" x2="15" y2="8"/><line x1="17" y1="16" x2="23" y2="16"/>
|
|
351
|
+
</svg>
|
|
352
|
+
</div>
|
|
353
|
+
<div class="hp-preset-card__label">{{ __("homepage.presets.custom") }}</div>
|
|
354
|
+
<div class="hp-preset-card__desc">{{ __("homepage.presets.customDescription") }}</div>
|
|
355
|
+
{% if not activePresetId %}
|
|
356
|
+
<div class="hp-preset-card__badge">{{ __("homepage.presets.active") }}</div>
|
|
357
|
+
{% endif %}
|
|
358
|
+
</div>
|
|
345
359
|
</div>
|
|
346
360
|
</section>
|
|
347
361
|
{% endif %}
|