Change Header and Footer to white background

- Header: white background with dark text for navigation
- Footer: light gray background with dark text
- All text colors updated for readability
- No white text on white background issues
This commit is contained in:
Kunthawat Greethong
2026-02-26 09:29:26 +07:00
parent 88d06a4edd
commit e7adbd8e98
4 changed files with 22 additions and 22 deletions

BIN
homepage-white-theme.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 285 KiB

BIN
homepage.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 285 KiB

View File

@@ -4,7 +4,7 @@ import { siteConfig, workHours, mainNavigation } from '@/data/site-config';
export default function Footer() { export default function Footer() {
return ( return (
<footer className="bg-secondary-900 text-white"> <footer className="bg-secondary-50 text-secondary-900">
{/* Main Footer */} {/* Main Footer */}
<div className="container mx-auto px-4 py-12"> <div className="container mx-auto px-4 py-12">
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8"> <div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8">
@@ -17,7 +17,7 @@ export default function Footer() {
height={50} height={50}
className="h-10 w-auto mb-4" className="h-10 w-auto mb-4"
/> />
<p className="text-secondary-300 text-sm mb-4"> <p className="text-secondary-600 text-sm mb-4">
{siteConfig.description} {siteConfig.description}
</p> </p>
<div className="flex gap-3"> <div className="flex gap-3">
@@ -25,7 +25,7 @@ export default function Footer() {
href={siteConfig.facebookUrl} href={siteConfig.facebookUrl}
target="_blank" target="_blank"
rel="noopener noreferrer" rel="noopener noreferrer"
className="w-10 h-10 bg-secondary-800 rounded-lg flex items-center justify-center hover:bg-primary-600 transition-colors" className="w-10 h-10 bg-secondary-200 rounded-lg flex items-center justify-center text-secondary-700 hover:bg-primary-600 hover:text-white transition-colors"
> >
<svg className="w-5 h-5" fill="currentColor" viewBox="0 0 24 24"> <svg className="w-5 h-5" fill="currentColor" viewBox="0 0 24 24">
<path d="M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"/> <path d="M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"/>
@@ -35,7 +35,7 @@ export default function Footer() {
href={`https://line.me/ti/p/${siteConfig.lineId}`} href={`https://line.me/ti/p/${siteConfig.lineId}`}
target="_blank" target="_blank"
rel="noopener noreferrer" rel="noopener noreferrer"
className="w-10 h-10 bg-secondary-800 rounded-lg flex items-center justify-center hover:bg-primary-600 transition-colors" className="w-10 h-10 bg-secondary-200 rounded-lg flex items-center justify-center text-secondary-700 hover:bg-primary-600 hover:text-white transition-colors"
> >
<svg className="w-5 h-5" viewBox="0 0 24 24" fill="currentColor"> <svg className="w-5 h-5" viewBox="0 0 24 24" fill="currentColor">
<path d="M19.365 9.863c.349 0 .63.285.63.631 0 .345-.281.63-.63.63H17.61v1.125h1.755c.349 0 .63.283.63.63 0 .344-.281.629-.63.629h-2.386c-.345 0-.627-.285-.627-.629V8.108c0-.345.282-.63.63-.63h2.386c.346 0 .627.285.627.63 0 .349-.281.63-.63.63H17.61v1.125h1.755zm-3.855 3.016c0 .27-.174.51-.432.596-.064.021-.133.031-.199.031-.211 0-.391-.09-.51-.25l-2.443-3.317v2.94c0 .344-.279.629-.631.629-.346 0-.626-.285-.626-.629V8.108c0-.27.173-.51.43-.595.06-.023.136-.033.194-.033.195 0 .375.104.495.254l2.462 3.33V8.108c0-.345.282-.63.63-.63.345 0 .63.285.63.63v4.771zm-5.741 0c0 .344-.282.629-.631.629-.345 0-.627-.285-.627-.629V8.108c0-.345.282-.63.63-.63.346 0 .628.285.628.63v4.771zm-2.466.629H4.917c-.345 0-.63-.285-.63-.629V8.108c0-.345.285-.63.63-.63.348 0 .63.285.63.63v4.141h1.756c.348 0 .629.283.629.63 0 .344-.282.629-.629.629M24 10.314C24 4.943 18.615.572 12 .572S0 4.943 0 10.314c0 4.811 4.27 8.842 10.035 9.608.391.082.923.258 1.058.59.12.301.079.766.038 1.08l-.164 1.02c-.045.301-.24 1.186 1.049.645 1.291-.539 6.916-4.078 9.436-6.975C23.176 14.393 24 12.458 24 10.314"/> <path d="M19.365 9.863c.349 0 .63.285.63.631 0 .345-.281.63-.63.63H17.61v1.125h1.755c.349 0 .63.283.63.63 0 .344-.281.629-.63.629h-2.386c-.345 0-.627-.285-.627-.629V8.108c0-.345.282-.63.63-.63h2.386c.346 0 .627.285.627.63 0 .349-.281.63-.63.63H17.61v1.125h1.755zm-3.855 3.016c0 .27-.174.51-.432.596-.064.021-.133.031-.199.031-.211 0-.391-.09-.51-.25l-2.443-3.317v2.94c0 .344-.279.629-.631.629-.346 0-.626-.285-.626-.629V8.108c0-.27.173-.51.43-.595.06-.023.136-.033.194-.033.195 0 .375.104.495.254l2.462 3.33V8.108c0-.345.282-.63.63-.63.345 0 .63.285.63.63v4.771zm-5.741 0c0 .344-.282.629-.631.629-.345 0-.627-.285-.627-.629V8.108c0-.345.282-.63.63-.63.346 0 .628.285.628.63v4.771zm-2.466.629H4.917c-.345 0-.63-.285-.63-.629V8.108c0-.345.285-.63.63-.63.348 0 .63.285.63.63v4.141h1.756c.348 0 .629.283.629.63 0 .344-.282.629-.629.629M24 10.314C24 4.943 18.615.572 12 .572S0 4.943 0 10.314c0 4.811 4.27 8.842 10.035 9.608.391.082.923.258 1.058.59.12.301.079.766.038 1.08l-.164 1.02c-.045.301-.24 1.186 1.049.645 1.291-.539 6.916-4.078 9.436-6.975C23.176 14.393 24 12.458 24 10.314"/>
@@ -46,11 +46,11 @@ export default function Footer() {
{/* Quick Links */} {/* Quick Links */}
<div> <div>
<h3 className="text-lg font-bold mb-4 text-primary-400"></h3> <h3 className="text-lg font-bold mb-4 text-primary-600"></h3>
<ul className="space-y-2"> <ul className="space-y-2">
{mainNavigation.slice(0, 5).map((item) => ( {mainNavigation.slice(0, 5).map((item) => (
<li key={item.href}> <li key={item.href}>
<Link href={item.href} className="text-secondary-300 hover:text-white transition-colors"> <Link href={item.href} className="text-secondary-600 hover:text-primary-600 transition-colors">
{item.label} {item.label}
</Link> </Link>
</li> </li>
@@ -60,20 +60,20 @@ export default function Footer() {
{/* Contact Info */} {/* Contact Info */}
<div> <div>
<h3 className="text-lg font-bold mb-4 text-primary-400"></h3> <h3 className="text-lg font-bold mb-4 text-primary-600"></h3>
<ul className="space-y-3"> <ul className="space-y-3">
<li className="flex items-start gap-3"> <li className="flex items-start gap-3">
<svg className="w-5 h-5 text-primary-500 mt-0.5" fill="none" viewBox="0 0 24 24" stroke="currentColor"> <svg className="w-5 h-5 text-primary-500 mt-0.5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z" /> <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z" />
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M15 11a3 3 0 11-6 0 3 3 0 016 0z" /> <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M15 11a3 3 0 11-6 0 3 3 0 016 0z" />
</svg> </svg>
<span className="text-secondary-300 text-sm">{siteConfig.address}</span> <span className="text-secondary-600 text-sm">{siteConfig.address}</span>
</li> </li>
<li className="flex items-center gap-3"> <li className="flex items-center gap-3">
<svg className="w-5 h-5 text-primary-500" fill="none" viewBox="0 0 24 24" stroke="currentColor"> <svg className="w-5 h-5 text-primary-500" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z" /> <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z" />
</svg> </svg>
<a href={`tel:${siteConfig.phone}`} className="text-secondary-300 hover:text-white text-sm"> <a href={`tel:${siteConfig.phone}`} className="text-secondary-600 hover:text-primary-600 text-sm">
{siteConfig.phone} {siteConfig.phone}
</a> </a>
</li> </li>
@@ -81,7 +81,7 @@ export default function Footer() {
<svg className="w-5 h-5 text-primary-500" fill="none" viewBox="0 0 24 24" stroke="currentColor"> <svg className="w-5 h-5 text-primary-500" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z" /> <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z" />
</svg> </svg>
<a href={`mailto:${siteConfig.email}`} className="text-secondary-300 hover:text-white text-sm"> <a href={`mailto:${siteConfig.email}`} className="text-secondary-600 hover:text-primary-600 text-sm">
{siteConfig.email} {siteConfig.email}
</a> </a>
</li> </li>
@@ -90,12 +90,12 @@ export default function Footer() {
{/* Business Hours */} {/* Business Hours */}
<div> <div>
<h3 className="text-lg font-bold mb-4 text-primary-400"></h3> <h3 className="text-lg font-bold mb-4 text-primary-600"></h3>
<ul className="space-y-2"> <ul className="space-y-2">
{workHours.map((item) => ( {workHours.map((item) => (
<li key={item.day} className="flex justify-between text-sm"> <li key={item.day} className="flex justify-between text-sm">
<span className="text-secondary-300">{item.day}</span> <span className="text-secondary-600">{item.day}</span>
<span className={item.isClosed ? 'text-red-400' : 'text-white'}> <span className={item.isClosed ? 'text-red-500' : 'text-secondary-900 font-medium'}>
{item.hours} {item.hours}
</span> </span>
</li> </li>
@@ -106,9 +106,9 @@ export default function Footer() {
</div> </div>
{/* Bottom Bar */} {/* Bottom Bar */}
<div className="border-t border-secondary-800"> <div className="border-t border-secondary-200">
<div className="container mx-auto px-4 py-4"> <div className="container mx-auto px-4 py-4">
<p className="text-center text-secondary-400 text-sm"> <p className="text-center text-secondary-500 text-sm">
© {new Date().getFullYear()} {siteConfig.name}. . © {new Date().getFullYear()} {siteConfig.name}. .
</p> </p>
</div> </div>

View File

@@ -11,7 +11,7 @@ export default function Header() {
const [activeDropdown, setActiveDropdown] = useState<string | null>(null); const [activeDropdown, setActiveDropdown] = useState<string | null>(null);
return ( return (
<header className="fixed top-0 left-0 right-0 z-50 bg-secondary-900 shadow-industrial"> <header className="fixed top-0 left-0 right-0 z-50 bg-white shadow-md">
{/* Top Bar */} {/* Top Bar */}
<div className="bg-primary-600 py-2"> <div className="bg-primary-600 py-2">
<div className="container mx-auto px-4 flex justify-between items-center text-sm"> <div className="container mx-auto px-4 flex justify-between items-center text-sm">
@@ -67,7 +67,7 @@ export default function Header() {
<Link <Link
href={item.href} href={item.href}
className={cn( className={cn(
"px-4 py-2 text-white font-medium hover:text-primary-400 transition-colors flex items-center gap-1", "px-4 py-2 text-secondary-700 font-medium hover:text-primary-600 transition-colors flex items-center gap-1",
item.children && "pr-2" item.children && "pr-2"
)} )}
> >
@@ -81,7 +81,7 @@ export default function Header() {
{/* Dropdown */} {/* Dropdown */}
{item.children && activeDropdown === item.href && ( {item.children && activeDropdown === item.href && (
<div className="absolute top-full left-0 w-64 bg-white shadow-industrial rounded-lg py-2 mt-1"> <div className="absolute top-full left-0 w-64 bg-white shadow-lg rounded-lg py-2 mt-1 border border-secondary-100">
{item.children.map((child) => ( {item.children.map((child) => (
<div key={child.href} className="relative group"> <div key={child.href} className="relative group">
<Link <Link
@@ -91,7 +91,7 @@ export default function Header() {
{child.label} {child.label}
</Link> </Link>
{child.children && ( {child.children && (
<div className="hidden group-hover:block absolute left-full top-0 w-56 bg-white shadow-industrial rounded-lg py-2"> <div className="hidden group-hover:block absolute left-full top-0 w-56 bg-white shadow-lg rounded-lg py-2 border border-secondary-100">
{child.children.map((subChild) => ( {child.children.map((subChild) => (
<Link <Link
key={subChild.href} key={subChild.href}
@@ -116,7 +116,7 @@ export default function Header() {
{/* Mobile Menu Button */} {/* Mobile Menu Button */}
<button <button
className="lg:hidden text-white p-2" className="lg:hidden text-secondary-900 p-2"
onClick={() => setMobileMenuOpen(!mobileMenuOpen)} onClick={() => setMobileMenuOpen(!mobileMenuOpen)}
> >
<svg className="w-6 h-6" fill="none" viewBox="0 0 24 24" stroke="currentColor"> <svg className="w-6 h-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
@@ -131,12 +131,12 @@ export default function Header() {
{/* Mobile Menu */} {/* Mobile Menu */}
{mobileMenuOpen && ( {mobileMenuOpen && (
<div className="lg:hidden py-4 border-t border-secondary-700"> <div className="lg:hidden py-4 border-t border-secondary-200">
{mainNavigation.map((item) => ( {mainNavigation.map((item) => (
<div key={item.href}> <div key={item.href}>
<Link <Link
href={item.href} href={item.href}
className="block px-4 py-2 text-white hover:text-primary-400" className="block px-4 py-2 text-secondary-700 hover:text-primary-600"
onClick={() => setMobileMenuOpen(false)} onClick={() => setMobileMenuOpen(false)}
> >
{item.label} {item.label}