fix(project-editor): validate footer payment/social links, add footer logo picker

- header-section: raw checkboxes -> app-toggle, wrap in SectionCard
- footer-section: replace unvalidated pipe-delimited textareas for payment
  icons/social links with KeyValueEditor + MediaPickerComponent, add missing
  footer logo picker, validate social link URLs (http/https), wrap in SectionCard
- i18n: add footer logo / key-value-editor labels and URL validation message

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
sdarbinyan
2026-07-16 02:06:26 +04:00
parent ccbf8c6e5c
commit 475e5ad528
8 changed files with 199 additions and 27 deletions

View File

@@ -1,14 +1,13 @@
@if (bootstrap(); as bootstrap) {
<section class="editor-section-card">
<h2>{{ 'builder.header' | translate }}</h2>
<app-section-card [title]="'builder.header' | translate">
<div class="editor-grid three toggles">
@for (item of items; track item.key) {
<label class="toggle-row">
<input type="checkbox" [checked]="isChecked(item.key)" (change)="toggle(item.key, $any($event.target).checked)" />
<app-toggle [ngModel]="isChecked(item.key)" (ngModelChange)="toggle(item.key, $event)" [ariaLabel]="item.label | translate" />
<span>{{ item.label | translate }}</span>
<small class="field-desc">{{ item.descKey | translate }}</small>
</label>
}
</div>
</section>
</app-section-card>
}