+
+
+
Screenshot to Code
+
+ Drag & drop a screenshot to get started.
+
- {appState === "INITIAL" && (
- <>
-
- >
- )}
-
- {(appState === "CODING" || appState === "CODE_READY") && (
- <>
-
-
-

-
-
-
Console
- {executionConsole.map((line, index) => (
-
- {line}
-
- ))}
-
-
- {/* Show code preview only when coding */}
- {appState === "CODING" && (
+ {(appState === "CODING" || appState === "CODE_READY") && (
<>
-
-
- {executionConsole.slice(-1)[0]}
+ {/* Show code preview only when coding */}
+ {appState === "CODING" && (
+
+
+
+ {executionConsole.slice(-1)[0]}
+
+
+
+ )}
+
+
+

+
+
+
+ Console
+
+ {executionConsole.map((line, index) => (
+
+ {line}
+
+ ))}
+
-
+
+ {appState === "CODE_READY" && (
+
+ )}
>
)}
- {appState === "CODE_READY" && (
-
- )}
-
- >
- )}
+
+
+
+
+ {appState === "INITIAL" && (
+ <>
+
+ >
+ )}
+
+ {(appState === "CODING" || appState === "CODE_READY") && (
+
+ )}
+
);
}
diff --git a/frontend/src/components/ImageUpload.tsx b/frontend/src/components/ImageUpload.tsx
index e0dd0ec..16b5373 100644
--- a/frontend/src/components/ImageUpload.tsx
+++ b/frontend/src/components/ImageUpload.tsx
@@ -5,7 +5,7 @@ import { toast } from "react-hot-toast";
const baseStyle = {
flex: 1,
- width: "50%",
+ width: "80%",
margin: "0 auto",
minHeight: "400px",
display: "flex",
diff --git a/frontend/src/index.css b/frontend/src/index.css
index 4f6e47a..f77300a 100644
--- a/frontend/src/index.css
+++ b/frontend/src/index.css
@@ -28,6 +28,6 @@ body {
transform: translateX(0px);
}
50% {
- transform: translateX(300px);
+ transform: translateX(340px);
}
}