i am trying to create a canva simulator using websim. i need you to define the features…
- User
i am trying to create a canva simulator using websim. i need you to define the features we need for such a project knowing it is supposed to create designs if the user wants it so using ai (mostly design whatever the user wants using html, css and js with the viewing part being just like a place for viewing whatever the ai has created. the viewing box should allow editing through drag and drop within which the html css code is automatically changed, heres where we are currently, if youve understood everything youll give me the next prompt else ask me questions for clarification:
body { color: var(--text-color); }
.navbar { background-color: var(--primary-color); padding: 10px 20px; color: white; }
.navbar ul { list-style-type: none; margin: 0; padding: 0; display: flex; }
.navbar li { position: relative; margin-right: 20px; }
.navbar a { color: white; text-decoration: none; padding: 5px 10px; display: block; }
.navbar a:hover { background-color: var(--hover-color); }
.dropdown-content { display: none; position: absolute; background-color: white; min-width: 160px; box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); z-index: 1; }
.dropdown-content a { color: var(--text-color); padding: 12px 16px; text-decoration: none; display: block; }
.dropdown-content a:hover { background-color: var(--secondary-color); }
.navbar li:hover .dropdown-content { display: block; }
body, html { margin: 0; padding: 0; font-family: Arial, sans-serif; height: 100%; overflow: hidden; } .container { display: flex; flex-direction: column; height: 100%; } .input-area { padding: 20px; background-color: var(--secondary-color); border-bottom: 1px solid #ccc; } #designPrompt { width: calc(100% - 120px); padding: 10px; font-size: 16px; } .design-area { display: flex; flex-grow: 1; overflow: hidden; } .toolbar { width: 250px; background-color: var(--secondary-color); padding: 20px; overflow-y: auto; } .canvas-area { flex-grow: 1; background-color: #f8f8f8; position: relative; overflow: auto; } .canvas { width: 800px; height: 600px; background-color: white; margin: 20px auto; box-shadow: 0 0 10px rgba(0,0,0,0.1); position: relative; } .toolbar button, .toolbar input, .toolbar select { display: block; width: 100%; margin-bottom: 10px; padding: 5px; border: 1px solid #ccc; border-radius: 4px; transition: all 0.3s ease; } .toolbar button:hover, .toolbar select:hover { background-color: var(--hover-color); color: white; } .actions { position: fixed; bottom: 20px; right: 20px; } .actions button { background-color: var(--primary-color); color: white; border: none; margin-left: 10px; } .actions button:hover { background-color: var(--hover-color); } .draggable { position: absolute; cursor: move; user-select: none; } .text-box { min-width: 50px; min-height: 20px; padding: 5px; border: 1px dashed #999; } .shape { width: 50px; height: 50px; } .circle { border-radius: 50%; } .resize-handle { width: 10px; height: 10px; background-color: #4CAF50; position: absolute; right: -5px; bottom: -5px; cursor: se-resize; } .rotate-handle { width: 20px; height: 20px; background-color: #2196F3; border-radius: 50%; position: absolute; left: 50%; top: -30px; transform: translateX(-50%); cursor: grab; } .alignment-tools { display: flex; justify-content: space-between; margin-bottom: 10px; } .alignment-tools button { width: auto; padding: 5px 10px; } .z-index-tools { display: flex; justify-content: space-between; margin-bottom: 10px; } .z-index-tools button { width: auto; padding: 5px 10px; } .locked { pointer-events: none; } .locked::after { content: '🔒'; position: absolute; top: 5px; right: 5px; font-size: 20px; } .locked:hover { cursor: not-allowed; } #lockElement:disabled, #unlockElement:disabled { opacity: 0.5; cursor: not-allowed; }
- Assistant