Skip to content

Commit

Permalink
charts
Browse files Browse the repository at this point in the history
  • Loading branch information
Sasank123k committed Jul 14, 2024
1 parent 3873ef3 commit 9544b31
Show file tree
Hide file tree
Showing 17 changed files with 4,831 additions and 246 deletions.
2,447 changes: 2,359 additions & 88 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@
"react-copy-to-clipboard": "^5.1.0",
"react-dom": "^18.2.0",
"react-icons": "^5.2.1",
"react-plotly.js": "^2.6.0",
"react-responsive-carousel": "^3.2.23",
"react-router-dom": "^6.23.1"
"react-router-dom": "^6.23.1",
"recharts": "^2.12.7"
},
"devDependencies": {
"@chromatic-com/storybook": "^1.5.0",
Expand Down
3 changes: 3 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ import Template1 from './pages/Examples/Template1/Template1';
import Tab from './components/Tab/Tab';
import Breadcrumb from './components/Breadcrumb/Breadcrumb';
import Accordion from './components/Accordion/Accordion';
import Chart from './components/Chart/Chart';

import { AuthProvider } from './context/AuthContext';

const App: React.FC = () => {
Expand Down Expand Up @@ -99,6 +101,7 @@ const App: React.FC = () => {
<Route path="/tab" element={<Tab />} />
<Route path="/breadcrumb" element={<Breadcrumb />} />
<Route path="/accordion" element={<Accordion />} />
<Route path="/chart" element={<Chart />} />
</Routes>
<Footer></Footer>
</Router>
Expand Down
114 changes: 61 additions & 53 deletions src/components/Breadcrumb/Breadcrumb.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,105 +6,114 @@
width: 100%;
}

.breadcrumbContainer {
display: flex;
justify-content: space-between;
width: 100%;
}

/* Common Styles */
.breadcrumbSection {
width: 100%;
width: 45%;
max-width: 800px;
margin: 20px auto;
margin: 20px;
padding: 20px;
font-family: Arial, sans-serif;
background-color: #f8f9fa;
background-color: #ffffff;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
color: #333;
display: flex;
justify-content: center; /* Center align the breadcrumb */
}

.simpleBreadcrumb, .iconBreadcrumb, .dropdownBreadcrumb, .statusIndicatorBreadcrumb {
display: flex;
align-items: center;
gap: 10px;
}

.breadcrumbSection a {
text-decoration: none;
color: #007bff;
font-size: 18px; /* Increase font size */
display: flex;
align-items: center;
position: relative;
top: -1px; /* Adjust alignment */
}

.breadcrumbSection a:hover {
text-decoration: underline;
}

/* Simple Breadcrumb */
.simpleBreadcrumb {
display: flex;
gap: 5px;
}

/* Icon Breadcrumb */
.iconBreadcrumb {
.breadcrumbSeparator {
margin: 0 5px;
color: #6c757d;
font-size: 18px; /* Increase font size */
display: flex;
align-items: center;
position: relative;
top: -1px; /* Adjust alignment */
}

.breadcrumbIcon {
margin-right: 5px;
}

.breadcrumbSeparator {
margin: 0 5px;
color: #6c757d;
.dropdownItem {
position: relative;
cursor: pointer;
display: flex;
align-items: center;
}

/* Vertical Breadcrumb */
.verticalBreadcrumb {
display: flex;
flex-direction: column;
gap: 5px;
align-items: flex-start;
.dropdownMenu {
position: absolute;
top: 100%;
left: 0;
background-color: white;
border: 1px solid #ddd;
border-radius: 4px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
list-style: none;
padding: 10px;
margin: 0;
width: 150px;
z-index: 1;
}

.verticalBreadcrumb .breadcrumbSeparator {
margin: 5px 0;
.dropdownMenu li {
padding: 8px 12px;
cursor: pointer;
}

/* Step Breadcrumb */
.stepBreadcrumb {
display: flex;
align-items: center;
.dropdownMenu li:hover {
background-color: #f0f0f0;
}

.stepItem {
.statusIndicatorBreadcrumb {
display: flex;
align-items: center;
gap: 10px;
}

.stepNumber {
margin-right: 5px;
background-color: #007bff;
color: white;
border-radius: 50%;
padding: 5px 10px;
}

/* Animated Breadcrumb */
.animatedBreadcrumb {
.statusItem {
display: flex;
align-items: center;
animation: fadeIn 0.5s ease-in-out;
padding: 10px;
border-radius: 4px;
background-color: #007bff; /* Uniform color for all steps */
color: white;
}

@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
.statusLabel {
font-size: 18px;
}

/* Code Box */
.codeBoxContainer {
display: flex;
justify-content: center;
margin-top: 20px;
}

.codeBox {
margin-top: 20px;
width: 80%;
padding: 10px;
border: 1px solid #ddd;
border-radius: 5px;
Expand All @@ -113,7 +122,6 @@
max-height: 300px;
overflow-y: scroll;
position: relative;
width: 90%;
}

.toggleButtons {
Expand Down
Loading

0 comments on commit 9544b31

Please sign in to comment.