Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions src/components/LandingPage/hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function PeanutMascot() {
src={PeanutWhistling}
unoptimized
alt="Peanut Guy"
className="absolute left-1/2 z-10 h-auto max-h-[40vh] w-auto max-w-[90%] -translate-x-1/2 object-contain"
className="absolute left-1/2 z-10 h-auto max-h-[40vh] w-auto max-w-[90%] -translate-x-1/2 object-contain md:max-h-[min(40vh,calc(100svh-28rem))]"
/>
)
}
Expand Down Expand Up @@ -111,7 +111,7 @@ const getHoverAnimation = (variant: 'primary' | 'secondary') => ({
const transitionConfig = { type: 'spring', damping: 15 } as const

const getButtonContainerClasses = (variant: 'primary' | 'secondary') =>
`relative z-20 mt-8 md:mt-12 flex flex-col items-center justify-center ${variant === 'primary' ? 'mx-auto w-fit' : 'right-[calc(50%-120px)]'}`
`relative z-20 mt-8 flex flex-col items-center justify-center ${variant === 'primary' ? 'mx-auto w-fit' : 'right-[calc(50%-120px)]'}`

export function Hero({
primaryCta,
Expand Down Expand Up @@ -170,11 +170,12 @@ export function Hero({
>
<CloudsCss />
<div className="relative mt-10 w-full md:mt-0">
{/* 23rem = the fixed stack below the artwork (h2 -> CTA) + 3rem slack, so the CTA stays inside the first fold on short laptop viewports */}
<Image
src={GlobalCashLocalFeel}
priority
sizes="(min-width: 768px) 50vw, 100vw"
className="z-0 mx-auto h-auto w-full max-w-[1000px] object-contain md:w-[50%]"
className="z-0 mx-auto h-auto max-h-[calc(100svh-23rem)] w-full max-w-[1000px] object-contain md:w-[50%]"
alt="Global Cash Local Feel"
/>

Expand All @@ -198,7 +199,7 @@ export function Hero({
<PeanutMascot />

<div className="relative z-20 flex w-full flex-col items-center justify-center">
<h2 className="font-roboto-flex-extrabold mt-18 text-center text-[2.375rem] font-extraBlack text-black md:text-heading">
<h2 className="font-roboto-flex-extrabold mt-18 text-center text-[2.375rem] font-extraBlack text-black md:mt-12 md:text-heading">
{strings.heroTapScan}
</h2>
<span
Expand Down
Loading