diff --git a/public/css/tailwind.css b/public/css/tailwind.css index 985abac..f8da7c0 100644 --- a/public/css/tailwind.css +++ b/public/css/tailwind.css @@ -20,6 +20,58 @@ body { width: 75vw; } +.tradebyte-logo { + color: #1955E4; + text-shadow: 1px 2px 40px rgba(0, 0, 0, 0.5) +} + +.line { + border: 1.5px solid #8e9aad; +} + +.user-profile { + border-radius: 100px; + border: 10px solid #1955E4; + width: 130px; + height: 130px; +} + +.tick { + height: 22px; + width: 22px; + border-radius: 50%; + background-color: #38cda0; + color: white; +} + +.tick-background { + background: #a9f7e6; + border-radius: 29px; + color: #1b9b7f; +} + +.tab-color { + border-radius: 10px; + border-color: #1955E4; + color: #1955E4; + } + +.view-link { + color: #1955E4; +} + +.table-content { + overflow: scroll; + overflow-x: scroll; + overflow-y: auto; +} + +.transaction-companySymbol { + color: rgb(0, 0, 0); + font-weight: 700; + font-size: 1.1rem; +} + @tailwind components; .symbolicon { diff --git a/routes/api/addBalance.js b/routes/api/addBalance.js index 7fe0d7b..98bfc33 100644 --- a/routes/api/addBalance.js +++ b/routes/api/addBalance.js @@ -10,10 +10,11 @@ const User = require("../../models/User"); // @access Private router.get("/", ensureAuth, (req, res) => { let user = req.user; - res.status(200).render("addBalance"), - { + res.status(200).render("addBalance", { + layout: "layouts/app", + href: "/addBalance", user, - }; + }); }); // TODO diff --git a/routes/api/portfolio.js b/routes/api/portfolio.js index 1d28251..291bc2f 100644 --- a/routes/api/portfolio.js +++ b/routes/api/portfolio.js @@ -8,10 +8,10 @@ const { ensureAuth, ensureGuest } = require("../../middleware/auth"); // @route GET /portfolio // @access Private router.get("/", ensureAuth, (req, res) => { - let avatar = req.user.image; + let user = req.user; res .status(200) - .render("portfolio", { layout: "layouts/app", avatar, href: "/portfolio" }); + .render("portfolio", { layout: "layouts/app", user, href: "/portfolio" }); }); module.exports = router; diff --git a/views/addBalance.ejs b/views/addBalance.ejs index 2076304..5fc8037 100644 --- a/views/addBalance.ejs +++ b/views/addBalance.ejs @@ -1,27 +1,24 @@ -

ADD BALANCE

-
-

Your Current Balance: <%= user.balance%>

-
-
-
-
- - - +
+
+
+

Add Balance

- +
+
+

Your Current Balance: <%= user.balance%>

+
+
+ + + +
+
+
+
+
+ diff --git a/views/cart.ejs b/views/cart.ejs index e803775..3aa8783 100644 --- a/views/cart.ejs +++ b/views/cart.ejs @@ -1,97 +1,66 @@
-
+
+ + + + + + +
+

- Buy Stock : + Buy Stock :

-
+ 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 %>

-