Fix: Swap light and dark mode logos as requested
This commit is contained in:
@@ -12,21 +12,21 @@ interface LogoProps {
|
||||
|
||||
/**
|
||||
* PragatiVeer Logo - correctly switches between modes:
|
||||
* - Light Mode: Rectangular_dark_background.svg (dark/gold text visible on white)
|
||||
* - Dark Mode: Rectangular_light_background.svg (white text visible on dark)
|
||||
* - Light Mode: Rectangular_light_background.svg (dark/gold text visible on white)
|
||||
* - Dark Mode: Rectangular_dark_background.svg (white text visible on dark)
|
||||
*/
|
||||
export function Logo({ href = "/", className = "", imageClassName = "object-contain object-left", height = 56 }: LogoProps) {
|
||||
return (
|
||||
<Link href={href} className={`hover:opacity-90 transition-opacity block relative ${className}`} style={{ height }}>
|
||||
<Image
|
||||
src="/PragatiVeer_Logo/SVG_Logos/Rectangular_dark_background.svg"
|
||||
src="/PragatiVeer_Logo/SVG_Logos/Rectangular_light_background.svg"
|
||||
alt="PragatiVeer"
|
||||
fill
|
||||
className={`${imageClassName} dark:hidden`}
|
||||
priority
|
||||
/>
|
||||
<Image
|
||||
src="/PragatiVeer_Logo/SVG_Logos/Rectangular_light_background.svg"
|
||||
src="/PragatiVeer_Logo/SVG_Logos/Rectangular_dark_background.svg"
|
||||
alt="PragatiVeer"
|
||||
fill
|
||||
className={`${imageClassName} hidden dark:block`}
|
||||
|
||||
Reference in New Issue
Block a user