From 7efb9a40e42f993b16df74eaea939732bf9b4ef5 Mon Sep 17 00:00:00 2001 From: Pushkar Mishra Date: Sat, 6 Sep 2025 21:14:32 +0530 Subject: [PATCH 1/2] feat: enhance editor component with output panel and validation Signed-off-by: Pushkar Mishra --- .../components/editor/editor.component.css | 19 ++++- .../components/editor/editor.component.html | 48 +++++++++++++ .../app/components/editor/editor.component.ts | 71 ++++++++++++++++++- 3 files changed, 135 insertions(+), 3 deletions(-) diff --git a/apps/frontend/src/app/components/editor/editor.component.css b/apps/frontend/src/app/components/editor/editor.component.css index 9d3b97f..1ac628b 100644 --- a/apps/frontend/src/app/components/editor/editor.component.css +++ b/apps/frontend/src/app/components/editor/editor.component.css @@ -5,7 +5,7 @@ /* Monaco Editor Custom Styles */ :host ::ng-deep .monaco-editor { - padding-top: 10px; + padding-top: 0px; } :host ::ng-deep .monaco-editor .margin { @@ -88,4 +88,21 @@ button:focus:not(:focus-visible) { .editor-footer { backdrop-filter: blur(10px); background-color: rgba(31, 41, 55, 0.95); +} + +/* Output panel animations */ +.animate-slide-down { + animation: slide-in-from-top 0.3s ease-out; +} + +/* Custom animations for smooth transitions */ +@keyframes slide-in-from-top { + from { + opacity: 0; + transform: translateY(-10px); + } + to { + opacity: 1; + transform: translateY(0); + } } \ No newline at end of file diff --git a/apps/frontend/src/app/components/editor/editor.component.html b/apps/frontend/src/app/components/editor/editor.component.html index 520e904..b3f2db3 100644 --- a/apps/frontend/src/app/components/editor/editor.component.html +++ b/apps/frontend/src/app/components/editor/editor.component.html @@ -60,6 +60,54 @@

Soroban Smart Contract Editor

+ +
+
+
+
+ +
+ + + + + + + + + +
+ + +
+

+ {{ errorMessage || outputMessage }} +

+
+
+ + + +
+
+
+