Files
Suman/apps/suman-bosna/src/app/[countryCode]/(checkout)/layout.tsx
Nermin Karic ada6fd857c design upgrade
2026-11-23 00:59:47 +01:00

46 lines
1.7 KiB
TypeScript

import LocalizedClientLink from "@modules/common/components/localized-client-link"
import { Logo } from "@/components/ui/logo"
import { ArrowLeft, Lock } from "lucide-react"
/** Focused checkout shell: back to cart, logo, secure-payment note */
export default function CheckoutLayout({
children,
}: {
children: React.ReactNode
}) {
return (
<div className="relative w-full bg-background lg:min-h-screen">
<div className="sticky top-0 z-50 border-b border-border/70 bg-background">
<nav className="content-container grid h-14 grid-cols-[1fr_auto_1fr] items-center sm:h-16">
<LocalizedClientLink
href="/cart"
className="flex items-center gap-2 justify-self-start text-sm text-muted-foreground transition-colors hover:text-foreground"
data-testid="back-to-cart-link"
>
<ArrowLeft className="h-4 w-4" />
<span className="hidden sm:inline">Nazad u korpu</span>
<span className="sm:hidden">Nazad</span>
</LocalizedClientLink>
<LocalizedClientLink
href="/"
className="relative w-[56px] self-stretch sm:w-[72px]"
data-testid="store-link"
aria-label="Suman d.o.o. početna"
>
<span className="absolute inset-x-0 top-0 block">
<Logo priority alt="" />
</span>
</LocalizedClientLink>
<p className="flex items-center gap-1.5 justify-self-end text-xs text-muted-foreground">
<Lock className="h-3.5 w-3.5" />
<span className="hidden sm:inline">Sigurno plaćanje</span>
</p>
</nav>
</div>
<div className="relative" data-testid="checkout-container">
{children}
</div>
</div>
)
}