design upgrade

This commit is contained in:
Nermin Karic
2026-11-23 00:59:47 +01:00
parent 9e84140474
commit ada6fd857c
198 changed files with 6626 additions and 2539 deletions

View File

@@ -1,42 +1,44 @@
import LocalizedClientLink from "@modules/common/components/localized-client-link"
import ChevronDown from "@modules/common/icons/chevron-down"
import MedusaCTA from "@modules/layout/components/medusa-cta"
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="w-full bg-white relative small:min-h-screen">
<div className="h-16 bg-white border-b ">
<nav className="flex h-full items-center content-container justify-between">
<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="text-small-semi text-ui-fg-base flex items-center gap-x-2 uppercase flex-1 basis-0"
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"
>
<ChevronDown className="rotate-90" size={16} />
<span className="mt-px hidden small:block txt-compact-plus text-ui-fg-subtle hover:text-ui-fg-base ">
Back to shopping cart
</span>
<span className="mt-px block small:hidden txt-compact-plus text-ui-fg-subtle hover:text-ui-fg-base">
Back
</span>
<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="txt-compact-xlarge-plus text-ui-fg-subtle hover:text-ui-fg-base uppercase"
className="relative w-[56px] self-stretch sm:w-[72px]"
data-testid="store-link"
aria-label="Suman d.o.o. početna"
>
Medusa Store
<span className="absolute inset-x-0 top-0 block">
<Logo priority alt="" />
</span>
</LocalizedClientLink>
<div className="flex-1 basis-0" />
<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 className="py-4 w-full flex items-center justify-center">
<MedusaCTA />
<div className="relative" data-testid="checkout-container">
{children}
</div>
</div>
)