From f704f97fb6e846fa1c95e86fc885980da28e34f0 Mon Sep 17 00:00:00 2001 From: Jordy de Vulder Date: Wed, 29 Jan 2025 08:36:56 +0100 Subject: [PATCH] Implemented Rapidez v3 colors and various tweaks (#160) --- README.md | 25 +----- composer.json | 2 +- lang/nl.json | 8 +- .../layouts/checkout/footer.blade.php | 2 +- .../layouts/checkout/header.blade.php | 16 ++-- .../components/CheckoutSuccessAddresses.vue | 4 - .../views/account/address-edit.blade.php | 2 +- resources/views/account/order.blade.php | 6 +- .../partials/account-features.blade.php | 6 +- .../account/partials/address-cards.blade.php | 2 +- .../partials/default-addresses.blade.php | 4 +- .../account/partials/forgotpassword.blade.php | 4 +- .../views/account/partials/login.blade.php | 4 +- .../partials/order/order-total.blade.php | 2 +- .../account/partials/order/products.blade.php | 84 ++++++++++--------- .../views/account/partials/orders.blade.php | 6 +- .../register-account-address.blade.php | 2 +- .../views/account/partials/register.blade.php | 2 +- resources/views/cart/coupon.blade.php | 2 +- .../cart/partials/product/image.blade.php | 8 +- .../cart/partials/product/price.blade.php | 2 +- .../partials/product/remove-button.blade.php | 4 +- .../views/cart/partials/products.blade.php | 4 +- .../cart/partials/sidebar/summary.blade.php | 6 +- .../checkout/pages/credentials.blade.php | 6 +- .../views/checkout/pages/login.blade.php | 6 +- .../views/checkout/pages/payment.blade.php | 6 +- .../partials/buttons/new-address.blade.php | 2 +- .../partials/sections/login.blade.php | 2 +- .../sections/login/logged-in.blade.php | 4 +- .../sections/login/logged-out.blade.php | 6 +- .../partials/sections/payment.blade.php | 8 +- .../payment/agreement-checkbox.blade.php | 2 +- .../payment/payment-methods.blade.php | 3 +- .../sections/success/features.blade.php | 6 +- .../sections/success/order-info.blade.php | 3 +- .../sections/success/products.blade.php | 4 +- .../partials/shipping/methods.blade.php | 4 +- .../partials/sidebar/totals.blade.php | 2 +- .../partials/sidebar/user-info.blade.php | 2 +- .../views/checkout/steps/success.blade.php | 2 +- .../views/components/address-form.blade.php | 2 +- resources/views/components/address.blade.php | 4 +- .../views/components/button/link.blade.php | 2 +- .../views/components/card/address.blade.php | 2 +- .../views/components/card/inactive.blade.php | 2 +- .../views/components/card/index.blade.php | 2 +- .../views/components/card/white.blade.php | 2 +- .../views/components/coupon-field.blade.php | 5 +- .../components/dashboard/item/index.blade.php | 6 +- .../dashboard/sidebar-item/index.blade.php | 2 +- .../components/input/checkbox/tile.blade.php | 8 +- .../views/components/input/quantity.blade.php | 46 +++++----- .../components/input/radio/tile.blade.php | 12 +-- .../views/components/layout/index.blade.php | 4 +- .../components/newsletter-visual.blade.php | 4 +- .../newsletter/partials/checkbox.blade.php | 7 +- resources/views/components/popup.blade.php | 6 +- .../components/progress-bar/index.blade.php | 9 +- .../separated-listing/index.blade.php | 2 +- .../views/components/slideover.blade.php | 14 ---- .../components/title-progress-bar.blade.php | 8 +- .../views/components/title/index.blade.php | 2 +- 63 files changed, 203 insertions(+), 223 deletions(-) delete mode 100644 resources/views/components/slideover.blade.php diff --git a/README.md b/README.md index 325eda40..27b4cd69 100644 --- a/README.md +++ b/README.md @@ -46,30 +46,7 @@ php artisan vendor:publish --provider="Rapidez\CheckoutTheme\ServiceProvider" -- If you've already overwritten these by yourself before you installed this package, you will have to manually overwrite these as the publish command will not overwrite already existing files. -Add these colors to your `tailwind.config.js` and modify them to your liking: -(Alternatively, you could add these to a separate file and add it as a preset to your tailwind.config.js) -``` -colors: { - ct: { - enhanced: { - DEFAULT: '#40C42A', - }, - inactive: { - DEFAULT: '#8A8275', - 100: '#F6F4EE', - }, - disabled: '#EBE8DE', - accent: { - DEFAULT: '#FEAB05', - }, - primary: { - DEFAULT: '#625B50', - }, - border: '#EAE7DC', - error: '#DF241D', - }, -}, -``` +If you want more information about how we use color variables; Check our [https://docs.rapidez.io/3.x/theming.html#colors](Rapidez docs). This package also requires the `SKU` functionality to be enabled in the image resizer. This is normally enabled by default. diff --git a/composer.json b/composer.json index 365a670a..50970a3c 100644 --- a/composer.json +++ b/composer.json @@ -20,7 +20,7 @@ "php": "^8.0|^8.1|^8.2", "blade-ui-kit/blade-heroicons": "^2.0", "rapidez/account": "^3.0", - "rapidez/core": "^3.0" + "rapidez/core": "^3.1" }, "autoload": { "psr-4": { diff --git a/lang/nl.json b/lang/nl.json index 5fba9b97..fae15382 100644 --- a/lang/nl.json +++ b/lang/nl.json @@ -8,7 +8,8 @@ "Address created successfully": "Adres succesvol aangemaakt", "Address data": "Adresgegevens", "Already logged in": "Al ingelogd", - "Amount": "Aantal", + "Quantity": "Aantal", + "Amount": "Bedrag", "Back to account": "Terug naar account", "Back to cart": "Terug naar winkelwagen", "Back to credentials": "Terug naar inloggegevens", @@ -22,6 +23,7 @@ "Continue shopping": "Verder winkelen", "Coupon code": "Kortingscode", "Customer centre": "Klantenservice", + "Decrease quantity": "Aantal verlagen", "Delete address": "Adres verwijderen", "Delivery method": "Bezorgmethode", "Deselect as billing": "Deselecteer als factuuradres", @@ -32,6 +34,8 @@ "Enter your email address below, you will receive an email within minutes to reset the password.": "Voer hieronder uw e-mailadres in, u ontvangt binnen enkele minuten een e-mail om het wachtwoord te resetten.", "Everything centralized in 1 place such as returns, exchanges and customer service": "Alles gecentraliseerd op 1 plek zoals retouren, ruilingen en klantenservice", "Free": "Gratis", + "Go to step :step": "Ga naar stap :step", + "Increase quantity": "Aantal verhogen", "Is this not your account?": "Is dit niet uw account?", "Log out": "Uitloggen", "Logout from your account": "Uitloggen van uw account", @@ -71,7 +75,7 @@ "Vat ID": "BTW-nummer", "We will also check if you already have an account so you can checkout more efficiently.": "We zullen ook controleren of u al een account heeft, zodat u efficiƫnter kunt afrekenen.", "We will send a confirmation of your order :orderid to :email": "We sturen een orderbevestiging van bestelling :orderid naar :email", - "We will send your order confirmation to this e-mail address. We will also check if you already have an account so you can checkout more efficiently.": "We sturen uw orderbevestiging naar dit e-mailadres. We zullen ook controleren of u al een account heeft om het bestelproces te versnellen.", + "We'll email your order confirmation and check if you have an account for faster checkout.": "Op dit e-mailadres ontvang je de orderbevestiging. Ook checken we of je al een account hebt.", "Welcome back": "Welkom terug", "Yes, I want to subscribe to the newsletter": "Ja, ik wil me inschrijven voor de nieuwsbrief", "You already have an account with this e-mail address. Please log in to continue.": "U heeft al een account met dit e-mailadres. Log in om verder te gaan.", diff --git a/resources/core-overwrites/layouts/checkout/footer.blade.php b/resources/core-overwrites/layouts/checkout/footer.blade.php index 1d266560..a5e9b7fb 100644 --- a/resources/core-overwrites/layouts/checkout/footer.blade.php +++ b/resources/core-overwrites/layouts/checkout/footer.blade.php @@ -1,5 +1,5 @@