This commit is contained in:
+45
-44
@@ -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>
|
||||
)}
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user