Refactor code structure for improved readability and maintainability

This commit is contained in:
hamed
2026-06-10 20:45:13 +03:30
parent 916bdaaeb0
commit 7fb805be27
32 changed files with 2808 additions and 2877 deletions
+7 -7
View File
@@ -107,29 +107,29 @@ export default function BlogFormPage() {
<div className="grid grid-cols-1 lg:grid-cols-3 gap-6">
<div className="lg:col-span-2 space-y-5">
<div>
<label className="cp-label">عنوان مقاله *</label>
<label className="">عنوان مقاله *</label>
<input {...register('title')} placeholder="عنوان جذاب بنویسید..."
className="cp-input h-11" />
{errors.title && <p className="text-red-500 text-xs mt-1">{errors.title.message}</p>}
</div>
<div>
<label className="cp-label">خلاصه</label>
<label className="">خلاصه</label>
<textarea {...register('summary')} rows={2} placeholder="خلاصه کوتاه مقاله..."
className="cp-textarea resize-none" />
className="input resize-none" />
</div>
<div>
<label className="cp-label">محتوا *</label>
<label className="">محتوا *</label>
<textarea {...register('content')} rows={16} placeholder="محتوای مقاله را بنویسید..."
className="cp-textarea resize-none font-mono" />
className="input resize-none font-mono" />
{errors.content && <p className="text-red-500 text-xs mt-1">{errors.content.message}</p>}
</div>
</div>
<div className="space-y-5">
<div>
<label className="cp-label">وضعیت انتشار</label>
<label className="">وضعیت انتشار</label>
<Controller
control={control}
name="status"
@@ -144,7 +144,7 @@ export default function BlogFormPage() {
</div>
<div>
<label className="cp-label">تگها (با ویرگول جدا کنید)</label>
<label className="">تگها (با ویرگول جدا کنید)</label>
<input {...register('tags')} dir="ltr" placeholder="tag1, tag2, tag3"
className="cp-input h-11" />
</div>