diff --git a/src/components/home/GovernmentSection.tsx b/src/components/home/GovernmentSection.tsx index 0b2746102..a13d25385 100644 --- a/src/components/home/GovernmentSection.tsx +++ b/src/components/home/GovernmentSection.tsx @@ -1,5 +1,5 @@ import { FC } from 'react'; -import { Card, CardContent } from '../ui/Card'; +import { Card } from '../ui/Card'; import { useTranslation } from 'react-i18next'; const GovernmentSection: FC = () => { @@ -23,6 +23,8 @@ const GovernmentSection: FC = () => { ), + image: + 'https://res.klook.com/images/fl_lossy.progressive,q_65/c_fill,w_1200,h_630/w_80,x_15,y_15,g_south_west,l_Klook_water_br_trans_yhcmh3/activities/iohofxdjvly3h69yfiwv/San%20Miguel%20%2B%20Malaca%C3%B1ang%20Palace%20Guided%20Walking%20Tour%20in%20Manila%2C%20Philippines.jpg', link: '/government/executive', }, { @@ -43,6 +45,8 @@ const GovernmentSection: FC = () => { ), + image: + 'https://www.bworldonline.com/wp-content/uploads/2021/08/Congress-072417-PCOO.jpg', link: '/government/legislative', }, { @@ -65,12 +69,14 @@ const GovernmentSection: FC = () => { ), + image: + 'https://sc.judiciary.gov.ph/wp-content/uploads/2023/05/SC-Facade-768x312.png', link: '/government/judiciary', }, ]; return ( - + @@ -84,31 +90,40 @@ const GovernmentSection: FC = () => { {branches.map(branch => ( - - {branch.icon} - - {branch.title} - - {branch.description} - - {t('government.learnMore')} - + + + + + + + {branch.title} + + {branch.description} + - - - - - + {t('government.learnMore')} + + + + + + + ))} diff --git a/src/components/home/Hero.tsx b/src/components/home/Hero.tsx index b9568bd39..e600c7970 100644 --- a/src/components/home/Hero.tsx +++ b/src/components/home/Hero.tsx @@ -68,7 +68,7 @@ const Hero: FC = () => { ]; return ( - + {/* Left section with title and search */} @@ -99,7 +99,7 @@ const Hero: FC = () => { {/* Right section with quick access services */} - + {t('services.title')} @@ -108,9 +108,9 @@ const Hero: FC = () => { to={`/services?category=${findCategorySlug( 'Certificates and IDs' )}`} - className='bg-white/10 hover:bg-white/20 rounded-lg p-4 transition-all duration-200 flex flex-col items-center text-center' + className='bg-white/10 hover:bg-white/20 rounded-lg p-4 transition-all duration-200 flex gap-2 items-center text-center' > - + { to={`/services?category=${findCategorySlug( 'Business and Trade' )}`} - className='bg-white/10 hover:bg-white/20 rounded-lg p-4 transition-all duration-200 flex flex-col items-center text-center' + className='bg-white/10 hover:bg-white/20 rounded-lg p-4 transition-all duration-200 flex gap-2 items-center text-center' > - + { - + { - + { // Function to get weather icon component const getWeatherIcon = (iconName: string) => { - const Icon = LucideIcons[iconName as keyof typeof LucideIcons]; + const Icon = LucideIcons[ + iconName as keyof typeof LucideIcons + ] as React.ComponentType<{ className?: string }>; return Icon ? : null; }; @@ -77,7 +79,7 @@ const InfoWidgets: FC = () => { }, []); return ( - + @@ -89,7 +91,7 @@ const InfoWidgets: FC = () => { {/* Weather Widget */} - + @@ -154,7 +156,7 @@ const InfoWidgets: FC = () => { {/* Forex Widget */} - + diff --git a/src/components/home/JoinUsStrip.tsx b/src/components/home/JoinUsStrip.tsx index 34bbc3961..f3076053f 100644 --- a/src/components/home/JoinUsStrip.tsx +++ b/src/components/home/JoinUsStrip.tsx @@ -25,9 +25,6 @@ const JoinUsStrip: FC = () => { - - - {t('joinUs.stripTitle')} diff --git a/src/components/home/NewsSection.tsx b/src/components/home/NewsSection.tsx index cf3afca2d..c5b32a8d7 100644 --- a/src/components/home/NewsSection.tsx +++ b/src/components/home/NewsSection.tsx @@ -9,7 +9,7 @@ const NewsSection: FC = () => { const { t } = useTranslation('common'); return ( - + diff --git a/src/components/home/PromotionBanner.tsx b/src/components/home/PromotionBanner.tsx index 843a9ab15..16d143c4b 100644 --- a/src/components/home/PromotionBanner.tsx +++ b/src/components/home/PromotionBanner.tsx @@ -7,7 +7,7 @@ const PromotionBanner: FC = () => { const { t } = useTranslation('common'); return ( - + diff --git a/src/components/home/ServicesSection.tsx b/src/components/home/ServicesSection.tsx index 33e8bcf24..b2de5717e 100644 --- a/src/components/home/ServicesSection.tsx +++ b/src/components/home/ServicesSection.tsx @@ -1,6 +1,6 @@ import { FC } from 'react'; import * as LucideIcons from 'lucide-react'; -import { Card, CardContent } from '../ui/Card'; +import { Card } from '../ui/Card'; import serviceCategories from '../../data/service_categories.json'; import { Link } from 'react-router-dom'; import { useTranslation } from 'react-i18next'; @@ -35,7 +35,9 @@ const ServicesSection: FC = () => { 'Transport and Driving': 'Car', }; - const Icon = LucideIcons[iconMap[category] || 'FileText']; + const Icon = LucideIcons[ + iconMap[category] || 'FileText' + ] as React.ComponentType<{ className?: string }>; return Icon ? : null; }; @@ -46,7 +48,7 @@ const ServicesSection: FC = () => { ) as Category[]; return ( - + @@ -57,46 +59,45 @@ const ServicesSection: FC = () => { - + {displayedCategories.map(category => ( - - - + + + {getIcon(category.category)} - + {category.category} - - {category.subcategories.slice(0, 3).map(subcategory => ( - - - - {subcategory.name} - - - ))} - - - {t('services.viewAllCategory')} {category.category} - + View All + - + + + {category.subcategories.slice(0, 3).map(subcategory => ( + + + + {subcategory.name} + + + ))} + ))} diff --git a/src/components/layout/Footer.tsx b/src/components/layout/Footer.tsx index 5c045410d..3f86a1ccc 100644 --- a/src/components/layout/Footer.tsx +++ b/src/components/layout/Footer.tsx @@ -49,7 +49,7 @@ const Footer: FC = () => { return (
{branch.description}
View All