Files
pasargad/src/app/api/blog/data.ts
T
ahasani 730e2d8ca8 feat: add certificate gallery and certifications section components
- Implemented CertificateGallery component to display certification images in a gallery format.
- Created CertificationsSection component to showcase certifications with titles and descriptions.
- Enhanced Gallery component to support animations and keyboard navigation.
- Introduced Select component for dropdown selection with images.
- Added utility functions for API responses and pagination handling.
- Implemented localization functions for text and content.
- Created a custom hook for detecting clicks outside of a component.
2026-07-19 07:59:16 +03:30

213 lines
7.7 KiB
TypeScript

import { IDynamicContent } from '@/models/dynamicContent';
export interface IPostThumbResponseData {
id: string;
title: string;
imageSrc: string;
}
export interface IPostResponseData extends IPostThumbResponseData {
content: IDynamicContent[];
}
export interface IPostData {
id: string;
title: string;
fa_title?: string;
imageSrc: string;
content: IDynamicContent[];
fa_content: IDynamicContent[];
}
export const posts: IPostData[] = [
{
id: '1',
title: 'Sustainable Practices Reducing Waste in Industrial Production',
fa_title: 'روش‌های پایدار برای کاهش ضایعات در تولید صنعتی',
imageSrc: '/images/project1.jpeg',
content: [
{
type: 'title',
data: 'Sustainable practices to reduce waste in industrial production',
},
{
type: 'content',
data: 'Sustainable manufacturing focuses on minimizing waste, optimizing resource use, and improving process efficiency. By adopting circular design, material recovery, and energy-efficient processes, manufacturers can reduce environmental impact while maintaining productivity and cost-effectiveness.',
},
{
type: 'bullet',
data: [
'Sustainable practices to reduce waste in industrial production',
'Advanced robotics transforming industrial processes',
'Key benefits of using robotics in manufacturing',
'Using data analytics for smarter production',
'Reducing costs through automation',
'Advantages of customized manufacturing solutions',
],
},
{
type: 'image',
data: {
src: '/images/project2.jpeg',
alt: '',
thumbTitle:
'Sample image illustrating sustainable manufacturing practices.',
},
},
{
type: 'numberList',
data: [
'Sustainable practices to reduce waste in industrial production',
'Advanced robotics transforming industrial processes',
'Key benefits of using robotics in manufacturing',
'Using data analytics for smarter production',
'Reducing costs through automation',
'Advantages of customized manufacturing solutions',
],
},
{
type: 'quote',
data: {
text: 'Sustainability starts with measurable, small operational improvements.',
author: 'Pasargad Bricks Team',
},
},
{
type: 'divider',
},
{
type: 'subtitle',
data: 'Explore related projects',
},
{
type: 'cta',
data: {
label: 'View Projects',
link: '/projects',
},
},
],
fa_content: [
{
type: 'title',
data: 'روش‌های پایدار برای کاهش ضایعات در تولید صنعتی',
},
{
type: 'content',
data: {
links: [
{
link: '/',
key: '_link',
label: 'ایپسوم',
},
],
data: 'لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ و با استفاده از طراحان گرافیک است. لورم ایپسوم\n متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ و با استفاده از طراحان گرافیک است. لورم _link متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ و با استفاده از طراحان گرافیک است. لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ و با استفاده از طراحان گرافیک است. لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ و با استفاده از طراحان گرافیک است. لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ و با استفاده\n از طراحان گرافیک است. لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ و با استفاده از طراحان گرافیک است.',
},
},
{
type: 'bullet',
data: [
'روش‌های پایدار برای کاهش ضایعات در تولید صنعتی',
'رباتیک پیشرفته و تحول فرآیندهای صنعتی',
'مزایای اصلی استفاده از رباتیک در تولید',
'استفاده از تحلیل داده برای تولید هوشمندتر',
'کاهش هزینه‌ها با اتوماسیون',
'مزایای راه‌حل‌های سفارشی‌سازی در تولید',
],
},
{
type: 'image',
data: {
src: '/images/project1.jpeg',
alt: '',
thumbTitle:
'لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ و با استفاده از طراحان گرافیک است.',
},
},
{
type: 'title',
data: 'روش‌های پایدار برای کاهش ضایعات در تولید صنعتی',
},
{
type: 'numberList',
data: [
'روش‌های پایدار برای کاهش ضایعات در تولید صنعتی',
'رباتیک پیشرفته و تحول فرآیندهای صنعتی',
'مزایای اصلی استفاده از رباتیک در تولید',
'استفاده از تحلیل داده برای تولید هوشمندتر',
'کاهش هزینه‌ها با اتوماسیون',
'مزایای راه‌حل‌های سفارشی‌سازی در تولید',
],
},
{
type: 'quote',
data: {
text: 'پایداری با بهبودهای کوچک اما مداوم در عملیات آغاز می‌شود.',
author: 'تیم آجر پاسارگاد',
},
},
{
type: 'divider',
},
{
type: 'subtitle',
data: 'مشاهده پروژه‌های مرتبط',
},
{
type: 'cta',
data: {
label: 'مشاهده پروژه‌ها',
link: '/projects',
},
},
],
},
{
id: '2',
title: 'Advanced Robotics Revolutionizing Industrial Workflows',
fa_title: 'رباتیک پیشرفته و تحول فرآیندهای صنعتی',
imageSrc: '/images/project2.jpeg',
content: [],
fa_content: [],
},
{
id: '3',
title: 'Top Benefits of the Robotics in Manufacturing',
fa_title: 'مزایای اصلی استفاده از رباتیک در تولید',
imageSrc: '/images/project4.jpeg',
content: [],
fa_content: [],
},
{
id: '4',
title: 'Leveraging Data Analytics for Smarter Production',
fa_title: 'استفاده از تحلیل داده برای تولید هوشمندتر',
imageSrc: '/images/project3.jpeg',
content: [],
fa_content: [],
},
{
id: '5',
title: 'Reducing Operational Costs Through Automation',
fa_title: 'کاهش هزینه‌ها با اتوماسیون',
imageSrc: '/images/project2.jpeg',
content: [],
fa_content: [],
},
{
id: '6',
title: 'The Advantages of Customized Manufacturing Solutions',
fa_title: 'مزایای راه‌حل‌های سفارشی‌سازی در تولید',
imageSrc: '/images/project4.jpeg',
content: [],
fa_content: [],
},
];
export function generatePosts(): IPostData[] {
return [...posts, ...posts, ...posts].map((e, i) => ({
...e,
id: String(i + 1),
}));
}