@@ -59,10 +59,10 @@ const titleClasses = cn(
5959 'text-gray-900 dark:text-white text-md font-bold leading-[1.25] md:text-lg mb-5 md:mb-[1.875rem]' ,
6060)
6161const addressIconParentClasses = cn (
62- 'w-10 h-10 rounded-5 inline-grid place-items-center dark:bg-accent-700 border border-accent-800 dark:border-transparent text-primary flex-none' ,
62+ 'w-10 h-10 rounded-5 inline-grid place-items-center dark:bg-accent-700 border border-accent-800 dark:border-transparent text-accent flex-none' ,
6363)
6464const addressItemClasses = cn ( 'flex items-center gap-5' )
65- const textColor = cn ( 'transition-colors duration-300 hover:text-primary dark:hover:text-white' )
65+ const textColor = cn ( 'transition-colors duration-300 hover:text-accent dark:hover:text-white' )
6666
6767export function Footer ( { className, footerData, logoLight, logoDark } : SectionProps ) {
6868 const { about, columnOne, columnTwo, columnThree, footerBottom } = footerData
@@ -78,11 +78,11 @@ export function Footer({ className, footerData, logoLight, logoDark }: SectionPr
7878 < div className = "grid gap-10 md:grid-cols-2 xl:grid-cols-4" >
7979 { /* About */ }
8080 < div data-aos = "fade-up" data-aos-delay = "200" >
81- < BrandLogo logoLight = { logoLight } logoDark = { logoDark } />
81+ < BrandLogo logoLight = { logoLight } logoDark = { logoDark } />
8282 < p className = "mb-7 mt-3" > { about . description } </ p >
8383 { about . socialLinks && about . socialLinks . length > 0 && (
8484 < nav aria-label = "social links" >
85- < ul className = "inline-flex min-h-[50px] items-center divide-x rounded-5 bg-primary text-white" >
85+ < ul className = "inline-flex min-h-[50px] items-center divide-x rounded-5 bg-accent text-white" >
8686 { about . socialLinks . map ( ( socialLink , index ) => (
8787 < li key = { index } >
8888 < CustomLink
@@ -149,11 +149,12 @@ export function Footer({ className, footerData, logoLight, logoDark }: SectionPr
149149 </ div >
150150 ) }
151151 </ li >
152- < li className = { addressItemClasses } >
153- < span className = { addressIconParentClasses } >
154- < FaPhone />
155- </ span >
156- { columnTwo . phoneNumbers && columnTwo . phoneNumbers . length > 0 && (
152+ { columnTwo . phoneNumbers && columnTwo . phoneNumbers . length > 0 && (
153+ < li className = { addressItemClasses } >
154+ < span className = { addressIconParentClasses } >
155+ < FaPhone />
156+ </ span >
157+
157158 < div className = "grid gap-1" >
158159 { columnTwo . phoneNumbers . map ( ( phoneNumber , index ) => (
159160 < a
@@ -165,57 +166,59 @@ export function Footer({ className, footerData, logoLight, logoDark }: SectionPr
165166 </ a >
166167 ) ) }
167168 </ div >
168- ) }
169- </ li >
169+ </ li >
170+ ) }
170171 </ ul >
171172 </ div >
172173
173174 { /* Column three */ }
174- < div data-aos = "fade-up" data-aos-delay = "800" >
175- < h3 className = { titleClasses } > { columnThree . title } </ h3 >
176- { columnThree . blogs && columnThree . blogs . length > 0 && (
177- < div className = "grid gap-6" >
178- { columnThree . blogs . map ( ( blog , index ) => (
179- < article
180- key = { index }
181- className = "group flex items-center gap-4 text-accent-800 dark:text-white"
182- >
183- < div className = "flex-none overflow-hidden rounded-5" >
184- < Image
185- { ...blog . image }
186- alt = { blog . image . alt }
187- width = { 80 }
188- height = { 80 }
189- className = "object-cover transition-transform duration-700 group-hover:scale-105"
190- />
191- </ div >
192- < div >
193- < p className = "flex items-center gap-2.5 dark:text-body" >
194- < span className = "text-primary" >
195- < FaCalendarDays />
196- </ span >
197- < span > { blog . date } </ span >
198- </ p >
199- < h4 className = "text-md font-bold leading-normal" >
200- < CustomLink
201- href = { blog . slug }
202- className = "transition-colors duration-300 hover:text-primary"
203- >
204- { blog . title }
205- </ CustomLink >
206- </ h4 >
207- </ div >
208- </ article >
209- ) ) }
210- </ div >
211- ) }
212- </ div >
175+ { columnThree && (
176+ < div data-aos = "fade-up" data-aos-delay = "800" >
177+ < h3 className = { titleClasses } > { columnThree . title } </ h3 >
178+ { columnThree . blogs && columnThree . blogs . length > 0 && (
179+ < div className = "grid gap-6" >
180+ { columnThree . blogs . map ( ( blog , index ) => (
181+ < article
182+ key = { index }
183+ className = "group flex items-center gap-4 text-accent-800 dark:text-white"
184+ >
185+ < div className = "flex-none overflow-hidden rounded-5" >
186+ < Image
187+ { ...blog . image }
188+ alt = { blog . image . alt }
189+ width = { 80 }
190+ height = { 80 }
191+ className = "object-cover transition-transform duration-700 group-hover:scale-105"
192+ />
193+ </ div >
194+ < div >
195+ < p className = "flex items-center gap-2.5 dark:text-body" >
196+ < span className = "text-accent" >
197+ < FaCalendarDays />
198+ </ span >
199+ < span > { blog . date } </ span >
200+ </ p >
201+ < h4 className = "text-md font-bold leading-normal" >
202+ < CustomLink
203+ href = { blog . slug }
204+ className = "transition-colors duration-300 hover:text-accent"
205+ >
206+ { blog . title }
207+ </ CustomLink >
208+ </ h4 >
209+ </ div >
210+ </ article >
211+ ) ) }
212+ </ div >
213+ ) }
214+ </ div >
215+ ) }
213216 </ div >
214217 </ div >
215218 </ div >
216219 < div className = "flex min-h-[90px] items-center border-t border-accent-800 border-opacity-20 py-5 dark:border-body dark:border-opacity-20" >
217- < div className = "container" >
218- < div className = "flex flex-wrap items-center justify-between gap-x-8 gap-y-4 md:gap-x-10" >
220+ < div className = "container" >
221+ < div className = "flex flex-wrap items-center justify-between gap-x-8 gap-y-4 md:gap-x-10" >
219222 < p > { footerBottom . copyrightText } </ p >
220223 { footerBottom . links && footerBottom . links . length > 0 && (
221224 < nav aria-label = "footer bottom navigation" >
0 commit comments