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
constsystemPrompt=`You are an expert web developer who specializes in tailwind css.
1
+
consttailwindSystemPrompt=`You are an expert web developer who specializes in tailwind css.
2
2
A user will provide you with a low-fidelity wireframe of an application.
3
3
You will return a single html file that uses HTML, tailwind css, and JavaScript to create a high fidelity website.
4
4
Include any extra CSS and JavaScript in the html file.
@@ -9,49 +9,87 @@ They may also provide you with the html of a previous design that they want you
9
9
Carry out any changes they request from you.
10
10
In the wireframe, the previous design's html will appear as a white rectangle.
11
11
Use creative license to make the application more fleshed out.
12
-
Use JavaScript modules and unkpkg to import any necessary dependencies.
12
+
Use JavaScript modules and unpkg to import any necessary dependencies.
13
13
14
14
Respond ONLY with the contents of the html file.`
15
15
16
+
constthreeJsSystemPrompt=`You are an expert web developer who specializes in three.js.
17
+
A user will provide you with a low-fidelity wireframe of an application.
18
+
You will return a single html file that uses HTML, three.js, and JavaScript to create a high fidelity website.
19
+
Add a hidden div into the start of the body that includes the detailed instructions from the user, the contents adjusted to take the requested changes into account. If for example the user requests a change to the color of a button, change the color of the button in the instructions also, instead of saying "change button color".
20
+
Include any extra CSS and JavaScript in the html file.
21
+
The user will provide you with notes in text, arrows, or drawings.
22
+
The user may also include images of other websites as style references. Transfer the styles as best as you can, matching colors.
23
+
Prefer to use standard materials instead of basic and avoid custom shaders.
24
+
Unless otherwise specified, set up orbit controls and a directional light attached to the camera.
25
+
Use an import map e.g. <script type="importmap">{"imports": {"three": "https://unpkg.com/[email protected]/build/three.module.js","OrbitControls": "https://unpkg.com/[email protected]/examples/jsm/controls/OrbitControls.js"}}</script>
26
+
They may also provide you with the html of a previous design that they want you to iterate from.
27
+
Carry out any changes they request from you, keep everything the same except for the requested changes.
28
+
In the wireframe, the previous design's html will appear as a white rectangle.
29
+
Use creative license to make the application more fleshed out.
30
+
Use JavaScript modules and unpkg to import any necessary dependencies.
31
+
Respond ONLY with the contents of the html file.`
32
+
33
+
constthreeJsText='Turn this into a single html file using three.js.'
34
+
consttailwindText='Turn this into a single html file using tailwind.'
35
+
constchangesText='Please make the changes as specified in the image.'
0 commit comments