Finish admin page

This commit is contained in:
Nông Đức Huy
2026-08-13 23:20:23 +07:00
parent cda5d21d0d
commit 8fd23d162f
107 changed files with 6321 additions and 563 deletions
@@ -235,7 +235,7 @@ export function ContentEditor({
// A language with no title yet is not written — worth showing,
// because an operator switching tabs needs to know which
// versions will actually be saved.
!draft.translations[key].title.trim() && locale !== key ? 'text-ink-400' : '',
!draft.translations[key].title.trim() && locale !== key ? 'text-ink-500' : '',
)}
>
{key}
@@ -258,7 +258,7 @@ export function ContentEditor({
onChange={(event) => setField('slug', event.target.value)}
placeholder="how-to-layer"
/>
<span className="text-ink-400 text-xs">{t('slugHint')}</span>
<span className="text-ink-500 text-xs">{t('slugHint')}</span>
</label>
</div>
@@ -269,7 +269,7 @@ export function ContentEditor({
value={fields.excerpt}
onChange={(event) => setField('excerpt', event.target.value)}
/>
<span className="text-ink-400 text-xs">{t('excerptHint')}</span>
<span className="text-ink-500 text-xs">{t('excerptHint')}</span>
</label>
) : null}
@@ -282,7 +282,7 @@ export function ContentEditor({
spellCheck
className="border-ink-200 focus:border-ink-950 w-full border px-3 py-2 font-mono text-sm leading-relaxed outline-none"
/>
<span className="text-ink-400 text-xs">{t('bodyHint')}</span>
<span className="text-ink-500 text-xs">{t('bodyHint')}</span>
</label>
<details className="border-ink-200 border p-4">