Install dependencies:
npm i
# or
yarn
Next, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Open http://localhost:3000 with your browser to see the result.
So far we've built support for Buttons, Inputs and DropdownMenu or Select.
Some useful prompts that we tested:
A button with paddings and white text, with gradient background from top blue to bottom green, with 0.5rem border radius.
An input text field with placeholder "Hi there!", paddings, and with fully rounded borders with transparent background and weak white border colour. When it's in focus border should shine strong white with a transition effect, and no outline ring please.
A dropdown menu to choose from following items: "Red", "Green", "Blue". Dropdown menu should have dark background and light text. It should have a separator line between the items. Each item's on hover background should lean towards to color that matches its name, e.g. red for "Red".
Using similar approach it's possible to use variety of different structures and styles.
- Page backgrounds:
https://www.youtube.com/watch?v=TmyDbPZELxc
As of Nov. 17:
Remember row split positionNeeds adjustment to remember absolute positions.Split using absolute values (currently it's by %)(For horizontal panels we should use %)Fix components glitch in inventory- this seems to happen on dev mode sometimes, not on prod buildSplit rows into columns(Also added add new rows)Arrange panels actions with add/remove rows- Remove components from canvas
Hide magic input field, to reduce distraction; possible solution: floating button- Add row and column positioning (left, right, center, space between, space around)
- Start working on header component, without sub-menus first
- UX for big components, like headers, hero sections, sidebars, etc.
- Refine components using prompt engineering
- Add context menu on components to set basic stuff like absolute width and height
- Improve drag handle UX
- Add forms as components and add form actions to send to server
- Add predefined form actions like sending emails with templates
- Allow component nesting, e.g. add a button to some bigger component
Discussed Nov. 14
- Deployment with github actions
- Auth pages
- Decide we keep AWS or move to Fly.io on Monday Nov. 18
- Implement Auth
- Connect DB
Update Nov. 17:
Add rows and split columns is now possible using canvas sidebar buttons:
Update Nov. 26:
Added actions under magic input. First option added to describe page background.