From f8f772ceb75061242c8dd5a634a9e86a0d2e1a46 Mon Sep 17 00:00:00 2001 From: fabcodingzest <48706652+fabcodingzest@users.noreply.github.com> Date: Tue, 18 Aug 2020 16:50:59 +0530 Subject: [PATCH] Improving cart, fixing market & portfolio UI bugs --- views/cart.ejs | 23 ++++----- views/market.ejs | 18 +++---- views/partials/_nav.ejs | 102 +++++++++++++++++++++------------------- views/portfolio.ejs | 5 +- 4 files changed, 77 insertions(+), 71 deletions(-) diff --git a/views/cart.ejs b/views/cart.ejs index 83acf08..87780ae 100644 --- a/views/cart.ejs +++ b/views/cart.ejs @@ -5,22 +5,22 @@
-
+ class="new grid grid-flow-col grid-cols-3 md:grid-cols-4 grid-rows-2 grig-gap-0 md:gap-4 lg:grid-rows-3 bg-white shadow-md p-2 lg:p-6 text-center"> +
Company Name
-
-
- -

<%= companyName %>

+
+
+ +

<%= companyName %>

- -
+
Total Price
-
+

<%= latestPrice %> @@ -55,7 +55,8 @@ class="block uppercase ml-0 md:ml-auto mt-4 shadow bg-blue-800 hover:bg-indigo-700 focus:shadow-outline focus:outline-none text-white font-semibold text-xs lg:text-sm py-3 px-4 rounded">Back to Market + class="block uppercase mt-4 ml-4 shadow bg-yellow-500 hover:bg-yellow-600 focus:shadow-outline focus:outline-none text-black font-semibold text-xs lg:text-sm py-3 px-4 rounded"> Checkout

diff --git a/views/market.ejs b/views/market.ejs index c091258..c7aaa19 100644 --- a/views/market.ejs +++ b/views/market.ejs @@ -1,9 +1,9 @@ -
+

Favorite Stocks

-
+
<% for(var i=0; i < compactData.length; i++) { %> @@ -40,17 +40,17 @@ -
+

Trending Stocks

-
+
<% for(var i=min; i < max; i++) { %> -
-
-
+
+
+
@@ -59,8 +59,8 @@

<%- totalData[i]["Company Name"] %>

-
- diff --git a/views/partials/_nav.ejs b/views/partials/_nav.ejs index 43b01f1..2303413 100644 --- a/views/partials/_nav.ejs +++ b/views/partials/_nav.ejs @@ -1,57 +1,61 @@
\ No newline at end of file diff --git a/views/portfolio.ejs b/views/portfolio.ejs index 7ac5b86..ea86d89 100644 --- a/views/portfolio.ejs +++ b/views/portfolio.ejs @@ -1,5 +1,6 @@ -
+
+
@@ -518,7 +519,7 @@
Load more
- +
\ No newline at end of file