mirror of
https://github.com/tcsenpai/agenticSeek.git
synced 2025-06-06 11:05:26 +00:00
Merge pull request #127 from Saminu/Simba
refactor: update styles and structure for improved UI; add color cons…
This commit is contained in:
commit
2ff93cef3c
@ -4,10 +4,9 @@
|
|||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<title>AgenticSeek</title>
|
<title>AgenticSeek</title>
|
||||||
<link
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||||
href="https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap"
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||||
rel="stylesheet"
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
|
||||||
/>
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="root"></div>
|
<div id="root"></div>
|
||||||
|
@ -1,257 +1,479 @@
|
|||||||
* {
|
* {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
|
||||||
font-family: 'Orbitron', sans-serif;
|
|
||||||
background-color: #0a0a0a;
|
|
||||||
color: #ffffff;
|
|
||||||
overflow-x: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
.app {
|
|
||||||
min-height: 100vh;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
}
|
|
||||||
|
|
||||||
.header {
|
|
||||||
padding: 20px;
|
|
||||||
text-align: center;
|
|
||||||
background-color: #1a1a1a;
|
|
||||||
border-bottom: 2px solid #00ffcc;
|
|
||||||
box-shadow: 0 0 10px #00ffcc;
|
|
||||||
}
|
|
||||||
|
|
||||||
.header h1 {
|
|
||||||
font-size: 2.5rem;
|
|
||||||
text-transform: uppercase;
|
|
||||||
letter-spacing: 2px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.main {
|
|
||||||
flex: 1;
|
|
||||||
padding: 40px;
|
|
||||||
max-width: 1400px;
|
|
||||||
margin: 0 auto;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.chat-container {
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: 1fr 1fr;
|
|
||||||
gap: 40px;
|
|
||||||
height: calc(100vh - 200px);
|
|
||||||
}
|
|
||||||
|
|
||||||
.left-panel,
|
body {
|
||||||
.right-panel {
|
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
|
||||||
background-color: #1a1a1a;
|
background-color: #0f172a; /* darkBackground */
|
||||||
border: 1px solid #00ffcc;
|
color: #f8fafc; /* darkText */
|
||||||
border-radius: 8px;
|
overflow-x: hidden;
|
||||||
box-shadow: 0 0 10px rgba(0, 255, 204, 0.2);
|
}
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
.app {
|
||||||
overflow: hidden;
|
min-height: 100vh;
|
||||||
}
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
.left-panel {
|
}
|
||||||
padding: 20px;
|
|
||||||
}
|
.header {
|
||||||
|
padding: 10px 16px;
|
||||||
.messages {
|
background-color: #1e293b; /* darkCard */
|
||||||
flex: 1;
|
border-bottom: 1px solid #334155; /* darkBorder */
|
||||||
overflow-y: auto;
|
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
||||||
padding: 10px;
|
display: flex;
|
||||||
display: flex;
|
align-items: center;
|
||||||
flex-direction: column;
|
justify-content: center;
|
||||||
max-height: 100%;
|
}
|
||||||
gap: 15px;
|
|
||||||
}
|
.header h1 {
|
||||||
|
font-size: 1.5rem;
|
||||||
.no-messages {
|
font-weight: 600;
|
||||||
text-align: center;
|
letter-spacing: 0.5px;
|
||||||
color: #666;
|
color: #f8fafc; /* darkText */
|
||||||
margin-top: 20px;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.message {
|
.section-tabs {
|
||||||
max-width: 80%;
|
display: flex;
|
||||||
padding: 10px 15px;
|
gap: 8px;
|
||||||
border-radius: 8px;
|
width: 100%;
|
||||||
font-size: 0.9rem;
|
max-width: 800px;
|
||||||
}
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.section-tabs button {
|
||||||
|
padding: 10px 20px;
|
||||||
|
background-color: #2d3748; /* Slightly lighter than darkCard */
|
||||||
|
color: #cbd5e1; /* darkTextSecondary */
|
||||||
|
border: none;
|
||||||
|
border-radius: 8px;
|
||||||
|
cursor: pointer;
|
||||||
|
font-size: 0.95rem;
|
||||||
|
font-weight: 500;
|
||||||
|
transition: all 0.2s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.section-tabs button.active {
|
||||||
|
background-color: #0066cc; /* primary */
|
||||||
|
color: #ffffff; /* white */
|
||||||
|
}
|
||||||
|
|
||||||
|
.section-tabs button:hover:not(.active) {
|
||||||
|
background-color: #4a5568; /* Medium gray */
|
||||||
|
color: #f8fafc; /* darkText */
|
||||||
|
}
|
||||||
|
|
||||||
|
.main {
|
||||||
|
flex: 1;
|
||||||
|
padding: 16px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.app-sections {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 1fr 1fr 1fr;
|
||||||
|
gap: 16px;
|
||||||
|
height: calc(100vh - 80px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.left-panel,
|
||||||
|
.right-panel {
|
||||||
|
background-color: #1e293b; /* darkCard */
|
||||||
|
border: 1px solid #334155; /* darkBorder */
|
||||||
|
border-radius: 8px;
|
||||||
|
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.left-panel {
|
||||||
|
padding: 0;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.task-section,
|
||||||
|
.chat-section,
|
||||||
|
.computer-section {
|
||||||
|
background-color: #1e293b; /* darkCard */
|
||||||
|
border: 1px solid #334155; /* darkBorder */
|
||||||
|
border-radius: 8px;
|
||||||
|
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
||||||
|
padding: 16px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.task-section h2,
|
||||||
|
.chat-section h2,
|
||||||
|
.computer-section h2 {
|
||||||
|
font-size: 1.1rem;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #cbd5e1; /* darkTextSecondary */
|
||||||
|
margin-bottom: 12px;
|
||||||
|
letter-spacing: 0.5px;
|
||||||
|
border-bottom: 1px solid #334155; /* darkBorder */
|
||||||
|
padding-bottom: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.task-details {
|
||||||
|
flex: 1;
|
||||||
|
overflow-y: auto;
|
||||||
|
background-color: #2d3748; /* Slightly lighter than darkCard */
|
||||||
|
border-radius: 8px;
|
||||||
|
padding: 16px;
|
||||||
|
margin-top: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.screenshot-container {
|
||||||
|
flex: 1;
|
||||||
|
overflow: auto;
|
||||||
|
margin-top: 12px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: flex-start;
|
||||||
|
background-color: #2d3748; /* Slightly lighter than darkCard */
|
||||||
|
border-radius: 8px;
|
||||||
|
padding: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.screenshot-container img {
|
||||||
|
max-width: 100%;
|
||||||
|
border: 1px solid #4a5568; /* Medium gray */
|
||||||
|
border-radius: 4px;
|
||||||
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.left-panel h2,
|
||||||
|
.right-panel h2 {
|
||||||
|
font-size: 1.1rem;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #cbd5e1; /* darkTextSecondary */
|
||||||
|
margin-bottom: 8px;
|
||||||
|
letter-spacing: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.messages {
|
||||||
|
flex: 1;
|
||||||
|
overflow-y: auto;
|
||||||
|
padding: 12px 8px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 12px;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.placeholder {
|
||||||
|
text-align: center;
|
||||||
|
color: #64748b; /* lighter gray */
|
||||||
|
margin-top: 20px;
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
||||||
|
.message {
|
||||||
|
max-width: 85%;
|
||||||
|
padding: 12px 16px;
|
||||||
|
border-radius: 12px;
|
||||||
|
font-size: 0.95rem;
|
||||||
|
line-height: 1.5;
|
||||||
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
.messages::-webkit-scrollbar,
|
.messages::-webkit-scrollbar,
|
||||||
.content::-webkit-scrollbar {
|
.content::-webkit-scrollbar {
|
||||||
width: 8px;
|
width: 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.user-message {
|
.messages::-webkit-scrollbar-track,
|
||||||
background-color: #00ffcc;
|
.content::-webkit-scrollbar-track {
|
||||||
color: #000;
|
background: #2d3748; /* Slightly lighter than darkCard */
|
||||||
align-self: flex-end;
|
border-radius: 8px;
|
||||||
border: 1px solid #00ccaa;
|
}
|
||||||
|
|
||||||
|
.messages::-webkit-scrollbar-thumb,
|
||||||
|
.content::-webkit-scrollbar-thumb {
|
||||||
|
background: #4a5568; /* Medium gray */
|
||||||
|
border-radius: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.messages::-webkit-scrollbar-thumb:hover,
|
||||||
|
.content::-webkit-scrollbar-thumb:hover {
|
||||||
|
background: #718096; /* Lighter gray on hover */
|
||||||
|
}
|
||||||
|
|
||||||
|
.user-message {
|
||||||
|
background-color: #0066cc; /* primary */
|
||||||
|
color: #ffffff; /* white */
|
||||||
|
align-self: flex-end;
|
||||||
|
border-top-right-radius: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.agent-message {
|
||||||
|
background-color: #2d3748; /* Slightly lighter than darkCard */
|
||||||
|
color: #f8fafc; /* darkText */
|
||||||
|
align-self: flex-start;
|
||||||
|
border-top-left-radius: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.error-message {
|
||||||
|
background-color: #dc3545; /* error */
|
||||||
|
color: #ffffff; /* white */
|
||||||
|
align-self: flex-start;
|
||||||
|
border-top-left-radius: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.agent-name {
|
||||||
|
display: block;
|
||||||
|
font-size: 0.8rem;
|
||||||
|
color: #cbd5e1; /* darkTextSecondary */
|
||||||
|
margin-bottom: 4px;
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
|
||||||
|
.loading-animation {
|
||||||
|
text-align: center;
|
||||||
|
color: #cbd5e1; /* darkTextSecondary */
|
||||||
|
padding: 8px 0;
|
||||||
|
font-size: 0.9rem;
|
||||||
|
font-style: italic;
|
||||||
|
border-top: 1px solid #334155; /* darkBorder */
|
||||||
|
margin-bottom: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.input-form {
|
||||||
|
display: flex;
|
||||||
|
gap: 8px;
|
||||||
|
margin-top: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.input-form input {
|
||||||
|
flex: 1;
|
||||||
|
padding: 12px 16px;
|
||||||
|
font-size: 0.95rem;
|
||||||
|
background-color: #2d3748; /* Slightly lighter than darkCard */
|
||||||
|
border: 1px solid #4a5568; /* Medium gray */
|
||||||
|
color: #f8fafc; /* darkText */
|
||||||
|
border-radius: 8px;
|
||||||
|
outline: none;
|
||||||
|
transition: all 0.2s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.input-form input:focus {
|
||||||
|
border-color: #0066cc; /* primary */
|
||||||
|
box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.2); /* primary with opacity */
|
||||||
|
}
|
||||||
|
|
||||||
|
.input-form button {
|
||||||
|
padding: 12px 20px;
|
||||||
|
font-size: 0.95rem;
|
||||||
|
background-color: #0066cc; /* primary */
|
||||||
|
color: #ffffff; /* white */
|
||||||
|
border: none;
|
||||||
|
border-radius: 8px;
|
||||||
|
cursor: pointer;
|
||||||
|
font-weight: 500;
|
||||||
|
transition: all 0.2s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.input-form button:hover {
|
||||||
|
background-color: #004c99; /* primaryDark */
|
||||||
|
}
|
||||||
|
|
||||||
|
.input-form button:disabled {
|
||||||
|
background-color: #4a5568; /* Medium gray */
|
||||||
|
opacity: 0.7;
|
||||||
|
cursor: not-allowed;
|
||||||
|
}
|
||||||
|
|
||||||
|
.right-panel {
|
||||||
|
padding: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.view-selector {
|
||||||
|
display: flex;
|
||||||
|
gap: 8px;
|
||||||
|
margin-bottom: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.view-selector button {
|
||||||
|
padding: 10px 16px;
|
||||||
|
font-size: 0.9rem;
|
||||||
|
background-color: #2d3748; /* Slightly lighter than darkCard */
|
||||||
|
color: #cbd5e1; /* darkTextSecondary */
|
||||||
|
border: 1px solid #4a5568; /* Medium gray */
|
||||||
|
border-radius: 8px;
|
||||||
|
cursor: pointer;
|
||||||
|
font-weight: 500;
|
||||||
|
transition: all 0.2s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.view-selector button.active {
|
||||||
|
background-color: #0066cc; /* primary */
|
||||||
|
color: #ffffff; /* white */
|
||||||
|
border-color: #0066cc; /* primary */
|
||||||
|
}
|
||||||
|
|
||||||
|
.view-selector button:hover:not(.active) {
|
||||||
|
background-color: #4a5568; /* Medium gray */
|
||||||
|
color: #f8fafc; /* darkText */
|
||||||
|
}
|
||||||
|
|
||||||
|
.view-selector button:disabled {
|
||||||
|
background-color: #4a5568; /* Medium gray */
|
||||||
|
opacity: 0.5;
|
||||||
|
cursor: not-allowed;
|
||||||
|
}
|
||||||
|
|
||||||
|
.content {
|
||||||
|
flex: 1;
|
||||||
|
overflow-y: auto;
|
||||||
|
padding: 8px 0;
|
||||||
|
margin-top: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.blocks {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.block {
|
||||||
|
background-color: #2d3748; /* Slightly lighter than darkCard */
|
||||||
|
padding: 16px;
|
||||||
|
border: 1px solid #4a5568; /* Medium gray */
|
||||||
|
border-radius: 8px;
|
||||||
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.block-tool,
|
||||||
|
.block-feedback,
|
||||||
|
.block-success {
|
||||||
|
font-size: 0.9rem;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
color: #cbd5e1; /* darkTextSecondary */
|
||||||
|
}
|
||||||
|
|
||||||
|
.block-tool {
|
||||||
|
font-weight: 600;
|
||||||
|
color: #0066cc; /* primary */
|
||||||
|
}
|
||||||
|
|
||||||
|
.block-success {
|
||||||
|
color: #28a745; /* success */
|
||||||
|
}
|
||||||
|
|
||||||
|
.block pre {
|
||||||
|
background-color: #1a202c; /* Darker than darkCard */
|
||||||
|
padding: 12px;
|
||||||
|
border-radius: 6px;
|
||||||
|
font-size: 0.85rem;
|
||||||
|
white-space: pre-wrap;
|
||||||
|
word-break: break-all;
|
||||||
|
color: #e2e8f0; /* Light gray */
|
||||||
|
margin: 8px 0;
|
||||||
|
font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
|
||||||
|
}
|
||||||
|
|
||||||
|
.screenshot {
|
||||||
|
margin-top: 8px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.screenshot img {
|
||||||
|
max-width: 100%;
|
||||||
|
border: 1px solid #4a5568; /* Medium gray */
|
||||||
|
border-radius: 8px;
|
||||||
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.error {
|
||||||
|
color: #dc3545; /* error */
|
||||||
|
font-size: 0.9rem;
|
||||||
|
margin-bottom: 12px;
|
||||||
|
padding: 8px 12px;
|
||||||
|
background-color: rgba(220, 53, 69, 0.1); /* error with opacity */
|
||||||
|
border-radius: 6px;
|
||||||
|
border-left: 3px solid #dc3545; /* error */
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 1024px) {
|
||||||
|
.app-sections {
|
||||||
|
grid-template-columns: 1fr 1fr;
|
||||||
|
grid-template-rows: auto 1fr;
|
||||||
}
|
}
|
||||||
|
|
||||||
.agent-message {
|
.task-section {
|
||||||
background-color: #333;
|
grid-column: 1 / -1;
|
||||||
color: #fff;
|
|
||||||
align-self: flex-start;
|
|
||||||
border: 1px solid #00ffcc;
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
.error-message {
|
|
||||||
background-color: #ff4444;
|
@media (max-width: 768px) {
|
||||||
color: #fff;
|
.main {
|
||||||
align-self: flex-start;
|
padding: 16px;
|
||||||
border: 1px solid #cc3333;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.agent-name {
|
.app-sections {
|
||||||
display: block;
|
grid-template-columns: 1fr;
|
||||||
font-size: 0.8rem;
|
height: auto;
|
||||||
color: #00ffcc;
|
gap: 16px;
|
||||||
margin-bottom: 5px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.input-form {
|
.task-section,
|
||||||
display: flex;
|
.chat-section,
|
||||||
gap: 10px;
|
.computer-section {
|
||||||
margin-top: 20px;
|
height: calc(33vh - 60px);
|
||||||
|
min-height: 300px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.input-form input {
|
.header h1 {
|
||||||
flex: 1;
|
font-size: 1.5rem;
|
||||||
padding: 12px;
|
|
||||||
font-size: 1rem;
|
|
||||||
background-color: #222;
|
|
||||||
border: 1px solid #00ffcc;
|
|
||||||
color: #fff;
|
|
||||||
border-radius: 4px;
|
|
||||||
outline: none;
|
|
||||||
transition: box-shadow 0.3s;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.input-form input:focus {
|
|
||||||
box-shadow: 0 0 8px #00ffcc;
|
|
||||||
}
|
|
||||||
|
|
||||||
.input-form button {
|
.input-form button {
|
||||||
padding: 12px 24px;
|
padding: 12px 16px;
|
||||||
font-size: 1rem;
|
|
||||||
background-color: #00ffcc;
|
|
||||||
color: #000;
|
|
||||||
border: none;
|
|
||||||
border-radius: 4px;
|
|
||||||
cursor: pointer;
|
|
||||||
text-transform: uppercase;
|
|
||||||
transition: background-color 0.3s;
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
.input-form button:hover {
|
|
||||||
background-color: #00ccaa;
|
@media (max-width: 480px) {
|
||||||
|
.main {
|
||||||
|
padding: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.input-form button:disabled {
|
.message {
|
||||||
background-color: #555;
|
max-width: 90%;
|
||||||
cursor: not-allowed;
|
padding: 10px 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.right-panel {
|
|
||||||
padding: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.view-selector {
|
|
||||||
display: flex;
|
|
||||||
gap: 10px;
|
|
||||||
margin-bottom: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.view-selector button {
|
.view-selector button {
|
||||||
padding: 10px 20px;
|
padding: 8px 12px;
|
||||||
font-size: 0.9rem;
|
|
||||||
background-color: #222;
|
|
||||||
color: #fff;
|
|
||||||
border: 1px solid #00ffcc;
|
|
||||||
border-radius: 4px;
|
|
||||||
cursor: pointer;
|
|
||||||
text-transform: uppercase;
|
|
||||||
transition: background-color 0.3s, color 0.3s;
|
|
||||||
}
|
|
||||||
|
|
||||||
.view-selector button.active,
|
|
||||||
.view-selector button:hover {
|
|
||||||
background-color: #00ffcc;
|
|
||||||
color: #000;
|
|
||||||
}
|
|
||||||
|
|
||||||
.view-selector button:disabled {
|
|
||||||
background-color: #555;
|
|
||||||
cursor: not-allowed;
|
|
||||||
}
|
|
||||||
|
|
||||||
.content {
|
|
||||||
flex: 1;
|
|
||||||
overflow-y: auto;
|
|
||||||
padding: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.blocks {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
gap: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.block {
|
|
||||||
background-color: #222;
|
|
||||||
padding: 10px;
|
|
||||||
border: 1px solid #00ffcc;
|
|
||||||
border-radius: 4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.block-tool,
|
|
||||||
.block-feedback,
|
|
||||||
.block-success {
|
|
||||||
font-size: 0.9rem;
|
|
||||||
margin-bottom: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.block pre {
|
|
||||||
background-color: #111;
|
|
||||||
padding: 5px;
|
|
||||||
border-radius: 4px;
|
|
||||||
font-size: 0.85rem;
|
font-size: 0.85rem;
|
||||||
white-space: pre-wrap;
|
|
||||||
word-break: break-all;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.screenshot {
|
.task-section,
|
||||||
margin-top: 10px;
|
.chat-section,
|
||||||
|
.computer-section {
|
||||||
|
padding: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.screenshot img {
|
.input-form {
|
||||||
max-width: 100%;
|
margin-top: 8px;
|
||||||
border: 1px solid #00ffcc;
|
|
||||||
border-radius: 4px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.error {
|
.header h1 {
|
||||||
color: #ff4444;
|
font-size: 1.3rem;
|
||||||
font-size: 0.9rem;
|
|
||||||
margin-bottom: 10px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
.task-section h2,
|
||||||
.chat-container {
|
.chat-section h2,
|
||||||
grid-template-columns: 1fr;
|
.computer-section h2 {
|
||||||
height: auto;
|
font-size: 1rem;
|
||||||
}
|
margin-bottom: 8px;
|
||||||
|
padding-bottom: 6px;
|
||||||
.left-panel,
|
}
|
||||||
.right-panel {
|
}
|
||||||
height: 50vh;
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,6 +1,7 @@
|
|||||||
import React, { useState, useEffect, useRef } from 'react';
|
import React, { useState, useEffect, useRef } from 'react';
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
import './App.css';
|
import './App.css';
|
||||||
|
import { colors } from './colors';
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
const [query, setQuery] = useState('');
|
const [query, setQuery] = useState('');
|
||||||
@ -77,7 +78,7 @@ function App() {
|
|||||||
try {
|
try {
|
||||||
const res = await axios.get('http://0.0.0.0:8000/latest_answer');
|
const res = await axios.get('http://0.0.0.0:8000/latest_answer');
|
||||||
const data = res.data;
|
const data = res.data;
|
||||||
|
|
||||||
if (!data.answer || data.answer.trim() === '') {
|
if (!data.answer || data.answer.trim() === '') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -162,10 +163,16 @@ function App() {
|
|||||||
<h1>AgenticSeek</h1>
|
<h1>AgenticSeek</h1>
|
||||||
</header>
|
</header>
|
||||||
<main className="main">
|
<main className="main">
|
||||||
<div className="chat-container">
|
<div className="app-sections">
|
||||||
<div className="left-panel">
|
<div className="task-section">
|
||||||
<h2>C H A T</h2>
|
<h2>Task</h2>
|
||||||
<br />
|
<div className="task-details">
|
||||||
|
<p className="placeholder">No active task. Start a conversation to create a task.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="chat-section">
|
||||||
|
<h2>Chat Interface</h2>
|
||||||
<div className="messages">
|
<div className="messages">
|
||||||
{messages.length === 0 ? (
|
{messages.length === 0 ? (
|
||||||
<p className="placeholder">No messages yet. Type below to start!</p>
|
<p className="placeholder">No messages yet. Type below to start!</p>
|
||||||
@ -205,9 +212,9 @@ function App() {
|
|||||||
</button>
|
</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<div className="right-panel">
|
|
||||||
<h2>I N T E R F A C E</h2>
|
<div className="computer-section">
|
||||||
<br />
|
<h2>Computer View</h2>
|
||||||
<div className="view-selector">
|
<div className="view-selector">
|
||||||
<button
|
<button
|
||||||
className={currentView === 'blocks' ? 'active' : ''}
|
className={currentView === 'blocks' ? 'active' : ''}
|
||||||
@ -253,7 +260,7 @@ function App() {
|
|||||||
e.target.src = 'placeholder.png';
|
e.target.src = 'placeholder.png';
|
||||||
console.error('Failed to load screenshot');
|
console.error('Failed to load screenshot');
|
||||||
}}
|
}}
|
||||||
key={responseData?.screenshotTimestamp || 'default'}
|
key={responseData?.screenshotTimestamp || 'default'}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
63
frontend/agentic-seek-front/src/colors.js
Normal file
63
frontend/agentic-seek-front/src/colors.js
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
export const colors = {
|
||||||
|
// Primary colors
|
||||||
|
primary: '#0066cc',
|
||||||
|
primaryLight: '#e6f2ff',
|
||||||
|
primaryDark: '#004c99',
|
||||||
|
|
||||||
|
// Secondary colors
|
||||||
|
secondary: '#6c757d',
|
||||||
|
secondaryLight: '#f8f9fa',
|
||||||
|
secondaryDark: '#343a40',
|
||||||
|
|
||||||
|
// Accent colors
|
||||||
|
accent: '#ff9500',
|
||||||
|
accentLight: '#fff4e6',
|
||||||
|
accentDark: '#cc7a00',
|
||||||
|
|
||||||
|
// Status colors
|
||||||
|
success: '#28a745',
|
||||||
|
successLight: '#e8f5e9',
|
||||||
|
warning: '#ffc107',
|
||||||
|
warningLight: '#fff9e6',
|
||||||
|
error: '#dc3545',
|
||||||
|
errorLight: '#ffebee',
|
||||||
|
info: '#17a2b8',
|
||||||
|
infoLight: '#e3f2fd',
|
||||||
|
|
||||||
|
// Neutral colors
|
||||||
|
white: '#ffffff',
|
||||||
|
gray100: '#f8f9fa',
|
||||||
|
gray200: '#e9ecef',
|
||||||
|
gray300: '#dee2e6',
|
||||||
|
gray400: '#ced4da',
|
||||||
|
gray500: '#adb5bd',
|
||||||
|
gray600: '#6c757d',
|
||||||
|
gray700: '#495057',
|
||||||
|
gray800: '#343a40',
|
||||||
|
gray900: '#212529',
|
||||||
|
black: '#000000',
|
||||||
|
|
||||||
|
// Text colors
|
||||||
|
textPrimary: '#212529',
|
||||||
|
textSecondary: '#6c757d',
|
||||||
|
textDisabled: '#adb5bd',
|
||||||
|
|
||||||
|
// Background colors
|
||||||
|
background: '#f8f8f8',
|
||||||
|
card: '#ffffff',
|
||||||
|
|
||||||
|
// Border colors
|
||||||
|
border: '#dee2e6',
|
||||||
|
divider: '#e9ecef',
|
||||||
|
|
||||||
|
// Transparent colors
|
||||||
|
transparent: 'transparent',
|
||||||
|
semiTransparent: 'rgba(0, 0, 0, 0.5)',
|
||||||
|
|
||||||
|
// Dark theme colors
|
||||||
|
darkBackground: '#0f172a',
|
||||||
|
darkCard: '#1e293b',
|
||||||
|
darkBorder: '#334155',
|
||||||
|
darkText: '#f8fafc',
|
||||||
|
darkTextSecondary: '#cbd5e1',
|
||||||
|
};
|
Loading…
x
Reference in New Issue
Block a user