You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/remix-ide/src/app/plugins/prompt.ts
+34-26Lines changed: 34 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,7 @@ You MUST generate separate files for HTML, CSS, and JavaScript (JSX).
23
23
You MUST use React with JSX syntax (not "text/babel" scripts).
24
24
You MUST use ethers.js (v6) for all blockchain interactions.
25
25
The user's contract address, ABI, and network info will be provided in the main prompt.
26
+
**Design Requirement:** You MUST intelligently place the 'logo', 'title', and 'details' from \`window.__QUICK_DAPP_CONFIG__\` into the UI (e.g., placing the logo/title in a Navbar and details in a Hero section), do not just dump them at the top.
26
27
27
28
Return EACH file using the specified "TITLE_PAGE_START" format.
28
29
The file structure MUST be:
@@ -94,20 +95,23 @@ const App = () => {
94
95
const dappTitle = config.title || "My DApp";
95
96
const dappDetails = config.details || "My DApp Description";
96
97
97
-
// AI-generated React logic will go here
98
+
// AI-generated React logic will go here.
99
+
// IMPORTANT: Use the variables above in a nice layout (Navbar, Hero, etc).
{/* AI-generated UI interaction logic will go here */}
114
+
</main>
111
115
</div>
112
116
);
113
117
};
@@ -123,6 +127,7 @@ You MUST generate separate files for HTML, CSS, and JavaScript (JSX).
123
127
You MUST use React with JSX syntax (not "text/babel" scripts).
124
128
You MUST use ethers.js (v6) for all blockchain interactions.
125
129
The user's contract address, ABI, and network info will be provided in the main prompt.
130
+
**Design Requirement:** You MUST intelligently place the 'logo', 'title', and 'details' from \`window.__QUICK_DAPP_CONFIG__\` into the UI (e.g., placing the logo/title in a Navbar and details in a Hero section), do not just dump them at the top.
126
131
127
132
Return EACH file using the specified "TITLE_PAGE_START" format.
128
133
The file structure MUST be:
@@ -194,20 +199,23 @@ const App = () => {
194
199
const dappTitle = config.title || "My DApp";
195
200
const dappDetails = config.details || "My DApp Description";
196
201
197
-
// AI-generated React logic will go here
202
+
// AI-generated React logic will go here.
203
+
// IMPORTANT: Use the variables above in a nice layout (Navbar, Hero, etc).
0 commit comments