Commit Graph

8 Commits

Author SHA1 Message Date
ahasani 261ab28447 fix: update environment variables in Dockerfile and use config for host in sitemap generation 2025-06-11 17:01:46 +03:30
ahasani a6da045e19 feat: update product categories data structure and implement sitemap generation
- Refactored product categories to use a new data structure.
- Updated API routes to fetch product categories from the new data source.
- Implemented sitemap generation script using dotenv for environment variables.
- Added sitemap generation endpoint to the API.
- Removed old sitemap file and replaced it with a dynamically generated one.
2025-06-11 15:42:49 +03:30
zahravaziri 3e9143f32c submit form contactus and start api projects 2025-06-09 17:14:44 +03:30
ahasani 429256f512 feat: refactor product components and add sitemap support
- Updated product components to use new IPageParams interface for better type safety.
- Added next-sitemap configuration and generated sitemap.xml and robots.txt files.
- Removed deprecated ProductCard component and its associated types.
- Enhanced internationalization support across various pages.
2025-06-09 11:29:54 +03:30
ahasani 7073310a22 feat: add product generation and pagination components
- Implemented product generation for categories with a helper function to create 50 products per category.
- Added image assets for English and Persian language support.
- Created a reusable Pagination component for navigating through product lists.
- Developed ProductList component to display products with pagination support.
- Defined TypeScript interfaces for product list props and API response structure.
2025-06-08 15:52:05 +03:30
ahasani 0bd5060580 feat: Add Docker support and improve API structure
- Introduced Dockerfile and .dockerignore for containerization.
- Removed unused API route `src/app/api/hello/route.ts`.
- Added new API route for fetching products by category.
- Enhanced existing product category API to include descriptions.
- Updated product categories data structure to include descriptions.
- Improved product fetching logic in the product categories page.
- Refactored breadcrumb component for better navigation.
- Added new AchievementIconWhite component for UI consistency.
- Updated Navbar to use routeFactory for better maintainability.
- Enhanced styling in various components for improved responsiveness.
- Removed obsolete language switcher component.
2025-06-05 16:03:59 +03:30
ahasani 49e7d4a8f7 feat: add product category components and services
- Implemented ProductCategoryCard component for displaying product categories with icons, titles, and counts.
- Created ProductCategoryCardInProducts component for rendering product categories in a product context.
- Defined TypeScript interfaces for product category props.
- Added ProductCard component for individual product display with image and title.
- Established Axios instance for API calls with request and response interceptors.
- Developed services for fetching product categories and category details from the API.
2025-06-03 17:13:44 +03:30
ahasani d81d32fe4b initial 2025-05-31 13:17:46 +03:30