From 7cfebc7e974d7b2ffd81de86c72330a5de2525ec Mon Sep 17 00:00:00 2001 From: 22nibis Date: Mon, 23 Jun 2025 17:02:22 +0530 Subject: [PATCH] style: latest ui fixed --- .../middle-section.component.css | 54 +++++++++ .../middle-section.component.html | 68 +++++------ .../components/navbar/navbar.component.css | 41 ++++++- .../components/navbar/navbar.component.html | 114 +++++++++++++----- src/app/components/navbar/navbar.component.ts | 25 +++- src/app/home/home.component.html | 44 ++----- src/styles.css | 12 +- 7 files changed, 245 insertions(+), 113 deletions(-) diff --git a/src/app/components/middle-section/middle-section.component.css b/src/app/components/middle-section/middle-section.component.css index 35a96b2..9bda405 100644 --- a/src/app/components/middle-section/middle-section.component.css +++ b/src/app/components/middle-section/middle-section.component.css @@ -20,3 +20,57 @@ div[style*="background-color: black"] .custom-cell { .pure-white { background-color: #ffffff !important; } + + +.middle-section-container { + display: flex; + gap: 1rem; + height: 49vh; + width: 100%; +} + +/* Desktop view (default) */ +.main-table { + width: 60%; +} + +.transaction-summary { + width: 40%; +} + +.borderless-custom { + border-collapse: separate; + border-spacing: 4px; +} + +.custom-cell { + height: 3.4rem; + background-color: #f8f9fa; + border: 1px solid #ced4da; + border-radius: 0.3rem; +} + +div[style*="background-color: black"] .custom-cell { + background-color: #343a40; +} + +.pure-white { + background-color: #ffffff !important; +} + +/* Responsive layout for tablet and mobile */ +@media (max-width: 800px) { + .middle-section-container { + flex-direction: column; + align-items: center; + height: auto; + overflow-y: auto; + padding-bottom: 1rem; + } + + .transaction-summary, + .main-table { + width: 80% !important; + margin-bottom: 1rem; + } +} diff --git a/src/app/components/middle-section/middle-section.component.html b/src/app/components/middle-section/middle-section.component.html index 961e15d..281466b 100644 --- a/src/app/components/middle-section/middle-section.component.html +++ b/src/app/components/middle-section/middle-section.component.html @@ -1,43 +1,11 @@ -
+ +
- -
- -
- - - - - - - - - - - - - - - - -
- - -
- -
Amount :
-
-
-
- - -
- + +
-
Transaction Summary
-
@@ -56,4 +24,32 @@ + + +
+
+
+ + + + + + + + + + + + + + +
+ +
+ +
Amount :
+
+
+
+
diff --git a/src/app/components/navbar/navbar.component.css b/src/app/components/navbar/navbar.component.css index 76d53c6..bea5554 100644 --- a/src/app/components/navbar/navbar.component.css +++ b/src/app/components/navbar/navbar.component.css @@ -2,7 +2,7 @@ background-color: #6a4607; height: 2.5rem; font-size: 0.85rem; - width: 94vw; + width: 100%; } .top-live-button { @@ -24,12 +24,13 @@ cursor: pointer; } + .custom-navbar { background-color: #a15914; height: 2.7rem; font-weight: bold; font-size: 0.9rem; - width: 94vw; + width: 100%; } .nav-dropdown { @@ -67,3 +68,39 @@ background-color: rgba(255, 255, 255, 0.1); cursor: pointer; } + + +.hamburger { + font-size: 1.7rem; + background: none; + border: none; + color: rgb(13, 13, 13); + padding: 0.3rem 0.75rem; +} + +@media (max-width: 800px) { + .mobile-menu-container { + background-color: #c17a30; + box-shadow: -2px 0 6px rgba(0, 0, 0, 0.2); + } + + .nav-button { + justify-content: flex-end; + border-left: none; + border-right: none; + font-size: 1rem; + } + + .nav-dropdown { + text-align: right; + padding-right: 1rem; + } + + .dropdown-menu { + text-align: right; + } + + .dropdown-item { + text-align: right; + } +} diff --git a/src/app/components/navbar/navbar.component.html b/src/app/components/navbar/navbar.component.html index cf12126..8eccf61 100644 --- a/src/app/components/navbar/navbar.component.html +++ b/src/app/components/navbar/navbar.component.html @@ -1,5 +1,5 @@ -
+
{{ dateTime }}
@@ -10,43 +10,93 @@
-