From 9e1e937f96c09eef4f729055386c000ea4e2af86 Mon Sep 17 00:00:00 2001 From: Galip Tolga Erdem Date: Tue, 4 Jan 2022 21:57:14 +0300 Subject: [PATCH] updated empty basket message --- .../Components/Basket/Default.cshtml | 21 ++++++++++----- .../components/basket/basket-widget.css | 26 +++++++++---------- .../Localization/EShopOnAbp/en.json | 3 +++ .../Localization/EShopOnAbp/tr.json | 3 +++ 4 files changed, 33 insertions(+), 20 deletions(-) diff --git a/apps/public-web/src/EShopOnAbp.PublicWeb/Components/Basket/Default.cshtml b/apps/public-web/src/EShopOnAbp.PublicWeb/Components/Basket/Default.cshtml index 37762811..18ee4e45 100644 --- a/apps/public-web/src/EShopOnAbp.PublicWeb/Components/Basket/Default.cshtml +++ b/apps/public-web/src/EShopOnAbp.PublicWeb/Components/Basket/Default.cshtml @@ -8,11 +8,18 @@ @if (!Model.Items.Any()) {
-

- - Your basket is empty. Click to a product to add it! - -

+ + + +

@L["EmptyBasket"]

+
+
+ @L["CheckOtherProducts"] @L["ContinueShopping"] +
+ +
+
+
} else @@ -47,8 +54,8 @@
- @await Component.InvokeAsync(typeof(PurchaseWidgetViewComponent), - new { Basket = Model, ButtonDescription = "CompletePurchase"}) + @await Component.InvokeAsync(typeof(PurchaseWidgetViewComponent), + new {Basket = Model, ButtonDescription = "CompletePurchase"})
} diff --git a/apps/public-web/src/EShopOnAbp.PublicWeb/wwwroot/components/basket/basket-widget.css b/apps/public-web/src/EShopOnAbp.PublicWeb/wwwroot/components/basket/basket-widget.css index 44989ae5..de933106 100644 --- a/apps/public-web/src/EShopOnAbp.PublicWeb/wwwroot/components/basket/basket-widget.css +++ b/apps/public-web/src/EShopOnAbp.PublicWeb/wwwroot/components/basket/basket-widget.css @@ -1,17 +1,17 @@ -.basket-list -{ - background-color: #fff; - padding: 1em; - border: 1px solid #666; - border-radius: 3px; - box-shadow: 0 0 10px rgba(0, 0, 0, .05); - margin-bottom: 0.5em; - transition: all .2s; -} +/*.basket-list*/ +/*{*/ +/* background-color: #fff;*/ +/* padding: 1em;*/ +/* border: 1px solid #666;*/ +/* border-radius: 3px;*/ +/* box-shadow: 0 0 10px rgba(0, 0, 0, .05);*/ +/* margin-bottom: 0.5em;*/ +/* transition: all .2s;*/ +/*}*/ -.basket-list:hover { - box-shadow: 0 0 20px rgba(0, 0, 0, .1); -} +/*.basket-list:hover {*/ +/* box-shadow: 0 0 20px rgba(0, 0, 0, .1);*/ +/*}*/ .basket-list-item { margin-top: 1em; diff --git a/shared/EShopOnAbp.Shared.Localization/Localization/EShopOnAbp/en.json b/shared/EShopOnAbp.Shared.Localization/Localization/EShopOnAbp/en.json index c6389ed1..40b6aee0 100644 --- a/shared/EShopOnAbp.Shared.Localization/Localization/EShopOnAbp/en.json +++ b/shared/EShopOnAbp.Shared.Localization/Localization/EShopOnAbp/en.json @@ -4,6 +4,9 @@ "Menu:Home": "Home", "Login": "Login", "YourBasket": "Your Basket", + "EmptyBasket": "Empyt basket", + "CheckOtherProducts": "You can check the recommended products below or", + "ContinueShopping": "continue shopping.", "Total": "Total", "OurProducts": "Our Products", "CatalogServiceNotAvailable": "Catalog Service is unavailable right now! Try again later...", diff --git a/shared/EShopOnAbp.Shared.Localization/Localization/EShopOnAbp/tr.json b/shared/EShopOnAbp.Shared.Localization/Localization/EShopOnAbp/tr.json index 7b0c9f7e..37259af1 100644 --- a/shared/EShopOnAbp.Shared.Localization/Localization/EShopOnAbp/tr.json +++ b/shared/EShopOnAbp.Shared.Localization/Localization/EShopOnAbp/tr.json @@ -4,6 +4,9 @@ "Menu:Home": "Ana Sayfa", "Login": "Giriş", "YourBasket": "Sepetiniz", + "EmptyBasket": "Sepetiniz boş", + "CheckOtherProducts": "Aşağıdaki önerilen öğeleri takip edebilirsiniz veya", + "ContinueShopping": "alışverişe devam edin.", "Total": "Toplam", "OurProducts": "Ürünlerimiz", "CatalogServiceNotAvailable": "Ürün servisine şu anda ulaşılamıyor! Lütfen sonra tekrar deneyiniz...",