Skip to content
Closed
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
9 changes: 6 additions & 3 deletions client/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { logger } from "./Utils/Logger"; // Import the logger
import { networkService } from "./main";
import { Routes } from "./Routes";
import AppLayout from "@/Components/v1/Layouts/AppLayout";
import { UserGuideSidebarProvider } from "@/Components/v1/UserGuide";

function App() {
const mode = useSelector((state) => state.ui.mode);
Expand All @@ -25,9 +26,11 @@ function App() {
return (
<ThemeProvider theme={mode === "light" ? lightTheme : darkTheme}>
<CssBaseline />
<AppLayout>
<Routes />
</AppLayout>
<UserGuideSidebarProvider>
<AppLayout>
<Routes />
</AppLayout>
</UserGuideSidebarProvider>
<ToastContainer />
</ThemeProvider>
);
Expand Down
37 changes: 0 additions & 37 deletions client/src/Components/v1/Layouts/HomeLayout/index.css

This file was deleted.

32 changes: 28 additions & 4 deletions client/src/Components/v1/Layouts/HomeLayout/index.jsx
Original file line number Diff line number Diff line change
@@ -1,20 +1,44 @@
import Sidebar from "../../Sidebar/index.jsx";
import { Outlet } from "react-router";
import { Stack } from "@mui/material";

import "./index.css";
import { useTheme } from "@mui/material/styles";
import { UserGuideSidebar, TAB_BAR_WIDTH } from "../../UserGuide";

const HomeLayout = () => {
const theme = useTheme();

return (
<Stack
className="home-layout"
flexDirection="row"
gap={14}
sx={{
position: "relative",
minHeight: "100vh",
margin: "0 auto",
padding: 0,
overflowX: "hidden",
width: "100%",
"& > div": {
minHeight: `calc(100vh - ${theme.spacing(4)} * 2)`,
flex: 1,
},
}}
>
<Sidebar />
<Stack className="home-content-wrapper">
<Stack
sx={{
padding: theme.spacing(4),
paddingRight: `${TAB_BAR_WIDTH + 16}px`,
maxWidth: 1400,
margin: "0 auto",
flex: 1,
minWidth: 0,
overflowX: "hidden",
}}
>
<Outlet />
</Stack>
<UserGuideSidebar />
</Stack>
);
};
Expand Down
2 changes: 2 additions & 0 deletions client/src/Components/v1/Sidebar/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ const Sidebar = () => {
gap={theme.spacing(6)}
sx={{
transition: "width 650ms cubic-bezier(0.36, -0.01, 0, 0.77)",
backgroundColor: theme.palette.primaryBackground.main,
zIndex: 1000,
}}
>
<CollapseButton collapsed={collapsed} />
Expand Down
157 changes: 157 additions & 0 deletions client/src/Components/v1/UserGuide/ArticlePage.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,157 @@
/* ArticlePage styles - hover states and nested selectors (Dark theme) */

/* Breadcrumb hover */
.user-guide-breadcrumb-link {
transition: color 150ms ease;
}

.user-guide-breadcrumb-link:hover {
color: #1570ef;
}

/* ToC link hover */
.user-guide-toc-link {
transition: all 150ms ease;
}

.user-guide-toc-link:hover {
color: #1570ef;
text-decoration: underline !important;
}

/* Navigation button hover */
.user-guide-nav-button .nav-text {
transition: color 150ms ease;
}

.user-guide-nav-button:hover .nav-text {
color: #1570ef;
}

/* Article body typography */
.user-guide-article-body h2 {
font-size: 18px;
font-weight: 600;
color: #ffffff;
margin-top: 32px;
margin-bottom: 16px;
line-height: 1.4;
}

.user-guide-article-body h3 {
font-size: 14px;
font-weight: 600;
color: #ffffff;
margin-top: 24px;
margin-bottom: 12px;
line-height: 1.4;
}

.user-guide-article-body p {
font-size: 13px;
color: #d0d5dd;
line-height: 1.5;
margin-bottom: 16px;
margin-top: 0;
}

.user-guide-article-body ul,
.user-guide-article-body ol {
padding-left: 24px;
margin-bottom: 16px;
margin-top: 0;
}

.user-guide-article-body li {
font-size: 13px;
color: #d0d5dd;
line-height: 1.5;
margin-bottom: 8px;
}

.user-guide-article-body a {
color: #1570ef;
text-decoration: none;
font-weight: 500;
}

.user-guide-article-body a:hover {
text-decoration: underline;
}

.user-guide-article-body code {
background-color: #2d2d2d;
padding: 2px 6px;
border-radius: 4px;
font-size: 10px;
font-family: "Geist Mono", "Fira Code", "Consolas", monospace;
color: #d0d5dd;
}

.user-guide-article-body pre {
background-color: #1c2130;
border-radius: 4px;
padding: 16px;
overflow: auto;
margin-bottom: 16px;
margin-top: 0;
}

.user-guide-article-body pre code {
background-color: transparent;
padding: 0;
color: #e5e7eb;
}

.user-guide-article-body blockquote {
border-left: 3px solid #1570ef;
background-color: rgba(255, 255, 255, 0.05);
padding: 12px 16px;
border-radius: 0 4px 4px 0;
margin-bottom: 16px;
margin-top: 0;
margin-left: 0;
margin-right: 0;
}

.user-guide-article-body blockquote p {
margin-bottom: 0;
color: #d0d5dd;
}

.user-guide-article-body table {
width: 100%;
border-collapse: collapse;
margin-bottom: 16px;
}

.user-guide-article-body th,
.user-guide-article-body td {
border: 1px solid #344054;
padding: 12px;
text-align: left;
font-size: 10px;
}

.user-guide-article-body th {
background-color: rgba(255, 255, 255, 0.05);
font-weight: 600;
color: #ffffff;
}

.user-guide-article-body td {
color: #d0d5dd;
}

.user-guide-article-body img {
max-width: 100%;
border-radius: 4px;
border: 1px solid #344054;
margin-bottom: 16px;
}

.user-guide-article-body hr {
border: none;
border-top: 1px solid #344054;
margin: 32px 0;
}
Loading