blog + announcement

This commit is contained in:
hamid zarghami
2025-04-19 15:35:57 +03:30
parent 5666e05dd8
commit 1047e1dedb
3 changed files with 21 additions and 66 deletions
+4 -1
View File
@@ -295,7 +295,10 @@
"OTHER_SERVICES_TOP": "بالای سایر سرویس ها",
"OTHER_SERVICES_LEFT": "سمت چپ سایر سرویس ها",
"SERVICE": "سرویس",
"file_error": "فایل مورد نظر باید انتخاب شود"
"file_error": "فایل مورد نظر باید انتخاب شود",
"BLOG_PAGE_TOP_RIGHT": "بالای صفحه بلاگ راست",
"BLOG_PAGE_BOTTOM_RIGHT": "پایین صفحه بلاگ راست",
"BLOG_PAGE_TOP_LEFT": "بالای صفحه بلاگ چپ"
},
"discount": {
"list": "لیست تخفیفات",
+14 -65
View File
@@ -147,72 +147,21 @@ const CreateAd: FC = () => {
<p className='mt-6 text-sm'>{t('ads.location')}</p>
<div className='p-2 border border-[##D0D0D0] rounded-lg mt-1'>
<div className='flex items-center py-2'>
<div>
<CheckBoxComponent
checked={formik.values.displayLocation === AdsDisplayLocation.HOMEPAGE_TOP}
onChange={() => formik.setFieldValue('displayLocation', AdsDisplayLocation.HOMEPAGE_TOP)}
/>
{Object.values(AdsDisplayLocation).map((location) => (
<div className='flex items-center py-2' key={location}>
<div>
<CheckBoxComponent
checked={formik.values.displayLocation === location}
onChange={() => formik.setFieldValue('displayLocation', location)}
/>
</div>
<div className='text-description text-xs leading-5'>
{t(`ads.${location}`)}
</div>
</div>
<div className='text-description text-xs leading-5'>
{t(`ads.${AdsDisplayLocation.HOMEPAGE_TOP}`)}
</div>
</div>
<div className='flex items-center py-2'>
<div>
<CheckBoxComponent
checked={formik.values.displayLocation === AdsDisplayLocation.SINGLE_SERVICE_PAGE}
onChange={() => formik.setFieldValue('displayLocation', AdsDisplayLocation.SINGLE_SERVICE_PAGE)}
/>
</div>
<div className='text-description text-xs leading-5'>
{t(`ads.${AdsDisplayLocation.SINGLE_SERVICE_PAGE}`)}
</div>
</div>
<div className='flex items-center py-2'>
<div>
<CheckBoxComponent
checked={formik.values.displayLocation === AdsDisplayLocation.MY_SERVICES_PAGE}
onChange={() => formik.setFieldValue('displayLocation', AdsDisplayLocation.MY_SERVICES_PAGE)}
/>
</div>
<div className='text-description text-xs leading-5'>
{t(`ads.${AdsDisplayLocation.MY_SERVICES_PAGE}`)}
</div>
</div>
<div className='flex items-center py-2'>
<div>
<CheckBoxComponent
checked={formik.values.displayLocation === AdsDisplayLocation.OTHER_SERVICES_TOP}
onChange={() => formik.setFieldValue('displayLocation', AdsDisplayLocation.OTHER_SERVICES_TOP)}
/>
</div>
<div className='text-description text-xs leading-5'>
{t(`ads.${AdsDisplayLocation.OTHER_SERVICES_TOP}`)}
</div>
</div>
<div className='flex items-center py-2'>
<div>
<CheckBoxComponent
checked={formik.values.displayLocation === AdsDisplayLocation.OTHER_SERVICES_LEFT}
onChange={() => formik.setFieldValue('displayLocation', AdsDisplayLocation.OTHER_SERVICES_LEFT)}
/>
</div>
<div className='text-description text-xs leading-5'>
{t(`ads.${AdsDisplayLocation.OTHER_SERVICES_LEFT}`)}
</div>
</div>
<div className='flex items-center py-2'>
<div>
<CheckBoxComponent
checked={formik.values.displayLocation === AdsDisplayLocation.SERVICE}
onChange={() => formik.setFieldValue('displayLocation', AdsDisplayLocation.SERVICE)}
/>
</div>
<div className='text-description text-xs leading-5'>
{t(`ads.${AdsDisplayLocation.SERVICE}`)}
</div>
</div>
))}
</div>
<div className='mt-8'>
+3
View File
@@ -16,6 +16,9 @@ export enum AdsDisplayLocation {
OTHER_SERVICES_TOP = "OTHER_SERVICES_TOP",
OTHER_SERVICES_LEFT = "OTHER_SERVICES_LEFT",
SERVICE = "SERVICE",
BLOG_PAGE_TOP_RIGHT = "BLOG_PAGE_TOP_RIGHT",
BLOG_PAGE_BOTTOM_RIGHT = "BLOG_PAGE_BOTTOM_RIGHT",
BLOG_PAGE_TOP_LEFT = "BLOG_PAGE_TOP_LEFT",
}
export type AdsItemType = {