From 97c3bc05af24d8349bff40216b81727d00aca918 Mon Sep 17 00:00:00 2001 From: Galip Tolga Erdem Date: Sat, 8 Jan 2022 01:46:55 +0300 Subject: [PATCH] added myOrder styles --- .../Pages/MyOrders.cshtml | 50 ++++++++++++++----- .../EShopOnAbp.PublicWeb/Pages/myOrders.css | 19 ++++++- 2 files changed, 56 insertions(+), 13 deletions(-) diff --git a/apps/public-web/src/EShopOnAbp.PublicWeb/Pages/MyOrders.cshtml b/apps/public-web/src/EShopOnAbp.PublicWeb/Pages/MyOrders.cshtml index 08f2c4fa..f07ca16c 100644 --- a/apps/public-web/src/EShopOnAbp.PublicWeb/Pages/MyOrders.cshtml +++ b/apps/public-web/src/EShopOnAbp.PublicWeb/Pages/MyOrders.cshtml @@ -15,29 +15,51 @@ } -
- @Model.MyOrders.Count sipariş verildi. +@{ + string lastYearString = $"y{DateTime.Today.Year - 1}"; +} + +
+ + @Model.MyOrders.Count sipariş verildi. + + + +
@foreach (var order in Model.MyOrders) { -
+ var orderTotalString = order.Items.Sum(q => q.UnitPrice).ToString("C", new CultureInfo("en-US")); + string addressString = $"{order.Address.Street} {order.Address.ZipCode} \n {order.Address.City}/{order.Address.Country}"; +
-
Sipariş Tarihi
-
@order.OrderDate.ToString("dd MMMM yyyy")
+
Sipariş Tarihi
+
@order.OrderDate.ToString("dd MMMM yyyy")
-
TOPLAM
-
@order.Items.Sum(q => q.UnitPrice)
+
Toplam
+
@orderTotalString
-
TESLİMAT ADRESİ
-
@order.Address.Description
+
Teslimat Adresi
+
+ @order.Address.Description +
-
SİPARİŞ NO @order.OrderNo.ToString("N0", new NumberFormatInfo() {NumberGroupSeparator = " "})
+
+ Sipariş No @order.OrderNo.ToString("N0", new NumberFormatInfo() {NumberGroupSeparator = " "}) +
@@ -61,8 +83,12 @@
- Ürünleri iade et - Ürün yorumu yazın + + Ürünleri iade et + + + Ürün yorumu yazın + diff --git a/apps/public-web/src/EShopOnAbp.PublicWeb/Pages/myOrders.css b/apps/public-web/src/EShopOnAbp.PublicWeb/Pages/myOrders.css index 4d842359..e5780259 100644 --- a/apps/public-web/src/EShopOnAbp.PublicWeb/Pages/myOrders.css +++ b/apps/public-web/src/EShopOnAbp.PublicWeb/Pages/myOrders.css @@ -1,8 +1,9 @@ .img-size { width: 80%; } + .order-item { - width:-webkit-fill-available; + width: -webkit-fill-available; background-color: #fff; border: 1px solid #eee; border-radius: 3px; @@ -13,4 +14,20 @@ .order-item:hover { box-shadow: 0 0 20px rgba(0, 0, 0, .1); +} + +.o-header { + text-transform: uppercase; + font-weight: 500; +} + +.o-description { + font-weight: 500; + font-size: larger; +} +.o-order-no{ + font-size:larger; +} +.order-title{ + font-size: x-large; } \ No newline at end of file