From ec0384ed62e32b0e3a1050e1a4946ed3443afa96 Mon Sep 17 00:00:00 2001 From: Nick Kosarev Date: Tue, 18 Feb 2025 15:48:14 +0200 Subject: [PATCH 1/2] chore: visual rework --- apps/web-app/app/components/Cart/Button.vue | 10 +++-- .../components/Cart/DeliveryMethodSwitch.vue | 18 ++++---- apps/web-app/app/components/Cart/index.vue | 21 ++++++---- .../app/components/CatalogBreadcrumb.vue | 3 +- apps/web-app/app/components/CategoryBlock.vue | 18 ++++---- .../app/components/CommandCenter/StaffBar.vue | 14 ++++--- .../app/components/DeliveryInfoModal.vue | 6 +-- apps/web-app/app/components/Footer.vue | 6 +-- apps/web-app/app/components/Header.vue | 4 +- .../app/components/Navigation/index.vue | 2 +- apps/web-app/app/components/ProductCard.vue | 42 ++++++++++--------- apps/web-app/app/layouts/default.vue | 4 +- apps/web-app/app/pages/index.vue | 2 +- apps/web-app/package.json | 1 - packages/core/package.json | 1 + packages/ui/app/app.config.ts | 2 + pnpm-lock.yaml | 6 +-- 17 files changed, 85 insertions(+), 75 deletions(-) diff --git a/apps/web-app/app/components/Cart/Button.vue b/apps/web-app/app/components/Cart/Button.vue index 8301c555..9523381f 100644 --- a/apps/web-app/app/components/Cart/Button.vue +++ b/apps/web-app/app/components/Cart/Button.vue @@ -1,15 +1,17 @@ diff --git a/apps/web-app/app/components/Cart/DeliveryMethodSwitch.vue b/apps/web-app/app/components/Cart/DeliveryMethodSwitch.vue index 041cd237..e288719b 100644 --- a/apps/web-app/app/components/Cart/DeliveryMethodSwitch.vue +++ b/apps/web-app/app/components/Cart/DeliveryMethodSwitch.vue @@ -1,22 +1,22 @@ diff --git a/apps/web-app/app/components/Cart/index.vue b/apps/web-app/app/components/Cart/index.vue index 63d66928..8b523ebe 100644 --- a/apps/web-app/app/components/Cart/index.vue +++ b/apps/web-app/app/components/Cart/index.vue @@ -1,6 +1,6 @@ diff --git a/apps/web-app/app/components/Footer.vue b/apps/web-app/app/components/Footer.vue index 04680a28..980e9649 100644 --- a/apps/web-app/app/components/Footer.vue +++ b/apps/web-app/app/components/Footer.vue @@ -2,17 +2,17 @@
{{ $t('common.footer.copyright-part-one') }} - {{ $t('common.footer.copyright-part-two') }} - +
-
+
diff --git a/apps/web-app/app/components/Header.vue b/apps/web-app/app/components/Header.vue index 63453e57..972078a6 100644 --- a/apps/web-app/app/components/Header.vue +++ b/apps/web-app/app/components/Header.vue @@ -1,6 +1,6 @@ diff --git a/apps/web-app/app/components/ui/button/Button.vue b/apps/web-app/app/components/ui/button/Button.vue deleted file mode 100644 index ad463236..00000000 --- a/apps/web-app/app/components/ui/button/Button.vue +++ /dev/null @@ -1,16 +0,0 @@ - - - diff --git a/apps/web-app/app/components/ui/button/index.ts b/apps/web-app/app/components/ui/button/index.ts deleted file mode 100644 index a71ef218..00000000 --- a/apps/web-app/app/components/ui/button/index.ts +++ /dev/null @@ -1,31 +0,0 @@ -import type { VariantProps } from 'class-variance-authority' -import { cva } from 'class-variance-authority' - -export { default as Button } from './Button.vue' - -export const buttonVariants = cva( - 'relative w-full rounded-2xl text-base font-medium ring-offset-background active:scale-95 md:active:scale-90 hover:scale-95 duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50', - { - variants: { - variant: { - default: 'bg-gradient-to-br hover:bg-gradient-to-r from-lime-300 to-emerald-400 font-medium text-neutral-950 dark:text-neutral-950', - destructive: 'bg-amber-200 hover:bg-amber-200/90', - secondary: 'bg-neutral-100 dark:bg-neutral-500 border border-neutral-200 dark:border-neutral-500 hover:bg-neutral-200/60 dark:hover:bg-neutral-500/60', - ghost: 'hover:bg-neutral-100 dark:hover:bg-neutral-600', - link: 'text-primary underline-offset-4 hover:underline', - }, - size: { - default: 'px-5 py-3', - sm: 'h-9 rounded-md px-3', - lg: 'h-11 rounded-md px-8', - icon: 'h-10 w-10', - }, - }, - defaultVariants: { - variant: 'default', - size: 'default', - }, - }, -) - -export type ButtonVariants = VariantProps diff --git a/apps/web-app/app/layouts/checkout.vue b/apps/web-app/app/layouts/checkout.vue index 760818ba..fbb2df36 100644 --- a/apps/web-app/app/layouts/checkout.vue +++ b/apps/web-app/app/layouts/checkout.vue @@ -1,9 +1,9 @@