Small home header

This commit is contained in:
adilallo
2025-08-06 11:28:13 -06:00
parent 73615e31a7
commit bc731e2431
7 changed files with 57 additions and 14 deletions
+13 -2
View File
@@ -15,6 +15,13 @@ export default function Logo({ size = "default", showText = true }) {
lineHeight: "leading-[14.24px]",
iconSize: "w-[14.11px] h-[14.11px]",
},
homeHeaderSm: {
containerHeight: "h-[21.06px]",
gap: "gap-[3.19px]",
textSize: "text-[11.69px]",
lineHeight: "leading-[14.39px]",
iconSize: "w-[14.39px] h-[14.39px]",
},
header: {
containerHeight: "h-[20.85px]",
gap: "gap-[4.21px]",
@@ -62,6 +69,8 @@ export default function Logo({ size = "default", showText = true }) {
const config =
size === "homeHeaderXsmall"
? sizes.homeHeaderXsmall
: size === "homeHeaderSm"
? sizes.homeHeaderSm
: size === "header"
? sizes.header
: size === "headerMd"
@@ -86,7 +95,7 @@ export default function Logo({ size = "default", showText = true }) {
{showText && (
<div
className={`font-['Bricolage_Grotesque'] ${
size === "homeHeaderXsmall"
size === "homeHeaderXsmall" || size === "homeHeaderSm"
? "text-[var(--color-content-inverse-primary)]"
: "text-[var(--color-content-default-primary)]"
} ${config.textSize} ${config.lineHeight} font-normal tracking-[0px]`}
@@ -102,7 +111,9 @@ export default function Logo({ size = "default", showText = true }) {
width={27.05}
height={27.05}
className={`flex-shrink-0 ${config.iconSize} ${
size === "homeHeaderXsmall" ? "filter brightness-0" : ""
size === "homeHeaderXsmall" || size === "homeHeaderSm"
? "filter brightness-0"
: ""
}`}
/>
</div>