From 4c8fd78e09d5f63f2dd59c1facdb76e8492dd62a Mon Sep 17 00:00:00 2001
From: MohanrajRK <159987765+MohanrajRK@users.noreply.github.com>
Date: Tue, 7 Jan 2025 10:16:28 +0530
Subject: [PATCH] 932646: Enhancing the UI for a More Attractive Stock
Management Application with tailwind3.
---
Stock-Market-Application/package.json | 1 +
Stock-Market-Application/public/index.html | 2 +-
.../src/components/MyPortfolio.tsx | 6 +
Stock-Market-Application/src/style.css | 299 ++++++++++++------
4 files changed, 209 insertions(+), 99 deletions(-)
diff --git a/Stock-Market-Application/package.json b/Stock-Market-Application/package.json
index 1e51d9e..9cdfcc7 100644
--- a/Stock-Market-Application/package.json
+++ b/Stock-Market-Application/package.json
@@ -5,6 +5,7 @@
"dependencies": {
"@syncfusion/ej2-base": "^26.1.35",
"@syncfusion/ej2-react-base": "^26.1.35",
+ "@syncfusion/ej2-react-notifications": "^26.1.35",
"@syncfusion/ej2-querybuilder": "^26.1.35",
"@syncfusion/ej2-react-querybuilder": "^26.1.35",
"@syncfusion/ej2-data": "^26.1.35",
diff --git a/Stock-Market-Application/public/index.html b/Stock-Market-Application/public/index.html
index cb674d5..2bf764a 100644
--- a/Stock-Market-Application/public/index.html
+++ b/Stock-Market-Application/public/index.html
@@ -7,7 +7,7 @@
rel="stylesheet"
/>
diff --git a/Stock-Market-Application/src/components/MyPortfolio.tsx b/Stock-Market-Application/src/components/MyPortfolio.tsx
index 7458b67..1c9f712 100644
--- a/Stock-Market-Application/src/components/MyPortfolio.tsx
+++ b/Stock-Market-Application/src/components/MyPortfolio.tsx
@@ -19,6 +19,7 @@ import {
} from '@syncfusion/ej2-react-grids';
import { StockDetails } from '../data';
import { useNavigate } from 'react-router-dom';
+import { MessageComponent } from '@syncfusion/ej2-react-notifications';
export default function MyPortfolio(props: { changeMarquee: Function, myStockDm: DataManager }) {
const navigate = useNavigate();
@@ -155,6 +156,11 @@ export default function MyPortfolio(props: { changeMarquee: Function, myStockDm:
enableHover={false}
commandClick={commandClick}
destroyed={destroyed}
+ allowSelection={false}
+ allowKeyboard={false}
+ emptyRecordTemplate={()=>{
+ return ();
+ }}
>
a, .nav .open>a:focus, .nav .open>a:hover {
- background-color: #082338;
+.nav .open > a,
+.nav .open > a:focus,
+.nav .open > a:hover {
+ background-color: #1e293b;
+ color: #0080ff;
}
+
/* marquee */
.marquee-container {
width: 100%;
overflow: hidden;
white-space: nowrap;
- /* background: #333; */
- background: #00264d;
- font-size: 24px;
- padding: 10px 0;
+ background: #121212;
+ font-size: 15px;
+ padding: 8px 0;
+ border-top: 1px solid #2C2C2C;
+ border-bottom: 1px solid #2C2C2C;
}
.marquee {
display: inline-block;
padding-left: 100%;
- animation: marquee 35s linear infinite;
- font-size: 15px;
+ animation: marquee 25s linear infinite;
+ font-size: 17px;
+ color: #E0E0E0;
}
+
.marquee .company {
- padding: 0 25px;
+ display: inline-flex;
+ align-items: center;
+ padding: 0 20px;
+ border-right: 1px solid #2C2C2C;
}
-.marquee .value {
- padding: 0 3px 0 7px;
+
+.marquee .company:last-child {
+ border-right: none;
}
-.company.posvalue {
- color: #00ff55;
+
+.marquee .value {
+ padding: 0 3px 0 7px;
font-weight: bold;
}
+
+.company.posvalue,
.company.negvalue {
- color: #ff3740;
- font-weight: bold;
+ color: #FFFFFF;
+}
+
+.company.posvalue .value,
+.company.posvalue .e-icons.pos {
+ color: #00FF88;
+}
+
+.company.negvalue .value,
+.company.negvalue .e-icons.neg {
+ color: #FF5555;
}
+
.company .pos {
vertical-align: text-top;
}
+
.company .neg {
vertical-align: text-bottom;
}
+
.company.posvalue .pos.e-icons::before {
- content: '\e82a';
+ content: '\e87a';
}
+
.company.negvalue .neg.e-icons::before {
- content: '\e83d';
+ content: '\e70d';
}
@keyframes marquee {
from {
transform: translateX(0%);
}
+
to {
transform: translateX(-100%);
}
}
.e-ddb-icons.e-profile::before {
- content: "\e703";
+ content: '\e703';
}
/* main content */
.main-content {
min-height: 600px;
- background-color: #003366;
- color: #ffffff;
- padding: 10px;
+ background-color: #FFFFFF;
+ color: #000000;
+ padding: 20px;
}
/* Overview */
.stock-content-area {
- padding-left: 10px;
+ padding-left: 20px;
min-height: 450px;
+ background-color: #FFFFFF;
+ border-radius: 4px;
}
+
.dd-container {
- padding-bottom: 10px;
+ padding: 10px;
+ background-color: #f3f4f6;
}
-.e-sidebar {
+
+.e-sidebar.e-left {
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
- background: #303030;
+ border-right: none;
}
+
+.e-listview:not(.e-list-template) .e-list-item {
+ padding: 10px;
+ border-bottom: none;
+ background-color: #f3f4f6;
+ color: #111827;
+}
+
+.e-listview:not(.e-list-template) .e-list-item.e-hover {
+ background-color: #e5e7eb;
+ color: #1f2937;
+}
+
+.e-listview:not(.e-list-template) .e-list-item.e-active {
+ background-color: #d1d5db;
+ color: #374151;
+}
+
.e-grid td.e-rowcell.e-pos:not(.e-editedbatchcell):not(.e-updatedtd),
-.e-grid.e-gridhover
- .e-row:not(.e-disable-gridhover):not(.e-editedrow):not(.e-detailrow):hover
- .e-rowcell.e-pos:not(.e-cellselectionbackground):not(.e-active):not(
- .e-updatedtd
- ):not(.e-indentcell),
+.e-grid.e-gridhover .e-row:not(.e-disable-gridhover):not(.e-editedrow):not(.e-detailrow):hover .e-rowcell.e-pos:not(.e-cellselectionbackground):not(.e-active):not(.e-updatedtd):not(.e-indentcell),
.e-grid td.e-rowcell.e-pos .e-icons {
color: #00a653;
}
.e-grid td.e-rowcell.e-neg:not(.e-editedbatchcell):not(.e-updatedtd),
-.e-grid.e-gridhover
- .e-row:not(.e-disable-gridhover):not(.e-editedrow):not(.e-detailrow):hover
- .e-rowcell.e-neg:not(.e-cellselectionbackground):not(.e-active):not(
- .e-updatedtd
- ):not(.e-indentcell),
+.e-grid.e-gridhover .e-row:not(.e-disable-gridhover):not(.e-editedrow):not(.e-detailrow):hover .e-rowcell.e-neg:not(.e-cellselectionbackground):not(.e-active):not(.e-updatedtd):not(.e-indentcell),
.e-grid td.e-rowcell.e-neg .e-icons {
color: #ff3740;
}
+.e-grid .e-gridheader .e-sortfilter .e-headercelldiv {
+ padding: 0 20px 0 8px;
+}
+
+/* My Portfolio */
+
+#myWishListGrid .e-emptyrow td {
+ padding: 0;
+}
+
+#msg_info.e-message.e-filled.e-info {
+ background-color: #FFE4E4;
+ color: #990000;
+}
+
+#msg_info.e-message.e-filled.e-info .e-msg-icon {
+ color: #990000;
+}
/* Gainers Losers */
@@ -203,10 +287,6 @@
float: left;
}
-.section2 {
- /* padding-left: 10px; */
-}
-
.sections .header {
font-weight: bold;
padding-bottom: 10px;
@@ -217,12 +297,14 @@
.companydd-container {
padding-top: 5px;
}
+
.chartHeader {
padding: 10px 0 10px 0;
font-size: 16px;
text-align: center;
font-weight: bold;
}
+
.chart-container {
padding-top: 10px;
}
@@ -247,46 +329,60 @@ text#stockchartdefault_ChartTitle {
.e-card .e-card-header .e-card-header-caption .e-card-header-title {
font-weight: bold;
- color: rgba(0, 0, 0, .7);
+ color: rgba(0, 0, 0, 0.7);
}
+
.e-card {
border-radius: 10px;
}
+
+.db-carousel .e-carousel-items .e-carousel-item .card-text {
+ color: #374151;
+}
+
+.db-carousel .e-carousel-items .e-carousel-item .card-text a {
+ color: #4f46e5;
+}
+
.e-card .e-card-content {
- color: #000;
+ color: #333;
padding: 0 16px 16px 16px;
}
+
.e-card .e-card-actions {
padding: 8px 16px 16px;
}
+
.e-card-content {
min-height: 120px;
}
.e-card.card1 {
- background-color: #E6E6FA;
+ background-color: #E0F2FE;
}
.e-card.card2 {
- background-color: #AFEEEE;
- /* background-color: #66B2FF; */
+ background-color: #BFDBFE;
}
.e-card.card3 {
- background-color: #FFFF99;
+ background-color: #F9FAEB;
}
.e-card.card4 {
- background-color: #99FF99;
+ background-color: #D1FAE5;
}
+
.e-card.card5 {
- background-color: #FFB6B6;
+ background-color: #FECACA;
}
+
.e-card.card6 {
- background-color: #F5FFFA;
+ background-color: #F0FDFA;
}
-.e-card .e-card-actions a, .e-card .e-card-actions a:hover {
+.e-card .e-card-actions a,
+.e-card .e-card-actions a:hover {
background-color: rgb(103, 80, 164);
color: #fff;
border-radius: 5px;
@@ -295,7 +391,6 @@ text#stockchartdefault_ChartTitle {
/* Know More */
.db-carousel-section .carousel-sample {
- /* border: 1px solid #e5e5e5; */
border-radius: 0.5em;
margin: 0 auto 2em;
max-width: 1000px;
@@ -341,12 +436,11 @@ text#stockchartdefault_ChartTitle {
@media screen and (max-width: 480px) {
.db-carousel-section .carousel-sample {
- width: 100%;
- height: 440px;
+ width: 100%;
+ height: 440px;
}
}
-
@media screen and (min-width: 700px) {
.e-card-content {
min-height: 200px;
@@ -366,52 +460,61 @@ text#stockchartdefault_ChartTitle {
}
@media screen and (min-width: 700px) {
- .sector-container, .menu-container{
- display: none;
+
+ .sector-container,
+ .menu-container {
+ display: none;
}
}
@media only screen and (max-width: 700px) {
+
/* Overview */
- #listSidebar, .nav .nav-link {
+ #listSidebar,
+ .nav .nav-link {
display: none;
}
+
.nav .menu-container .nav-link {
display: inherit;
}
+
.stock-content-area.e-content-animation {
transform: unset !important;
margin-left: unset !important;
}
+
.sector-container {
padding-right: 10px;
}
- .sector-container .e-input-group input#sectors.e-input,
+
+ .sector-container .e-input-group input#sectors.e-input,
.sector-container .e-input-group.e-control-wrapper input#sectors.e-input {
min-height: 28px;
-}
+ }
/* Climbers Fallers */
.sections,
-.section1,
-.section2 {
- display: block;
-}
+ .section1,
+ .section2 {
+ display: block;
+ }
-.section1,
-.section2 {
- width: auto;
-}
+ .section1,
+ .section2 {
+ width: auto;
+ }
-.section1 {
- float: unset;
-}
+ .section1 {
+ float: unset;
+ }
-/* News */
-.col-xs-4 {
- width: 100%;
-}
-.e-card-content {
- min-height: unset;
-}
-}
+ /* News */
+ .col-xs-4 {
+ width: 100%;
+ }
+
+ .e-card-content {
+ min-height: unset;
+ }
+}
\ No newline at end of file