FAZ1
Build & Deploy (develop) / build-and-deploy (push) Successful in 2m46s

This commit is contained in:
2026-09-16 15:04:19 +03:30
parent dc64b41c80
commit e6103ef6fd
4 changed files with 131 additions and 116 deletions
+45 -44
View File
@@ -76,30 +76,30 @@ export default function Header() {
<LanguageToggle />
<ThemeToggle />
</div>
{/*FAZ1*/}
{/*{auth.isAuthenticated ? (*/}
{/* <Button className="hidden sm:inline-flex" icon={<UserOutlined />} href="/dashboard">*/}
{/* {accountLabel}*/}
{/* </Button>*/}
{/*) : (*/}
{/* <Button*/}
{/* className="hidden sm:inline-flex"*/}
{/* icon={<UserOutlined />}*/}
{/* onClick={() => auth.openLogin()}*/}
{/* >*/}
{/* {account.login}*/}
{/* </Button>*/}
{/*)}*/}
{auth.isAuthenticated ? (
<Button className="hidden sm:inline-flex" icon={<UserOutlined />} href="/dashboard">
{accountLabel}
</Button>
) : (
<Button
className="hidden sm:inline-flex"
icon={<UserOutlined />}
onClick={() => auth.openLogin()}
>
{account.login}
</Button>
)}
<Badge count={cartCount} size="small" offset={[-2, 2]}>
<ProtectedLink
href="/cart"
onClick={() => setMobileOpen(false)}
className="w-11 h-11 rounded-full border border-subtle bg-elevated inline-flex items-center justify-center text-xl text-primary hover:text-brand-400"
>
<ShoppingCartOutlined />
</ProtectedLink>
</Badge>
{/*<Badge count={cartCount} size="small" offset={[-2, 2]}>*/}
{/* <ProtectedLink*/}
{/* href="/cart"*/}
{/* onClick={() => setMobileOpen(false)}*/}
{/* className="w-11 h-11 rounded-full border border-subtle bg-elevated inline-flex items-center justify-center text-xl text-primary hover:text-brand-400"*/}
{/* >*/}
{/* <ShoppingCartOutlined />*/}
{/* </ProtectedLink>*/}
{/*</Badge>*/}
<button
className="xl:hidden text-brand-400 text-2xl"
@@ -126,27 +126,28 @@ export default function Header() {
<div className="flex items-center gap-3 pt-2 border-t border-subtle">
<LanguageToggle />
<ThemeToggle />
{auth.isAuthenticated ? (
<Button
icon={<UserOutlined />}
className="flex-1"
href="/dashboard"
onClick={() => setMobileOpen(false)}
>
{accountLabel}
</Button>
) : (
<Button
icon={<UserOutlined />}
className="flex-1"
onClick={() => {
setMobileOpen(false);
auth.openLogin();
}}
>
{account.login}
</Button>
)}
{/*FAZ1*/}
{/*{auth.isAuthenticated ? (*/}
{/* <Button*/}
{/* icon={<UserOutlined />}*/}
{/* className="flex-1"*/}
{/* href="/dashboard"*/}
{/* onClick={() => setMobileOpen(false)}*/}
{/* >*/}
{/* {accountLabel}*/}
{/* </Button>*/}
{/*) : (*/}
{/* <Button*/}
{/* icon={<UserOutlined />}*/}
{/* className="flex-1"*/}
{/* onClick={() => {*/}
{/* setMobileOpen(false);*/}
{/* auth.openLogin();*/}
{/* }}*/}
{/* >*/}
{/* {account.login}*/}
{/* </Button>*/}
{/*)}*/}
</div>
</nav>
)}
+10 -9
View File
@@ -77,15 +77,16 @@ export default function ProductsPage() {
</h2>
<p className="text-secondary text-sm leading-7 mt-3 mb-5">{machine.description}</p>
<p className="text-primary text-lg font-bold mt-auto mb-4">{machine.priceLabel}</p>
<div className="flex flex-wrap items-center justify-between gap-3">
<QuantityControl product={machine} />
<Link
href={`/products/${machine.id}`}
className="text-brand-400 text-sm hover:underline"
>
{copy.details}
</Link>
</div>
{/*FAZ1*/}
{/*<div className="flex flex-wrap items-center justify-between gap-3">*/}
{/* <QuantityControl product={machine} />*/}
{/* <Link*/}
{/* href={`/products/${machine.id}`}*/}
{/* className="text-brand-400 text-sm hover:underline"*/}
{/* >*/}
{/* {copy.details}*/}
{/* </Link>*/}
{/*</div>*/}
</article>
))}
</div>
+10 -9
View File
@@ -86,15 +86,16 @@ export default function VendingCard({machine}: {machine: Machine}) {
<p className="text-xl md:text-2xl font-bold text-primary mt-2">{machine.priceLabel}</p>
<div className="flex flex-wrap items-center gap-2 mt-2 ">
<QuantityControl product={machine} />
<ProtectedLink
href={`/products/${machine.id}`}
className="px-5 py-3 rounded-xl border border-subtle text-primary hover:text-brand-400"
>
{commerceCopy[locale].details}
</ProtectedLink>
</div>
{/*FAZ1*/}
{/*<div className="flex flex-wrap items-center gap-2 mt-2 ">*/}
{/* <QuantityControl product={machine} />*/}
{/* <ProtectedLink*/}
{/* href={`/products/${machine.id}`}*/}
{/* className="px-5 py-3 rounded-xl border border-subtle text-primary hover:text-brand-400"*/}
{/* >*/}
{/* {commerceCopy[locale].details}*/}
{/* </ProtectedLink>*/}
{/*</div>*/}
</div>
</div>
</div>