Skip to content

Commit

Permalink
completes design
Browse files Browse the repository at this point in the history
  • Loading branch information
Shubh942 committed Jun 24, 2024
1 parent 535247b commit 79e9f35
Show file tree
Hide file tree
Showing 18 changed files with 156 additions and 21 deletions.
1 change: 1 addition & 0 deletions webapp/src/App.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

25 changes: 15 additions & 10 deletions webapp/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,24 @@ import LocalVariable from "./components/GdbComponents/LocalVariable/LocalVariabl
import Context from "./components/GdbComponents/Context/Context";
import MemoryMap from "./components/GdbComponents/MemoryMap/MemoryMap";
import BreakPoints from "./components/GdbComponents/BreakPoints/BreakPoints";
import Footer from "./components/Footer/Footer";

const App = () => {
return (
<Routes>
<Route path="debug" element={<Debug />}>
<Route path="threads" element={<Threads />} />
<Route path="localVariable" element={<LocalVariable />} />
<Route path="context" element={<Context />} />
<Route path="memoryMap" element={<MemoryMap />} />
<Route path="breakPoints" element={<BreakPoints />} />
</Route>
{/* You can add more routes here */}
</Routes>
<div>
<Routes>
<Route path="debug" element={<Debug />}>
<Route path="threads" element={<Threads />} />
<Route path="localVariable" element={<LocalVariable />} />
<Route path="context" element={<Context />} />
<Route path="memoryMap" element={<MemoryMap />} />
<Route path="breakPoints" element={<BreakPoints />} />
</Route>
{/* You can add more routes here */}
</Routes>

<Footer />
</div>
);
};

Expand Down
7 changes: 7 additions & 0 deletions webapp/src/components/Footer/Footer.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.footer-container {
display: flex;
justify-content: center;
align-items: center;
margin-top: 30px;
background-color: rgb(2, 12, 22);
}
12 changes: 12 additions & 0 deletions webapp/src/components/Footer/Footer.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from "react";
import "./Footer.css";

const Footer = () => {
return (
<div className="footer-container">
<p>Designed & Built with 💖 by Shubh Mehta</p>
</div>
);
};

export default Footer;
4 changes: 2 additions & 2 deletions webapp/src/components/Functions/Functions.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.functions-parent {
display: flex;
height: 70vh;
height: 100vh;
padding: 10px;
flex-direction: column;
align-items: center;
Expand All @@ -21,7 +21,7 @@
/* width: 100%; */
display: flex;
padding: 10px;
height: 57vh;
height: 87vh;
flex-direction: column;
align-items: flex-start;
gap: 11px;
Expand Down
24 changes: 24 additions & 0 deletions webapp/src/components/FunctionsBottom/FunctionsBottom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
.function-bottom {
display: flex;
flex-direction: column;
gap: 10px;
border: 1px solid var(--Gray-2, #4f4f4f);
padding: 10px 10px 10px 10px;
}
.function-bottom-heading {
display: flex;
width: 321px;
padding: 6px 12px;
justify-content: center;
align-items: center;
gap: 10px;
background: var(--primary-orange, #e88f40);
}
.function-bottom-container {
display: flex;
width: 322px;
height: 25px;
padding: 5px 10px;
justify-content: space-between;
align-items: center;
}
19 changes: 19 additions & 0 deletions webapp/src/components/FunctionsBottom/FunctionsBottom.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import React from "react";
import "./FunctionsBottom.css";

const FunctionsBottom = () => {
return (
<div className="function-bottom">
<div className="function-bottom-heading">Search</div>
<div>
<input
type="text"
className="function-bottom-container"
placeholder="Search"
/>
</div>
</div>
);
};

export default FunctionsBottom;
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const data = [
const BreakPoints = () => {
return (
<div>
BreakPoints
{/* BreakPoints */}
<div className="breakpoints">
{data?.length > 0
? data.map((obj) => {
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/components/GdbComponents/Context/Context.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import "./Context.css";
const Context = () => {
return (
<div>
Context
{/* Context */}
<div className="context">
<a> $ cat /proc/24963/maps ... lots of stuff omitted ...</a>
<a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import "./LocalVariable.css";
const LocalVariable = () => {
return (
<div>
LocalVariable
{/* LocalVariable */}
<div className="localVariable">
<a>RAD_T 0.214124123 const double</a>
<a>angle 380 double</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const data = [
const MemoryMap = () => {
return (
<div>
MemoryMap
{/* MemoryMap */}
<div className="memoryMap">
{data?.length > 0
? data.map((obj) => {
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/components/GdbComponents/Threads/Threads.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const data = [
const Threads = () => {
return (
<div>
Threads
{/* Threads */}
<div className="threads">
<div className="threads-component">
<div className="threads-component-part1">func</div>
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/components/Stack/Stack.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.stack-parent {
display: flex;
height: 60vh;
height: 90vh;
width: 210px;
padding: 10px;
flex-direction: column;
Expand Down
25 changes: 25 additions & 0 deletions webapp/src/components/StackBottom/StackBottom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
.stackbottom-container {
display: flex;
width: 190px;
height: 159px;
padding: 15px 20px;
flex-direction: column;
align-items: flex-start;
gap: 10px;
border: 1px solid var(--Gray-2, #4f4f4f);
background: #1e1e1e;
}
.stackbottom-maincomponent {
overflow-x: scroll;
width: 190px;
height: 139px;
}
.stackbottom-heading {
display: flex;
width: 169px;
padding: 6px 12px;
justify-content: center;
align-items: center;
gap: 10px;
background: var(--primary-orange, #e88f40);
}
22 changes: 22 additions & 0 deletions webapp/src/components/StackBottom/StackBottom.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import React from "react";
import "./StackBottom.css";

const StackBottom = () => {
return (
<div>
<div className="stackbottom-container">
<div className="stackbottom-heading">Registors</div>
<div className="stackbottom-maincomponent">
<div className="threads-component">
<div className="threads-component-part1">func</div>
<div className="threads-component-part2">file</div>
<div className="threads-component-part3">addr</div>
<div className="threads-component-part4">args</div>
</div>
</div>
</div>
</div>
);
};

export default StackBottom;
2 changes: 1 addition & 1 deletion webapp/src/components/Terminal/TerminalComp.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const TerminalComp = () => {
themes={{
"my-custom-theme": {
themeBGColor: "#000",
themeToolbarColor: "#DBDBDB",
themeToolbarColor: "#000",
themeColor: "#FFFEFC",
themePromptColor: "#a917a8",
},
Expand Down
12 changes: 12 additions & 0 deletions webapp/src/pages/Debug/Debug.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,15 @@
align-items: flex-start;
gap: 15px;
}
.right-part {
display: flex;

flex-direction: column;
gap: 10px;
}
.left-part {
display: flex;

flex-direction: column;
gap: 10px;
}
12 changes: 10 additions & 2 deletions webapp/src/pages/Debug/Debug.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,19 @@ import Stack from "../../components/Stack/Stack";
import TerminalComp from "../../components/Terminal/TerminalComp";
import GdbComponents from "../../components/GdbComponents/GdbComponents";
import Breakpoint from "../../components/Breakpoint/Breakpoint";
import StackBottom from "../../components/StackBottom/StackBottom";
import FunctionsBottom from "../../components/FunctionsBottom/FunctionsBottom";

const Debug = () => {
return (
<div>
<Header />
<DebugHeader />
<div className="container">
<Functions />
<div className="left-part">
<Functions />
<FunctionsBottom />
</div>
<div className="middle-component">
<div className="upper-part">
<MainScreen />
Expand All @@ -26,7 +31,10 @@ const Debug = () => {
<Breakpoint />
</div>
</div>
<Stack />
<div className="right-part">
<Stack />
<StackBottom />
</div>
</div>
</div>
);
Expand Down

0 comments on commit 79e9f35

Please sign in to comment.