From 876562e5b804fa2e526552f853ba8eff5053d603 Mon Sep 17 00:00:00 2001 From: Andrii Bogomolov Date: Fri, 6 Dec 2024 15:56:00 +0100 Subject: [PATCH 1/4] fix/all_styles Desktop, tablet and mob styles were adjusted for header, dashboard, form, about, information sections. --- frontend/src/App.jsx | 2 +- frontend/src/components/Footer/Footer.jsx | 11 +- frontend/src/components/Footer/footer.css | 13 +- .../src/components/MetricCard/MetricCard.jsx | 2 +- .../src/components/MetricCard/metricCard.css | 2 +- frontend/src/components/NavigationLinks.jsx | 8 +- .../TableOfContent/TableOfContents.jsx | 16 +- .../table_of_content_styles.css | 188 ++++++++-------- frontend/src/components/TokenSelector.jsx | 46 ++-- frontend/src/components/WalletSection.jsx | 7 +- frontend/src/components/header/header.css | 112 +++++++++- .../mobDropdownMenu/mobDropdownMenu.css | 28 ++- .../components/ui/ActionModal/actionModal.css | 88 ++++++-- frontend/src/globals.css | 4 + frontend/src/pages/forms/Form.jsx | 5 - frontend/src/pages/forms/form.css | 20 +- frontend/src/pages/spotnet/about/About.jsx | 2 +- frontend/src/pages/spotnet/about/about.css | 17 +- .../src/pages/spotnet/dashboard/Dashboard.jsx | 121 ++++------- .../src/pages/spotnet/dashboard/dashboard.css | 200 ++++++++++++++---- .../spotnet/documentation/documentation.css | 16 +- .../pages/spotnet/information/information.css | 14 +- .../src/pages/spotnet/overview/overview.css | 138 ++++++------ frontend/src/pages/vault/stake/stake.css | 43 ++-- frontend/src/pages/vault/vaultLayout.css | 58 +++-- 25 files changed, 692 insertions(+), 469 deletions(-) diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index ad2ecb8c..3a600107 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -105,7 +105,7 @@ function App() { } /> } /> - } /> + } />
diff --git a/frontend/src/components/Footer/Footer.jsx b/frontend/src/components/Footer/Footer.jsx index 44794447..00b2cd87 100644 --- a/frontend/src/components/Footer/Footer.jsx +++ b/frontend/src/components/Footer/Footer.jsx @@ -68,7 +68,7 @@ function Footer() { ))} -
+
(isActive ? 'active-link footer-link-dashboard' : 'footer-link-dashboard')} @@ -88,9 +88,8 @@ function Footer() { Form
-
- -
*/} + {/* (isActive ? 'active-link footer-link-form' : 'footer-link-form')} > @@ -98,8 +97,8 @@ function Footer() { Vault - - + */} + {/*
*/}
); diff --git a/frontend/src/components/Footer/footer.css b/frontend/src/components/Footer/footer.css index 2253e3f7..f660a9cb 100644 --- a/frontend/src/components/Footer/footer.css +++ b/frontend/src/components/Footer/footer.css @@ -30,6 +30,10 @@ transition: transform 0.3s ease; } +.footer-docs > a:last-child { + margin-right: 0; +} + .footer-docs a:hover { transform: scale(1.1); } @@ -94,14 +98,13 @@ height: 70px; } - - .footer-mob-nav { position: relative; display: flex; align-items: center; - justify-content: space-between; - padding: 15px 25px; + justify-content: inherit; + padding: 15px; + gap: 60px; width: 100%; } @@ -179,5 +182,5 @@ } .footer-link-active { - color: #49ABD2 !important; + color: #49abd2 !important; } diff --git a/frontend/src/components/MetricCard/MetricCard.jsx b/frontend/src/components/MetricCard/MetricCard.jsx index 38280718..8b1f577d 100644 --- a/frontend/src/components/MetricCard/MetricCard.jsx +++ b/frontend/src/components/MetricCard/MetricCard.jsx @@ -8,7 +8,7 @@ export default function MetricCard({ title, value }) { {title}
- {value} + {value}
); diff --git a/frontend/src/components/MetricCard/metricCard.css b/frontend/src/components/MetricCard/metricCard.css index 2680b484..bcddb893 100644 --- a/frontend/src/components/MetricCard/metricCard.css +++ b/frontend/src/components/MetricCard/metricCard.css @@ -34,7 +34,7 @@ line-height: 16px; } - .card-value .top-card-value { + .card-value .metric-card-value { font-size: 20px; line-height: 27px; } diff --git a/frontend/src/components/NavigationLinks.jsx b/frontend/src/components/NavigationLinks.jsx index ec474ed3..1ab3cb0c 100644 --- a/frontend/src/components/NavigationLinks.jsx +++ b/frontend/src/components/NavigationLinks.jsx @@ -11,10 +11,10 @@ const NavigationLinks = ({ onNavClick }) => ( (isActive ? 'active-link' : '')} onClick={onNavClick}> Dashboard -
- (isActive ? 'active-link' : '')} onClick={onNavClick}> - Vault - + {/*
*/} + {/* (isActive ? 'active-link' : '')} onClick={onNavClick}> */} + {/* Vault */} + {/* */} ); diff --git a/frontend/src/components/TableOfContent/TableOfContents.jsx b/frontend/src/components/TableOfContent/TableOfContents.jsx index 527f1dd6..cfe7b030 100644 --- a/frontend/src/components/TableOfContent/TableOfContents.jsx +++ b/frontend/src/components/TableOfContent/TableOfContents.jsx @@ -1,5 +1,5 @@ import React, { useEffect, useState } from 'react'; -import "./table_of_content_styles.css"; +import './table_of_content_styles.css'; const TableOfContents = ({ items, defaultActiveId, tabelTitle, headerHeight = 80 }) => { const [activeId, setActiveId] = useState(defaultActiveId); @@ -47,28 +47,28 @@ const TableOfContents = ({ items, defaultActiveId, tabelTitle, headerHeight = 80 }; return ( -
+
-

{tabelTitle}

+

{tabelTitle}

-