Skip to content

Commit

Permalink
Merge pull request #9 from abdelaziz-mahdy/test-ui
Browse files Browse the repository at this point in the history
Improving visualization app ui
  • Loading branch information
abdelaziz-mahdy authored Dec 15, 2024
2 parents d2e711d + b252cd0 commit 8cdc389
Show file tree
Hide file tree
Showing 4 changed files with 705 additions and 227 deletions.
10 changes: 10 additions & 0 deletions benchmark-app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion benchmark-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"react-circular-progressbar": "^2.1.0",
"react-dom": "^18.3.1",
"react-scripts": "5.0.1",
"web-vitals": "^2.1.4"
"web-vitals": "^2.1.4",
"lucide-react": "^0.363.0"
},
"scripts": {
"start": "react-scripts start",
Expand Down
149 changes: 25 additions & 124 deletions benchmark-app/src/App.css
Original file line number Diff line number Diff line change
@@ -1,151 +1,52 @@
.App {
display: flex;
flex-direction: column;
height: 100vh;
font-family: Arial, sans-serif;
}

header {
padding: 20px;
background-color: #f4f4f4;
border-bottom: 1px solid #ddd;
display: flex;
flex-direction: column;
align-items: flex-start;
}

.legend {
margin-top: 10px;
text-align: left;
}

.legend h2 {
margin: 10px 0;
}

.legend .info-text {
font-size: 14px;
color: #555;
margin-bottom: 10px;
}

.legend ul {
list-style: none;
padding: 0;
}

.legend li {
margin: 5px 0;
}

.main-content {
display: flex;
flex: 1;
font-family: sans-serif;
text-align: center;
}

.sidebar {
display: flex;
flex-direction: column;
width: 220px;
padding: 20px;
background-color: #e0f7fa;
border-right: 1px solid #ddd;
height: calc(100vh - 90px); /* Adjust height to account for the header */
overflow-y: auto;
}

.fields {
display: flex;
flex-direction: column;
width: 220px;
padding: 20px;
background-color: #e1bee7;
border-right: 1px solid #ddd;
overflow-y: auto;
}

.services label, .fields label {
font-weight: bold;
margin-bottom: 10px;
display: block;
.sidebar.collapsed {
width: 60px;
}

.checkbox-container {
display: flex;
align-items: center;
margin-bottom: 10px;
cursor: pointer;
.sidebar.collapsed .section-header h3,
.sidebar.collapsed .options,
.sidebar.collapsed .section-header .lucide {
display: none;
}

.checkbox-container input[type="checkbox"] {
margin-right: 10px;
.sidebar.collapsed .section-header {
padding: 10px;
justify-content: center;
}

.checkbox-container span {
cursor: pointer;
display: block;
width: 100%;
.section-header {
padding: 10px;
border-bottom: 1px solid #eee;
}

.checkbox-container:hover {
background-color: #f0f0f0;
.options {
padding: 10px 0;
}

.chart-container {
flex: 1;
display: flex;
flex-direction: column; /* Change to column layout */
justify-content: flex-start; /* Align charts at the top */
align-items: center; /* Center align charts horizontally */
padding: 20px;
background-color: #fafafa;
gap: 20px; /* Adds space between each chart */
.option {
margin-bottom: 5px;
}

.individual-chart {
width: 100%; /* Ensure each chart takes full width */
max-width: 800px; /* Limit the maximum width for better layout */
margin-bottom: 20px; /* Add some space below each chart */
.option:hover {
background-color: #f8f8f8;
}

.individual-chart h2 {
margin-bottom: 10px; /* Space between title and chart */
font-size: 18px; /* Adjust the font size if needed */
text-align: center; /* Center align the title */
.chart-container {
min-height: calc(100vh - 90px); /* Ensure chart container fills the screen */
}

.loading-indicator {
display: flex;
justify-content: center;
align-items: center;
height: 100%;
}

@media (max-width: 768px) {
.main-content {
flex-direction: column;
}

.sidebar, .fields {
width: 100%;
}

.chart-container {
display: flex;
flex-direction: column;
gap: 20px; /* Adds space between each chart */
}

.checkbox-container {
flex-direction: column;
align-items: flex-start;
}

.checkbox-container input[type="checkbox"] {
margin-bottom: 5px;
}
}

@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
height: 200px;
}
Loading

0 comments on commit 8cdc389

Please sign in to comment.