Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix/all_styles #324

Merged
merged 4 commits into from
Dec 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontend/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function App() {
<Route path="/form" element={<Form />} />
<Route path="/documentation" element={<Documentation />} />

<Route path="/stake" element={<Stake />} />
<Route path="/stake" element={<Stake />} />
</Routes>
</main>
<Footer />
Expand Down
11 changes: 5 additions & 6 deletions frontend/src/components/Footer/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function Footer() {
</a>
))}
</div>
<div className="footer-mob-nav px">
<div className="footer-mob-nav">
<NavLink
to="/dashboard"
className={({ isActive }) => (isActive ? 'active-link footer-link-dashboard' : 'footer-link-dashboard')}
Expand All @@ -88,18 +88,17 @@ function Footer() {
<span>Form</span>
</div>
</NavLink>
<div className="footer-mob-divider"></div>

<NavLink
{/* <div className="footer-mob-divider"></div> */}
{/* <NavLink
to="/stake"
className={({ isActive }) => (isActive ? 'active-link footer-link-form' : 'footer-link-form')}
>
<div className="link-wrapper">
<FormIcon className="footer-icon" />
<span>Vault</span>
</div>
</NavLink>

</NavLink> */}
{/* <div className="footer-line"></div> */}
</div>
</footer>
);
Expand Down
13 changes: 8 additions & 5 deletions frontend/src/components/Footer/footer.css
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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%;
}

Expand Down Expand Up @@ -179,5 +182,5 @@
}

.footer-link-active {
color: #49ABD2 !important;
color: #49abd2 !important;
}
2 changes: 1 addition & 1 deletion frontend/src/components/MetricCard/MetricCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default function MetricCard({ title, value }) {
<span className="label">{title}</span>
</div>
<div className="card-value">
<span className="top-card-value">{value}</span>
<span className="metric-card-value">{value}</span>
</div>
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/MetricCard/metricCard.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
line-height: 16px;
}

.card-value .top-card-value {
.card-value .metric-card-value {
font-size: 20px;
line-height: 27px;
}
Expand Down
8 changes: 4 additions & 4 deletions frontend/src/components/NavigationLinks.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ const NavigationLinks = ({ onNavClick }) => (
<NavLink to="/dashboard" className={({ isActive }) => (isActive ? 'active-link' : '')} onClick={onNavClick}>
Dashboard
</NavLink>
<div className="nav-divider"></div>
<NavLink to="/stake" className={({ isActive }) => (isActive ? 'active-link' : '')} onClick={onNavClick}>
Vault
</NavLink>
{/* <div className="nav-divider"></div> */}
{/* <NavLink to="/stake" className={({ isActive }) => (isActive ? 'active-link' : '')} onClick={onNavClick}> */}
{/* Vault */}
{/* </NavLink> */}
</div>
);

Expand Down
16 changes: 8 additions & 8 deletions frontend/src/components/TableOfContent/TableOfContents.jsx
Original file line number Diff line number Diff line change
@@ -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);
Expand Down Expand Up @@ -47,28 +47,28 @@ const TableOfContents = ({ items, defaultActiveId, tabelTitle, headerHeight = 80
};

return (
<div className={"table-of-contents"}>
<div className={'table-of-contents'}>
<div className="toc-title-container">
<h3 className={"toc-title"}>{tabelTitle}</h3>
<h3 className={'toc-title'}>{tabelTitle}</h3>
</div>
<nav className={"toc-nav"}>
<nav className={'toc-nav'}>
{items.map((item, index) => (
<div key={index} className={"toc-item"}>
<div key={index} className={'toc-item'}>
<a
href={item.link}
onClick={(e) => handleClick(e, item.link)}
className={`${"toc-link"} ${activeId === item.link.replace('#', '') ? 'active' : ''}`}
className={`${'toc-link'} ${activeId === item.link.replace('#', '') ? 'active' : ''}`}
>
• {item.title}
</a>
{item.subItems && (
<div className={"toc-subitems"}>
<div className={'toc-subitems'}>
{item.subItems.map((subItem, subIndex) => (
<a
key={subIndex}
href={subItem.link}
onClick={(e) => handleClick(e, subItem.link)}
className={`${"toc-sublink"} ${activeId === subItem.link.replace('#', '') ? 'active' : ''}`}
className={`${'toc-sublink'} ${activeId === subItem.link.replace('#', '') ? 'active' : ''}`}
>
{subItem.title}
</a>
Expand Down
Loading
Loading