1+ import Image from "next/image" ;
2+
13interface LogoProps {
24 className ?: string ;
35 variant ?: "default" | "white" ;
@@ -12,44 +14,53 @@ export default function Logo({ className = "", variant = "default", variantMobil
1214 { /* Mobile: show short logo if variantMobile is specified */ }
1315 { variantMobile === "short" && (
1416 < >
15- < div className = { `md:hidden relative flex items-center` } style = { { height : "20px" } } >
16- < img
17+ < div className = { `md:hidden relative flex items-center` } style = { { height : "20px" , width : "92.855px" } } >
18+ < Image
1719 src = { shortLogoSrc }
1820 alt = "CCAI Logo"
19- className = { ` ${ variant === "white" ? "brightness-0 invert" : "" } ` }
20- style = { { height : "20px" , width : "92.855px" , display : "block" } }
21+ fill
22+ className = { `object-contain ${ variant === "white" ? "brightness-0 invert" : "" } ` }
2123 />
2224 </ div >
2325 { /* Desktop: show full logo with all parts */ }
2426 < div className = { `hidden md:flex relative items-center gap-[6px]` } style = { { height : "22.527px" } } >
25- < img
26- src = "/images/logo-full-part1.svg"
27- alt = "CCAI"
28- style = { { height : "22.527px" , width : "104.589px" , display : "block" } }
29- />
30- < div className = "flex flex-col justify-center" style = { { gap : "3px" } } >
31- < img
32- src = "/images/logo-full-part2.svg"
33- alt = "Centre for Credible"
34- style = { { height : "7px" , width : "76.3px" , display : "block" } }
35- />
36- < img
37- src = "/images/logo-full-part3.svg"
38- alt = "Artificial Intelligence"
39- style = { { height : "9px" , width : "90px" , display : "block" } }
27+ < div className = "relative" style = { { height : "22.527px" , width : "104.589px" } } >
28+ < Image
29+ src = "/images/logo-full-part1.svg"
30+ alt = "CCAI"
31+ fill
32+ className = "object-contain"
4033 />
4134 </ div >
35+ < div className = "flex flex-col justify-center" style = { { gap : "3px" } } >
36+ < div className = "relative" style = { { height : "7px" , width : "76.3px" } } >
37+ < Image
38+ src = "/images/logo-full-part2.svg"
39+ alt = "Centre for Credible"
40+ fill
41+ className = "object-contain"
42+ />
43+ </ div >
44+ < div className = "relative" style = { { height : "9px" , width : "90px" } } >
45+ < Image
46+ src = "/images/logo-full-part3.svg"
47+ alt = "Artificial Intelligence"
48+ fill
49+ className = "object-contain"
50+ />
51+ </ div >
52+ </ div >
4253 </ div >
4354 </ >
4455 ) }
4556 { /* Default: show the short logo */ }
4657 { ! variantMobile && (
47- < div className = { `relative flex items-center ${ className || "h-8" } ` } >
48- < img
58+ < div className = { `relative flex items-center ${ className || "h-8" } ` } style = { { width : "92.855px" } } >
59+ < Image
4960 src = { shortLogoSrc }
5061 alt = "CCAI Logo"
51- className = { `h-full w-auto object-contain ${ variant === "white" ? "brightness-0 invert" : "" } ` }
52- style = { { display : "block" } }
62+ fill
63+ className = { `object-contain ${ variant === "white" ? "brightness-0 invert" : "" } ` }
5364 />
5465 </ div >
5566 ) }
0 commit comments