Skip to content

Commit

Permalink
ui updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ramenpepe committed May 14, 2024
1 parent e239207 commit 8f51682
Show file tree
Hide file tree
Showing 10 changed files with 1,583 additions and 3,647 deletions.
18 changes: 18 additions & 0 deletions example.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { test, expect } from '@playwright/test';
console.log(process.env.DIR);
test('has title', async ({ page }) => {
await page.goto('https://playwright.dev/');

// Expect a title "to contain" a substring.
await expect(page).toHaveTitle(/Playwright/);
});

test('get started link', async ({ page }) => {
await page.goto('https://playwright.dev/');

// Click the get started link.
await page.getByRole('link', { name: 'Get started' }).click();

// Expects the URL to contain intro.
await expect(page).toHaveURL(/.*intro/);
});
4,756 changes: 1,171 additions & 3,585 deletions package-lock.json

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,24 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@emotion/react": "^11.11.4",
"@emotion/styled": "^11.11.5",
"@mui/icons-material": "^5.15.17",
"@mui/material": "^5.15.17",
"@react-oauth/google": "^0.12.1",
"@uiw/react-textarea-code-editor": "^3.0.2",
"ethers": "^6.12.1",
"react-dom": "^18.2.0",
"react-grid-layout": "^1.3.4",
"react-icons": "^4.9.0",
"react-inlinesvg": "^3.0.2",
"react-markdown": "^9.0.1",
"react-oauth": "^0.0.1",
"react-router-dom": "^6.12.1",
"react-scripts": "5.0.1",
"react-select": "^5.7.3",
"recharts": "^2.10.3",
"remark-gfm": "^4.0.0",
"solc": "^0.8.25",
"stream-http": "^3.2.0",
"undici": "^6.15.0",
Expand Down
91 changes: 89 additions & 2 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -260,18 +260,19 @@ cursor: pointer;
justify-content: space-between; /* Distributes space between items */
width: 100%; /* Takes full width of the parent container */
padding: 10px; /* Optional padding for some spacing */
height: 80vh;
height: 60vh;
}

.option {
height:100%;
max-width:300px;
flex: 1; /* Gives the option panel some flexibility in taking up space */
padding: 10px; /* Padding for spacing inside the panel */
background-color: #f0f0f0; /* Light grey background for visibility */
margin-right: 10px; /* Space between option panel and chat container */
}

.chat-container {
.option-container, .code-container {
height:100%;
flex: 3; /* Allows the chat container to take more space */
display: flex;
Expand All @@ -281,11 +282,53 @@ cursor: pointer;
border: 1px solid #ccc; /* Border around the chat container */
margin-right: 10px; /* Space between chat container and code editor */
}
.outer-container {
width: 30px; /* Define as needed */
height: 200px; /* Define as needed */
position: relative; /* Parent positioning context */
overflow: hidden; /* Ensures no content spills out */
display: flex; /* Centering child */
justify-content: center; /* Center horizontally */
align-items: center; /* Center vertically */
}
.rotated-div:hover { opacity: 0.5; cursor: pointer;}
.rotated-div {
width: 200px; /* Adjust based on content */
height: 30px; /* Adjust based on content */
background-color: rgb(233, 3, 3); /* For visibility */
box-shadow: 0 -2px 5px #000 inset;
text-align: center; /* Align text inside the rotated div */
color:#FFF;
line-height: 30px; /* Align text vertically */
transform: rotate(-90deg); /* Rotation angle */
position: absolute; /* Absolute positioning inside relative container */
}
.chat-container{
height:100%; flex: 3; /* Allows the chat container to take more space */
display: flex;
flex-direction: column; /* Stacks the internal chat elements vertically */
padding: 10px;
background-color: #fff; /* White background for the chat area */
border: 1px solid #ccc; /* Border around the chat container */
margin-right: 10px; /* Space between chat container and code editor */
}
.chatbox{
height:100%;
flex: 3; /* Allows the chat container to take more space */
display: flex;
flex-direction: column; /* Stacks the internal chat elements vertically */
padding: 10px;
background-color: #fff; /* White background for the chat area */
border: 1px solid #ccc; /* Border around the chat container */
margin-right: 10px; /* Space between chat container and code editor */
}
.option-panel button{ width:100%; }

.code-container {
height:100%;
flex: 2; /* Gives the code editor flexibility in taking up space */
padding: 10px;
overflow:auto;
background-color: #e8e8e8; /* Slightly different background for distinction */
}

Expand All @@ -294,6 +337,8 @@ cursor: pointer;
padding: 10px;
margin-top: 10px; /* Space from the middle row */
background-color: #f9f9f9; /* Light background for the flowchart container */
font-weight:100;
font-family: "Poetsen One", sans-serif;
}

.messages {
Expand All @@ -317,6 +362,19 @@ cursor: pointer;
.message-text {
margin-top: 5px;
}
.message-text, pre{ font-family:'Montserrat', BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen','Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue' !important;
}
.message-text.user {
margin-top: 5px;
color:blue;
text-align:right;
}

.message-text.assistant {
margin-top: 5px;
text-align:left;
}
.message-text pre{ background: #ccc; padding:4px; }

.send-message-form {
display: flex;
Expand Down Expand Up @@ -345,6 +403,35 @@ cursor: pointer;
background-color: #0056b3;
}

.flowchart-container {
display: flex;
/* flex-wrap: wrap; */
overflow-x: scroll;
gap: 10px;
background-color: #f4f4f4; /* Light grey background */
}

.step-block {
flex: 1 1 200px; /* Each block takes up equal space, minimum 200px */
padding: 10px;
border-radius: 5px;
box-shadow: 0 2px 4px rgba(0,0,0,0.2); /* Soft shadow for 3D effect */
background-color: #ffffff;
text-align: center;
}

.step-block.start {
border-left: 4px solid green; /* Green border for Start steps */
}

.step-block.process {
border-left: 4px solid blue; /* Blue border for Process steps */
}

.step-block.end {
border-left: 4px solid red; /* Red border for End steps */
}

@keyframes App-logo-spin {
from {
transform: rotate(0deg);
Expand Down
Loading

0 comments on commit 8f51682

Please sign in to comment.