messages
listlengths
3
13
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "What are the key attributes of a `gallery-item` element?", "role": "user" }, { "content": "The key attributes of a `gallery-item` element are `type`, `column`, `row`, `image`, `styles`, and `css_code`.", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "What does the `column` property define for `gallery-item` element?", "role": "user" }, { "content": "The `column` property defines how many grid columns should a gallery item occupy in the parent gallery layout.", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "What does the `row` property define for `gallery-item` element?", "role": "user" }, { "content": "The `row` property defines how many grid rows should a gallery item occupy in the parent gallery layout.", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "How does the `image` property relate to how the gallery renders?", "role": "user" }, { "content": "The `image` property specifies the source url of the picture that gallery item will render. Must to be a valid url.", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "Provide a JSON example of gallery item.", "role": "user" }, { "content": "```json\n {\n \"type\": \"gallery-item\",\n \"column\": { desktop: 2},\n \"row\": { desktop: 1},\n \"image\": \"https://via.placeholder.com/620x150/FFA500/FFFFFF?text=Image+Wide\",\n \"styles\": {\n \"normal\": {\n \"border\": {\n \"border-width\": { \"desktop\": \"2px\" },\n \"border-style\": { \"desktop\": \"solid\" },\n \"border-color\": { \"desktop\": \"#FFA500\" }\n }\n }\n },\n \"css_code\": \"\"\n}\n```", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "What is a masonry element in XOJL?", "role": "user" }, { "content": "The masonry element in XOJL is an advanced layout component that arranges items in a grid using columns of equal width, similar to how a mason fits stones in a wall. Unlike a standard grid where rows have fixed heights, masonry optimizes vertical space by placing items in the next available spot in their column, leading to varying row heights and minimal gaps. It's ideal for galleries or content feeds where items have different heights. This element acts as a container for `masonry-item` elements.", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "What are the key properties of a masonry element in XOJL?", "role": "user" }, { "content": "The key properties of a masonry element are `type`, `itemsPerRow`, `itemSpacing`, `styles`, `css_code`, and `children`.", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "What is `itemsPerRow` for masonry element in XOJL?", "role": "user" }, { "content": "The `itemsPerRow` property specifies the number of columns in the masonry layout. For example, `{\"desktop\": 3}` sets the layout to have three columns on desktop.", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "What is `itemSpacing` for masonry element in XOJL?", "role": "user" }, { "content": "The `itemSpacing` property defines the gap or spacing between items in the masonry layout. It applies both horizontally and vertically.", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "What is the relation between masonry element and masonry-item element?", "role": "user" }, { "content": "The masonry element acts as the parent, and the masonry-item elements are its direct children. A masonry element must contain only masonry-item elements. It's a one-to-many relationship.", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "How does the masonry-item get size from parent element?", "role": "user" }, { "content": "Masonry item calculate size from itself children elements or from styles. Masonry-item not inheritance anything from masonry element.", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "Provide a JSON example of masonry element with three column in dekstop", "role": "user" }, { "content": "```json\n{\n \"type\": \"masonry\",\n \"itemsPerRow\": { desktop: 3},\n \"itemSpacing\": { desktop: \"10px\"},\n \"styles\": {\n \"normal\": {\n \"spacing\": {\n \"padding\": { \"desktop\": \"10px\" }\n }\n }\n },\n \"css_code\": \"\",\n \"children\": []\n}\n```", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "What is a masonry-item element in XOJL?", "role": "user" }, { "content": "The masonry-item element in XOJL represents a single content block within a `masonry` layout. Each item maintains its intrinsic height based on its content (usually an image), and the parent `masonry` container arranges these items into columns, filling vertical space efficiently. It primarily acts as a wrapper for the content it displays.", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "What are the key properties of a masonry-item element?", "role": "user" }, { "content": "The key properties of a masonry-item element are `type`, `styles`, `css_code`, and `children`.", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "What typically resides within the `children` array of a `masonry-item`?", "role": "user" }, { "content": "Typically, the `children` array of a `masonry-item` contains a single `image` element, but it can also contain other types of content.", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "Provide a JSON example of masonry-item element", "role": "user" }, { "content": "```json\n{\n \"type\": \"masonry-item\",\n \"styles\": {\n \"normal\": {\n \"background\": {\n \"background-color\": { \"desktop\": \"#f9f9f9\" }\n },\n \"border\": {\n \"border-radius\": { \"desktop\": \"4px\" }\n }\n }\n },\n \"css_code\": \"\",\n \"children\": []\n}\n```", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "If I want each image in a gallery to have a 1px solid black border, how can I achieve this?", "role": "user" }, { "content": "You can set the border style on the `gallery-item` using the `styles` property:```json\n{\n \"type\": \"gallery-item\",\n \"image\": \"...\",\n \"styles\": {\n \"normal\": {\n \"border\": {\n \"border-width\": { \"desktop\": \"1px\" },\n \"border-style\": { \"desktop\": \"solid\" },\n \"border-color\": { \"desktop\": \"#000000\" }\n }\n }\n }\n}\n```", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "How to apply a hover effect to each image inside the gallery-item?", "role": "user" }, { "content": "You can apply the hover effect to images in a gallery item with styles of normal or with css_code of gallery item```json\n{\n \"type\": \"gallery-item\",\n \"column\": { desktop: 1},\n \"row\": { desktop: 1},\n \"image\": \"https://via.placeholder.com/300x150/FF0000/FFFFFF?text=Image1\",\n \"styles\": {\n \"normal\": {\n \"background\": { \"background-color\": { \"desktop\": \"#e0e0e0\" } }\n },\n \"hover\": {\n \"background\": { \"background-color\": { \"desktop\": \"#e0e0e0\" } }\n }\n },\n \"css_code\": \"$element:hover { opacity: 0.8; }\"\n}\n```", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "How can i make gallery-item is fill all of space of item?", "role": "user" }, { "content": "You must style dimension to gallery-item and config column and row to fit grid. For example, with one column item and one column grid, style width desktop to 100%. Important to set style for different devices.", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "In gallery element, what difference between set styles in gallery or gallery-item?", "role": "user" }, { "content": "Styles set on the gallery element will affect the overall container, while styles set on the gallery-item will affect each individual image item. For example, padding on the gallery would add space around the entire gallery, while padding on a gallery-item would add space around the image within that item.", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "In masonry element, what difference between set styles in masonry or masonry-item?", "role": "user" }, { "content": "Styles set on the masonry element will affect the overall container, while styles set on the masonry-item will affect each individual item. For example, background color to each background is set on masonry-item. Dimension of each image inside item depend childrent of item", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "Can you provide a comprehensive example of a complete JSON structure, including gallery and gallery-item, along with styled normal and hover states and css_code?", "role": "user" }, { "content": "```json\n{\n \"type\": \"gallery\",\n \"grid\": {\"desktop\": 3, \"tablet\": 2, \"mobile\": 1},\n \"rowHeight\": {\"desktop\": \"200px\", \"tablet\": \"150px\", \"mobile\": \"100px\"},\n \"verticalSpacing\": {\"desktop\": \"20px\", \"tablet\": \"15px\", \"mobile\": \"10px\"},\n \"horizontalSpacing\": {\"desktop\": \"20px\", \"tablet\": \"15px\", \"mobile\": \"10px\"},\n \"styles\": {\n \"normal\": {\n \"spacing\": {\n \"padding\": {\"desktop\": \"20px\", \"tablet\": \"15px\", \"mobile\": \"10px\"}\n },\n \"background\": {\n \"background-color\": {\"desktop\": \"#f5f5f5\"}\n }\n }\n },\n \"css_code\": \"\",\n \"children\": [\n {\n \"type\": \"gallery-item\",\n \"column\": {\"desktop\": 1, \"tablet\": 1, \"mobile\": 1},\n \"row\": {\"desktop\": 1, \"tablet\": 1, \"mobile\": 1},\n \"image\": \"https://via.placeholder.com/400x200\",\n \"styles\": {\n \"normal\": {\n \"border\": {\n \"border-width\": {\"desktop\": \"2px\"},\n \"border-style\": {\"desktop\": \"solid\"},\n \"border-color\": {\"desktop\": \"#3498db\"}\n }\n },\n \"hover\": {\n \"effect\": {\n \"opacity\": {\"desktop\": \"0.8\"}\n },\n \"border\": {\n \"border-color\": {\"desktop\": \"#2980b9\"}\n }\n }\n },\n \"css_code\": \"$element { transition: opacity 0.3s ease; } $element:hover { transform: scale(1.05); }\"\n },\n {\n \"type\": \"gallery-item\",\n \"column\": {\"desktop\": 2, \"tablet\": 2, \"mobile\": 1},\n \"row\": {\"desktop\": 1, \"tablet\": 1, \"mobile\": 1},\n \"image\": \"https://via.placeholder.com/800x200\",\n \"styles\": {\n \"normal\": {\n \"border\": {\n \"border-width\": {\"desktop\": \"2px\"},\n \"border-style\": {\"desktop\": \"dashed\"},\n \"border-color\": {\"desktop\": \"#e74c3c\"}\n }\n },\n \"hover\": {\n \"effect\": {\n \"opacity\": {\"desktop\": \"0.8\"}\n },\n \"border\": {\n \"border-color\": {\"desktop\": \"#c0392b\"}\n }\n }\n },\n \"css_code\": \"$element { transition: opacity 0.3s ease; } $element:hover { transform: scale(1.05); }\"\n }\n ]\n}\n```", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "Can a masonry element have a background image, and if so, how is it configured?", "role": "user" }, { "content": "Yes, a masonry element can have a background image. It's configured using the 'background' property inside the 'styles' attribute, similar to other elements. However, background images usually applied on section.```json\n \"styles\": {\n \"normal\": {\n \"background\": {\n \"background-image\": { \"desktop\": \"url('image_url')\" },\n \"background-overlay\": { \"desktop\": \"rgba(89, 220, 222, 0.2)\" }\n }\n }\n }\n```", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "Is it good to use gallery or masonry? How to choose", "role": "user" }, { "content": "Use gallery when you want a structured grid, and masonry when you want optimize vertical space by image.", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "Let's say I have a section. How do I add a gallery block inside this section?", "role": "user" }, { "content": "First, you need the basic section structure. Then, the `children` array of your section becomes the place where you add the gallery. The gallery element itself contains the `gallery-item` elements defining the images. Here's an example:```json\n{\n \"type\": \"section\",\n \"containerWidth\": \"global\",\n \"maxWidth\": null,\n \"styles\": {},\n \"css_code\": \"\",\n \"children\": [\n {\n \"type\": \"gallery\",\n \"grid\": {\"desktop\": 3},\n \"rowHeight\": {\"desktop\": \"150px\"},\n \"verticalSpacing\": {\"desktop\": \"20px\"},\n \"horizontalSpacing\": {\"desktop\": \"20px\"},\n \"styles\": {},\n \"css_code\": \"\",\n \"children\": [\n {\n \"type\": \"gallery-item\",\n \"column\": {\"desktop\": 1},\n \"row\": {\"desktop\": 1},\n \"image\": \"https://via.placeholder.com/300x150\",\n \"styles\": {},\n \"css_code\": \"\"\n },\n {\n \"type\": \"gallery-item\",\n \"column\": {\"desktop\": 1},\n \"row\": {\"desktop\": 1},\n \"image\": \"https://via.placeholder.com/300x150\",\n \"styles\": {},\n \"css_code\": \"\"\n },\n {\n \"type\": \"gallery-item\",\n \"column\": {\"desktop\": 1},\n \"row\": {\"desktop\": 1},\n \"image\": \"https://via.placeholder.com/300x150\",\n \"styles\": {},\n \"css_code\": \"\"\n }\n ]\n }\n ]\n}\n```", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "Now that I have a section with a gallery, how can I add a heading above the gallery inside the section?", "role": "user" }, { "content": "To add a heading above the gallery, you need to insert a `heading` element *before* the gallery element within the `children` array of the section. You might want to wrap both in a `wrapper` to control layout:```json\n{\n \"type\": \"section\",\n \"containerWidth\": \"global\",\n \"maxWidth\": null,\n \"styles\": {},\n \"css_code\": \"\",\n \"children\": [\n {\n \"type\": \"wrapper\",\n \"layoutStyle\": \"column\",\n \"wrapperWidth\": \"fullWidth\",\n \"maxWidth\": null,\n \"verticalSpacing\": null,\n \"horizontalSpacing\": null,\n \"horizontalPosition\": null,\n \"verticalAlign\": null,\n \"horizontalAlign\": null,\n \"layoutWrap\": null,\n \"position\": null,\n \"styles\": {},\n \"css_code\": \"\",\n \"children\": [\n {\n \"type\": \"heading\",\n \"text\": \"<p>Our Gallery</p>\",\n \"html_tag\": \"h2\",\n \"styles\": {},\n \"css_code\": \"\"\n },\n {\n \"type\": \"gallery\",\n \"grid\": {\"desktop\": 3},\n \"rowHeight\": {\"desktop\": \"150px\"},\n \"verticalSpacing\": {\"desktop\": \"20px\"},\n \"horizontalSpacing\": {\"desktop\": \"20px\"},\n \"styles\": {},\n \"css_code\": \"\",\n \"children\": [\n {\n \"type\": \"gallery-item\",\n \"column\": {\"desktop\": 1},\n \"row\": {\"desktop\": 1},\n \"image\": \"https://via.placeholder.com/300x150\",\n \"styles\": {},\n \"css_code\": \"\"\n },\n {\n \"type\": \"gallery-item\",\n \"column\": {\"desktop\": 1},\n \"row\": {\"desktop\": 1},\n \"image\": \"https://via.placeholder.com/300x150\",\n \"styles\": {},\n \"css_code\": \"\"\n },\n {\n \"type\": \"gallery-item\",\n \"column\": {\"desktop\": 1},\n \"row\": {\"desktop\": 1},\n \"image\": \"https://via.placeholder.com/300x150\",\n \"styles\": {},\n \"css_code\": \"\"\n }\n ]\n }\n ]\n }\n ]\n}\n```", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "How can I change the background color of the entire section and add some padding to the gallery?", "role": "user" }, { "content": "You modify the `styles` property of both the `section` and the `gallery` elements. For the section, you'll adjust the `background-color`. For the gallery, you'll adjust the `padding` within the `spacing` category:```json\n{\n \"type\": \"section\",\n \"containerWidth\": \"global\",\n \"maxWidth\": null,\n \"styles\": {\n \"normal\": {\n \"background\": {\n \"background-color\": {\"desktop\": \"#f0f0f0\"}\n }\n }\n },\n \"css_code\": \"\",\n \"children\": [\n {\n \"type\": \"wrapper\",\n \"layoutStyle\": \"column\",\n \"wrapperWidth\": \"fullWidth\",\n \"maxWidth\": null,\n \"verticalSpacing\": null,\n \"horizontalSpacing\": null,\n \"horizontalPosition\": null,\n \"verticalAlign\": null,\n \"horizontalAlign\": null,\n \"layoutWrap\": null,\n \"position\": null,\n \"styles\": {},\n \"css_code\": \"\",\n \"children\": [\n {\n \"type\": \"heading\",\n \"text\": \"<p>Our Gallery</p>\",\n \"html_tag\": \"h2\",\n \"styles\": {},\n \"css_code\": \"\"\n },\n {\n \"type\": \"gallery\",\n \"grid\": {\"desktop\": 3},\n \"rowHeight\": {\"desktop\": \"150px\"},\n \"verticalSpacing\": {\"desktop\": \"20px\"},\n \"horizontalSpacing\": {\"desktop\": \"20px\"},\n \"styles\": {\n \"normal\": {\n \"spacing\": {\n \"padding\": {\"desktop\": \"20px\"}\n }\n }\n },\n \"css_code\": \"\",\n \"children\": [\n {\n \"type\": \"gallery-item\",\n \"column\": {\"desktop\": 1},\n \"row\": {\"desktop\": 1},\n \"image\": \"https://via.placeholder.com/300x150\",\n \"styles\": {},\n \"css_code\": \"\"\n },\n {\n \"type\": \"gallery-item\",\n \"column\": {\"desktop\": 1},\n \"row\": {\"desktop\": 1},\n \"image\": \"https://via.placeholder.com/300x150\",\n \"styles\": {},\n \"css_code\": \"\"\n },\n {\n \"type\": \"gallery-item\",\n \"column\": {\"desktop\": 1},\n \"row\": {\"desktop\": 1},\n \"image\": \"https://via.placeholder.com/300x150\",\n \"styles\": {},\n \"css_code\": \"\"\n }\n ]\n }\n ]\n }\n ]\n}\n```", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "I want to increase the spacing between the heading and the gallery. How would I do that?", "role": "user" }, { "content": "You can add margin to the bottom of the heading element to push the gallery down. Modify the `spacing` property within the `styles` of the heading element:```json\n{\n \"type\": \"section\",\n \"containerWidth\": \"global\",\n \"maxWidth\": null,\n \"styles\": {\n \"normal\": {\n \"background\": {\n \"background-color\": {\"desktop\": \"#f0f0f0\"}\n }\n }\n },\n \"css_code\": \"\",\n \"children\": [\n {\n \"type\": \"wrapper\",\n \"layoutStyle\": \"column\",\n \"wrapperWidth\": \"fullWidth\",\n \"maxWidth\": null,\n \"verticalSpacing\": null,\n \"horizontalSpacing\": null,\n \"horizontalPosition\": null,\n \"verticalAlign\": null,\n \"horizontalAlign\": null,\n \"layoutWrap\": null,\n \"position\": null,\n \"styles\": {},\n \"css_code\": \"\",\n \"children\": [\n {\n \"type\": \"heading\",\n \"text\": \"<p>Our Gallery</p>\",\n \"html_tag\": \"h2\",\n \"styles\": {\n \"normal\": {\n \"spacing\": {\n \"margin\": {\"desktop\": \"0 0 30px 0\"}\n }\n }\n },\n \"css_code\": \"\"\n },\n {\n \"type\": \"gallery\",\n \"grid\": {\"desktop\": 3},\n \"rowHeight\": {\"desktop\": \"150px\"},\n \"verticalSpacing\": {\"desktop\": \"20px\"},\n \"horizontalSpacing\": {\"desktop\": \"20px\"},\n \"styles\": {\n \"normal\": {\n \"spacing\": {\n \"padding\": {\"desktop\": \"20px\"}\n }\n }\n },\n \"css_code\": \"\",\n \"children\": [\n {\n \"type\": \"gallery-item\",\n \"column\": {\"desktop\": 1},\n \"row\": {\"desktop\": 1},\n \"image\": \"https://via.placeholder.com/300x150\",\n \"styles\": {},\n \"css_code\": \"\"\n },\n {\n \"type\": \"gallery-item\",\n \"column\": {\"desktop\": 1},\n \"row\": {\"desktop\": 1},\n \"image\": \"https://via.placeholder.com/300x150\",\n \"styles\": {},\n \"css_code\": \"\"\n },\n {\n \"type\": \"gallery-item\",\n \"column\": {\"desktop\": 1},\n \"row\": {\"desktop\": 1},\n \"image\": \"https://via.placeholder.com/300x150\",\n \"styles\": {},\n \"css_code\": \"\"\n }\n ]\n }\n ]\n }\n ]\n}\n```", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "I want the gallery to only take up 80% of the section's width and be centered. How do I achieve that?", "role": "user" }, { "content": "You can control the width and horizontal alignment using the `wrapper` element properties. You'll need to set `wrapperWidth` to `custom`, define `maxWidth` to 80%, and set `horizontalAlign` to `center`:```json\n{\n \"type\": \"section\",\n \"containerWidth\": \"global\",\n \"maxWidth\": null,\n \"styles\": {\n \"normal\": {\n \"background\": {\n \"background-color\": {\"desktop\": \"#f0f0f0\"}\n }\n }\n },\n \"css_code\": \"\",\n \"children\": [\n {\n \"type\": \"wrapper\",\n \"layoutStyle\": \"column\",\n \"wrapperWidth\": \"custom\",\n \"maxWidth\": \"80%\",\n \"verticalSpacing\": null,\n \"horizontalSpacing\": null,\n \"horizontalPosition\": null,\n \"verticalAlign\": null,\n \"horizontalAlign\": \"center\",\n \"layoutWrap\": null,\n \"position\": null,\n \"styles\": {},\n \"css_code\": \"\",\n \"children\": [\n {\n \"type\": \"heading\",\n \"text\": \"<p>Our Gallery</p>\",\n \"html_tag\": \"h2\",\n \"styles\": {\n \"normal\": {\n \"spacing\": {\n \"margin\": {\"desktop\": \"0 0 30px 0\"}\n }\n }\n },\n \"css_code\": \"\"\n },\n {\n \"type\": \"gallery\",\n \"grid\": {\"desktop\": 3},\n \"rowHeight\": {\"desktop\": \"150px\"},\n \"verticalSpacing\": {\"desktop\": \"20px\"},\n \"horizontalSpacing\": {\"desktop\": \"20px\"},\n \"styles\": {\n \"normal\": {\n \"spacing\": {\n \"padding\": {\"desktop\": \"20px\"}\n }\n }\n },\n \"css_code\": \"\",\n \"children\": [\n {\n \"type\": \"gallery-item\",\n \"column\": {\"desktop\": 1},\n \"row\": {\"desktop\": 1},\n \"image\": \"https://via.placeholder.com/300x150\",\n \"styles\": {},\n \"css_code\": \"\"\n },\n {\n \"type\": \"gallery-item\",\n \"column\": {\"desktop\": 1},\n \"row\": {\"desktop\": 1},\n \"image\": \"https://via.placeholder.com/300x150\",\n \"styles\": {},\n \"css_code\": \"\"\n },\n {\n \"type\": \"gallery-item\",\n \"column\": {\"desktop\": 1},\n \"row\": {\"desktop\": 1},\n \"image\": \"https://via.placeholder.com/300x150\",\n \"styles\": {},\n \"css_code\": \"\"\n }\n ]\n }\n ]\n }\n ]\n}\n```", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "How do I add a masonry block inside a section in XOJL?", "role": "user" }, { "content": "To add a masonry block, include the `masonry` element in the `children` array of your `section`. Within the `masonry` element, include the `masonry-item` elements that hold your content (usually images). Here's an example:```json{\n \"type\": \"section\",\n \"containerWidth\": \"global\",\n \"maxWidth\": null,\n \"styles\": {},\n \"css_code\": \"\",\n \"children\": [\n {\n \"type\": \"masonry\",\n \"itemsPerRow\": { \"desktop\": 3 },\n \"itemSpacing\": { \"desktop\": \"10px\" },\n \"styles\": {},\n \"css_code\": \"\",\n \"children\": [\n {\n \"type\": \"masonry-item\",\n \"styles\": {},\n \"css_code\": \"\",\n \"children\": [\n {\n \"type\": \"image\",\n \"src\": \"https://via.placeholder.com/300x400\",\n \"alt\": \"Masonry Image\"\n }\n ]\n },\n {\n \"type\": \"masonry-item\",\n \"styles\": {},\n \"css_code\": \"\",\n \"children\": [\n {\n \"type\": \"image\",\n \"src\": \"https://via.placeholder.com/300x250\",\n \"alt\": \"Masonry Image\"\n }\n ]\n },\n {\n \"type\": \"masonry-item\",\n \"styles\": {},\n \"css_code\": \"\",\n \"children\": [\n {\n \"type\": \"image\",\n \"src\": \"https://via.placeholder.com/300x300\",\n \"alt\": \"Masonry Image\"\n }\n ]\n }\n ]\n }\n ]\n}\n```", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "I've added a masonry block to my section. Now I want to add a heading above the masonry layout. How can I do this?", "role": "user" }, { "content": "Wrap the masonry block and the heading in a `wrapper` element, then add the heading as the first child of the `wrapper`, and the masonry as the second child, set `layoutStyle` to column:```json\n{\n \"type\": \"section\",\n \"containerWidth\": \"global\",\n \"maxWidth\": null,\n \"styles\": {},\n \"css_code\": \"\",\n \"children\": [\n {\n \"type\": \"wrapper\",\n \"layoutStyle\": \"column\",\n \"wrapperWidth\": \"fullWidth\",\n \"maxWidth\": null,\n \"verticalSpacing\": null,\n \"horizontalSpacing\": null,\n \"horizontalPosition\": null,\n \"verticalAlign\": null,\n \"horizontalAlign\": null,\n \"layoutWrap\": null,\n \"position\": null,\n \"styles\": {},\n \"css_code\": \"\",\n \"children\": [\n {\n \"type\": \"heading\",\n \"text\": \"<p>Our Masonry Layout</p>\",\n \"html_tag\": \"h2\",\n \"styles\": {},\n \"css_code\": \"\"\n },\n {\n \"type\": \"masonry\",\n \"itemsPerRow\": { \"desktop\": 3 },\n \"itemSpacing\": { \"desktop\": \"10px\" },\n \"styles\": {},\n \"css_code\": \"\",\n \"children\": [\n {\n \"type\": \"masonry-item\",\n \"styles\": {},\n \"css_code\": \"\",\n \"children\": [\n {\n \"type\": \"image\",\n \"src\": \"https://via.placeholder.com/300x400\",\n \"alt\": \"Masonry Image\"\n }\n ]\n },\n {\n \"type\": \"masonry-item\",\n \"styles\": {},\n \"css_code\": \"\",\n \"children\": [\n {\n \"type\": \"image\",\n \"src\": \"https://via.placeholder.com/300x250\",\n \"alt\": \"Masonry Image\"\n }\n ]\n },\n {\n \"type\": \"masonry-item\",\n \"styles\": {},\n \"css_code\": \"\",\n \"children\": [\n {\n \"type\": \"image\",\n \"src\": \"https://via.placeholder.com/300x300\",\n \"alt\": \"Masonry Image\"\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n}\n```", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "How can I add a background color to the entire section containing the masonry layout, and also add some padding around the masonry?", "role": "user" }, { "content": "To change the background color of the section, modify the `background-color` property within the `styles` of the section. To add padding around the masonry, modify the `padding` property in the `styles` of the masonry element:```json\n{\n \"type\": \"section\",\n \"containerWidth\": \"global\",\n \"maxWidth\": null,\n \"styles\": {\n \"normal\": {\n \"background\": {\n \"background-color\": {\"desktop\": \"#f0f0f0\"}\n }\n }\n },\n \"css_code\": \"\",\n \"children\": [\n {\n \"type\": \"wrapper\",\n \"layoutStyle\": \"column\",\n \"wrapperWidth\": \"fullWidth\",\n \"maxWidth\": null,\n \"verticalSpacing\": null,\n \"horizontalSpacing\": null,\n \"horizontalPosition\": null,\n \"verticalAlign\": null,\n \"horizontalAlign\": null,\n \"layoutWrap\": null,\n \"position\": null,\n \"styles\": {},\n \"css_code\": \"\",\n \"children\": [\n {\n \"type\": \"heading\",\n \"text\": \"<p>Our Masonry Layout</p>\",\n \"html_tag\": \"h2\",\n \"styles\": {},\n \"css_code\": \"\"\n },\n {\n \"type\": \"masonry\",\n \"itemsPerRow\": { \"desktop\": 3 },\n \"itemSpacing\": { \"desktop\": \"10px\" },\n \"styles\": {\n \"normal\": {\n \"spacing\": {\n \"padding\": {\"desktop\": \"20px\"}\n }\n }\n },\n \"css_code\": \"\",\n \"children\": [\n {\n \"type\": \"masonry-item\",\n \"styles\": {},\n \"css_code\": \"\",\n \"children\": [\n {\n \"type\": \"image\",\n \"src\": \"https://via.placeholder.com/300x400\",\n \"alt\": \"Masonry Image\"\n }\n ]\n },\n {\n \"type\": \"masonry-item\",\n \"styles\": {},\n \"css_code\": \"\",\n \"children\": [\n {\n \"type\": \"image\",\n \"src\": \"https://via.placeholder.com/300x250\",\n \"alt\": \"Masonry Image\"\n }\n ]\n },\n {\n \"type\": \"masonry-item\",\n \"styles\": {},\n \"css_code\": \"\",\n \"children\": [\n {\n \"type\": \"image\",\n \"src\": \"https://via.placeholder.com/300x300\",\n \"alt\": \"Masonry Image\"\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n}\n```", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "I want to adjust the spacing between the heading and the masonry layout. How would I modify the JSON to achieve this?", "role": "user" }, { "content": "You can add margin to the bottom of the heading to push the masonry layout down. Modify the `styles` of the heading, specifically the `margin` property within the `spacing` category:```json\n{\n \"type\": \"section\",\n \"containerWidth\": \"global\",\n \"maxWidth\": null,\n \"styles\": {\n \"normal\": {\n \"background\": {\n \"background-color\": {\"desktop\": \"#f0f0f0\"}\n }\n }\n },\n \"css_code\": \"\",\n \"children\": [\n {\n \"type\": \"wrapper\",\n \"layoutStyle\": \"column\",\n \"wrapperWidth\": \"fullWidth\",\n \"maxWidth\": null,\n \"verticalSpacing\": null,\n \"horizontalSpacing\": null,\n \"horizontalPosition\": null,\n \"verticalAlign\": null,\n \"horizontalAlign\": null,\n \"layoutWrap\": null,\n \"position\": null,\n \"styles\": {},\n \"css_code\": \"\",\n \"children\": [\n {\n \"type\": \"heading\",\n \"text\": \"<p>Our Masonry Layout</p>\",\n \"html_tag\": \"h2\",\n \"styles\": {\n \"normal\": {\n \"spacing\": {\n \"margin\": {\"desktop\": \"0 0 30px 0\"}\n }\n }\n },\n \"css_code\": \"\"\n },\n {\n \"type\": \"masonry\",\n \"itemsPerRow\": { \"desktop\": 3 },\n \"itemSpacing\": { \"desktop\": \"10px\" },\n \"styles\": {\n \"normal\": {\n \"spacing\": {\n \"padding\": {\"desktop\": \"20px\"}\n }\n }\n },\n \"css_code\": \"\",\n \"children\": [\n {\n \"type\": \"masonry-item\",\n \"styles\": {},\n \"css_code\": \"\",\n \"children\": [\n {\n \"type\": \"image\",\n \"src\": \"https://via.placeholder.com/300x400\",\n \"alt\": \"Masonry Image\"\n }\n ]\n },\n {\n \"type\": \"masonry-item\",\n \"styles\": {},\n \"css_code\": \"\",\n \"children\": [\n {\n \"type\": \"image\",\n \"src\": \"https://via.placeholder.com/300x250\",\n \"alt\": \"Masonry Image\"\n }\n ]\n },\n {\n \"type\": \"masonry-item\",\n \"styles\": {},\n \"css_code\": \"\",\n \"children\": [\n {\n \"type\": \"image\",\n \"src\": \"https://via.placeholder.com/300x300\",\n \"alt\": \"Masonry Image\"\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n}\n```", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "I want the masonry layout to occupy only 70% of the section's width and be centered. How would I configure this?", "role": "user" }, { "content": "You can control the width and horizontal alignment of the masonry layout by adjusting the wrapper's properties. Set `wrapperWidth` to `custom`, define `maxWidth` to 70%, and set `horizontalAlign` to `center`:```json\n{\n \"type\": \"section\",\n \"containerWidth\": \"global\",\n \"maxWidth\": null,\n \"styles\": {\n \"normal\": {\n \"background\": {\n \"background-color\": {\"desktop\": \"#f0f0f0\"}\n }\n }\n },\n \"css_code\": \"\",\n \"children\": [\n {\n \"type\": \"wrapper\",\n \"layoutStyle\": \"column\",\n \"wrapperWidth\": \"custom\",\n \"maxWidth\": \"70%\",\n \"verticalSpacing\": null,\n \"horizontalSpacing\": null,\n \"horizontalPosition\": null,\n \"verticalAlign\": null,\n \"horizontalAlign\": \"center\",\n \"layoutWrap\": null,\n \"position\": null,\n \"styles\": {},\n \"css_code\": \"\",\n \"children\": [\n {\n \"type\": \"heading\",\n \"text\": \"<p>Our Masonry Layout</p>\",\n \"html_tag\": \"h2\",\n \"styles\": {\n \"normal\": {\n \"spacing\": {\n \"margin\": {\"desktop\": \"0 0 30px 0\"}\n }\n }\n },\n \"css_code\": \"\"\n },\n {\n \"type\": \"masonry\",\n \"itemsPerRow\": { \"desktop\": 3 },\n \"itemSpacing\": { \"desktop\": \"10px\" },\n \"styles\": {\n \"normal\": {\n \"spacing\": {\n \"padding\": {\"desktop\": \"20px\"}\n }\n }\n },\n \"css_code\": \"\",\n \"children\": [\n {\n \"type\": \"masonry-item\",\n \"styles\": {},\n \"css_code\": \"\",\n \"children\": [\n {\n \"type\": \"image\",\n \"src\": \"https://via.placeholder.com/300x400\",\n \"alt\": \"Masonry Image\"\n }\n ]\n },\n {\n \"type\": \"masonry-item\",\n \"styles\": {},\n \"css_code\": \"\",\n \"children\": [\n {\n \"type\": \"image\",\n \"src\": \"https://via.placeholder.com/300x250\",\n \"alt\": \"Masonry Image\"\n }\n ]\n },\n {\n \"type\": \"masonry-item\",\n \"styles\": {},\n \"css_code\": \"\",\n \"children\": [\n {\n \"type\": \"image\",\n \"src\": \"https://via.placeholder.com/300x300\",\n \"alt\": \"Masonry Image\"\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n}\n```", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "How can I apply different `itemsPerRow` values for desktop, tablet, and mobile devices within a masonry element?", "role": "user" }, { "content": "To have different numbers of items per row for different devices, you specify the `itemsPerRow` property as an object with device-specific values:```json\n{\n \"type\": \"masonry\",\n \"itemsPerRow\": {\n \"desktop\": 3,\n \"tablet\": 2,\n \"mobile\": 1\n },\n \"itemSpacing\": {\"desktop\": \"10px\"},\n \"styles\": {},\n \"css_code\": \"\",\n \"children\": []\n}\n```", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "What is the primary purpose of the freedom element in XOJL?", "role": "user" }, { "content": "The freedom element allows for absolute positioning of content within a section, enabling developers to precisely place elements using percentage-based coordinates and pixel offsets. It also supports parallax scrolling effects.", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "Is the freedom element similar to a wrapper with absolute positioning?", "role": "user" }, { "content": "Yes, the freedom element is essentially a wrapper with `position: absolute`, granting it the ability to be dragged and placed freely within a parent section.", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "Can a freedom element contain another section element?", "role": "user" }, { "content": "No, a freedom element cannot contain a section element. It can contain other basic elements like paragraphs, images, buttons, or wrappers.", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "What is the role of the 'x' and 'y' properties in a freedom element?", "role": "user" }, { "content": "The 'x' and 'y' properties define the horizontal and vertical positions of the freedom element's anchor point relative to its parent section, using percentage values. They are responsive and configurable for desktop, tablet, and mobile devices.", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "Explain how 'verticalAlign' and 'horizontalAlign' affect the positioning of a freedom element.", "role": "user" }, { "content": "The 'verticalAlign' and 'horizontalAlign' properties fine-tune the positioning of the freedom element by specifying how it aligns with its anchor point. 'verticalAlign' accepts values like 'start', 'middle', 'center', while 'horizontalAlign' accepts 'left', 'center', 'right'.", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "What does the 'zIndex' property control in a freedom element?", "role": "user" }, { "content": "The 'zIndex' property controls the stacking order of the freedom element relative to other absolutely positioned elements. A higher 'zIndex' value places the element in front.", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "What is the purpose of the 'parallaxEnabled' property in a freedom element?", "role": "user" }, { "content": "The 'parallaxEnabled' property enables parallax scrolling effects for the freedom element. When set to 'true', the element's properties animate based on the user's scroll position, according to the defined 'keyframes'.", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "Describe the structure and purpose of the 'keyframes' property within a freedom element.", "role": "user" }, { "content": "The 'keyframes' property defines the animation sequence for parallax effects. It's an object containing device-specific (desktop, tablet, mobile) keyframes. Each keyframe consists of scroll percentages (e.g., '0%', '50%', '100%') mapped to CSS property values to animate at that scroll point.", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "What CSS properties can be animated within the 'keyframes' of a freedom element?", "role": "user" }, { "content": "Animatable properties include 'y', 'x', 'scale', 'scaleX', 'scaleY', 'rotate', 'rotateX', 'rotateY', 'skew', 'skewX', 'skewY', 'opacity', 'width', 'height', 'brightness', 'contrast', and 'hueRotate'.", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "How does the 'css_code' property interact with the 'x', 'y', 'verticalAlign', 'horizontalAlign', and 'zIndex' properties of a freedom element?", "role": "user" }, { "content": "The 'css_code' property is crucial for defining the absolute positioning and potentially applying transforms based on the 'x', 'y', 'verticalAlign', 'horizontalAlign', and 'zIndex' properties. It typically includes `position: absolute;` and sets 'top', 'left', and 'z-index'.", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "Give an example of a basic JSON structure for a freedom element with a paragraph inside of it.", "role": "user" }, { "content": "```json\n{\n \"type\": \"freedom\",\n \"verticalAlign\": \"center\",\n \"horizontalAlign\": \"center\",\n \"zIndex\": 10,\n \"x\": { desktop: \"50%\"},\n \"y\": { desktop: \"50%\"},\n \"parallaxEnabled\": false,\n \"keyframes\": {},\n \"styles\": {},\n \"css_code\": \"\",\n \"children\": [\n {\n \"type\": \"paragraph\",\n \"text\": \"<p>Freedom Text</p>\",\n \"styles\": {},\n \"css_code\": \"\"\n }\n ]\n}\n```", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "Can a freedom element have different 'x' and 'y' values for different devices (desktop, tablet, mobile)?", "role": "user" }, { "content": "Yes, the 'x' and 'y' properties are defined within device-specific objects, allowing for responsive positioning.", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "How can I set the width of a freedom element to 50% of the parent section's width on desktop?", "role": "user" }, { "content": "You would set the 'width' property within the 'dimension' category inside the 'styles' property's 'normal' state: ```json\n\"styles\": {\n \"normal\": {\n \"dimension\": {\n \"width\": {\n \"desktop\": \"50%\"\n }\n }\n }\n}\n```", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "How can I add a parallax effect to a freedom element that changes its opacity from 0 to 1 as the user scrolls from 0% to 100% of the page?", "role": "user" }, { "content": "You would set 'parallaxEnabled' to true and define 'keyframes' with opacity values for 0% and 100% scroll positions:\n```json\n\"parallaxEnabled\": true,\n\"keyframes\": {\n \"desktop\": {\n \"0%\": {\n \"opacity\": \"0\"\n },\n \"100%\": {\n \"opacity\": \"1\"\n }\n }\n}\n```", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "What is the relationship between section and freedom element?", "role": "user" }, { "content": "The freedom element is nested inside a section. It can be a sibling of the grid or another freedom element, and the freedom element uses the section as a reference of the absolute positioned", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "How to add image element and define width for mobile?", "role": "user" }, { "content": "To add the image, you must add type image as children in freedom element. To style you can define url and styling in style property such as width or border. Here an example \n```json\n {\n \"type\": \"image\",\n \"url\": \"https://example.com/image.jpg\",\n \"styles\": {\n \"normal\": {\n \"dimension\": {\n \"width\": {\n \"desktop\": \"100px\",\n \"mobile\": \"50px\"\n }\n }\n }\n }\n }\n```", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "How to style a freedom element with a red background color on hover?", "role": "user" }, { "content": "You would define the 'background-color' property within the 'background' category inside the 'styles' property's 'hover' state:\n```json\n\"styles\": {\n \"hover\": {\n \"background\": {\n \"background-color\": {\n \"desktop\": \"red\"\n }\n }\n }\n}\n```", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "Can I use all styling properties available for regular elements (e.g., border, spacing) within the 'styles' of a freedom element?", "role": "user" }, { "content": "Yes, you can use all standard styling properties within the 'styles' property of a freedom element, including typography, background, spacing, border, dimension, and effect.", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "How can I achieve a parallax effect where the freedom element rotates as the user scrolls?", "role": "user" }, { "content": "You would use the 'rotate' property within the 'keyframes' to define the rotation at different scroll positions:\n```json\n\"parallaxEnabled\": true,\n\"keyframes\": {\n \"desktop\": {\n \"0%\": {\n \"rotate\": \"0deg\"\n },\n \"100%\": {\n \"rotate\": \"360deg\"\n }\n }\n}\n```", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "Is it possible to apply different zIndex value for difference device?", "role": "user" }, { "content": "No. zIndex property is not in style properties so it cannot be define by different device", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "How can I create a freedom element that is initially hidden (opacity: 0) and fades in as the user scrolls?", "role": "user" }, { "content": "```json\n\"parallaxEnabled\": true,\n\"keyframes\": {\n \"desktop\": {\n \"0%\": {\n \"opacity\": \"0\"\n },\n \"50%\": {\n \"opacity\": \"1\"\n }\n }\n},\n \"styles\": {\n \"normal\" : {\n \"effect\": {\n \"opacity\": {\"desktop\": \"0\"}\n }\n }\n }\n```", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "How can I change the position of a freedom element with animation using translateX?", "role": "user" }, { "content": "Define translateY using keyframes. Add cssCode to define position absolute and set the animation. Example below```json\n{\n \"type\": \"freedom\",\n \"verticalAlign\": \"center\",\n \"horizontalAlign\": \"center\",\n \"zIndex\": 10,\n \"x\": {\n \"desktop\": \"50%\"\n },\n \"y\": {\n \"desktop\": \"50%\"\n },\n \"parallaxEnabled\": true,\n \"keyframes\": {\n \"desktop\": {\n \"0%\": {\n \"translateX\": \"0px\"\n },\n \"100%\": {\n \"translateX\": \"100px\"\n }\n }\n },\n \"styles\": {\n \"normal\": {\n \"dimension\": {\n \"width\": {\n \"desktop\": \"100px\"\n }\n }\n }\n },\n \"css_code\": \"$element { position: absolute; transform: translateX(0px); transition: transform 0.5s ease-in-out; }\",\n \"children\": []\n}\n```", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "What is the structure order of styling freedom element in XOJL?", "role": "user" }, { "content": "The order of styles in XOJL is important. That following order: styles > pseudo (normal, hover) > field set (typography, background, spacing, border, dimension, effect) > field (font-size, padding ,...) > device (desktop, tablet, mobile) > value (value or value-unit)", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "Can a freedom element be used without enabling parallax effects?", "role": "user" }, { "content": "Yes, freedom element can be used without parallax effect. You just need to set 'parallaxEnabled' to false, and use css_code to create custom animation", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "If I set both x and y to '50%', and verticalAlign and horizontalAlign to 'center', where will the freedom element's content be centered within the section?", "role": "user" }, { "content": "It will centered in the section relative by x and y value. X value is reference by width and Y value is reference by Height.", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "If 'parallaxEnabled' is true, but the 'keyframes' object is empty, what will happen?", "role": "user" }, { "content": "If keyframe object is empty, there is no effect on the page, even if you have set the parralaxEnable to true.", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "Can i create a complex design for freedom element without style property? What should I do if without style property?", "role": "user" }, { "content": "No. Style property is for define a style for freedom element. But you can use css_code to create a design but it is not recomendation way. Using style property more readable and clear", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "How to create freedom element with a width 100px and box-shadow 2px for mobile", "role": "user" }, { "content": "```json\n{\n \"type\": \"freedom\",\n \"verticalAlign\": \"center\",\n \"horizontalAlign\": \"center\",\n \"zIndex\": 10,\n \"x\": {\n \"desktop\": \"50%\"\n },\n \"y\": {\n \"desktop\": \"50%\"\n },\n \"parallaxEnabled\": false,\n \"keyframes\": {},\n \"styles\": {\n \"normal\": {\n \"dimension\": {\n \"width\": {\n \"desktop\": \"100px\",\n \"mobile\": \"100px\"\n }\n },\n \"effect\": {\n \"box-shadow\": {\"desktop\": \"2px\", \"mobile\": \"2px\"}\n }\n }\n },\n \"css_code\": \"\",\n \"children\": []\n}\n```", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "How to create freedom element inside a section? Give example with Grid element", "role": "user" }, { "content": "To create freedom element inside a section. It must children from Section. Here the example \n```json\n{\n \"type\": \"section\",\n \"containerWidth\": \"box\",\n \"maxWidth\": \"1100px\",\n \"styles\": {},\n \"css_code\": \"\",\n \"children\": [\n {\n \"type\": \"grid\",\n \"column\": {\n \"desktop\": 12\n },\n \"verticalGap\": {\n \"desktop\": 20\n },\n \"horizontalGap\": {\n \"desktop\": 20\n },\n \"styles\": {},\n \"css_code\": \"\",\n \"children\": []\n },\n {\n \"type\": \"freedom\",\n \"verticalAlign\": \"center\",\n \"horizontalAlign\": \"center\",\n \"zIndex\": 10,\n \"x\": {\n \"desktop\": \"50%\"\n },\n \"y\": {\n \"desktop\": \"50%\"\n },\n \"parallaxEnabled\": false,\n \"keyframes\": {},\n \"styles\": {},\n \"css_code\": \"\",\n \"children\": []\n }\n ]\n}\n```", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "What is freedom element?", "role": "user" }, { "content": "The freedom element in XOJL is an advanced container component that allows for absolute positioning within its parent section.", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "Can a freedom element be placed inside a column?", "role": "user" }, { "content": "No. Freedom element cannot be placed inside a column, and can be only placed inside a section", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "If I set 'verticalAlign' to 'start' and 'y' to '50%', where will the top edge of the element be positioned relative to the vertical center of the section?", "role": "user" }, { "content": "The top edge of the element will be at the vertical center of the section.", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "Explain the difference between using 'styles' and 'css_code' to style a freedom element. When would you choose one over the other?", "role": "user" }, { "content": "Styles property used to define visual style using JSON format, easy and simple use. css_code used if you need a more complex style such animation or transition but it is not readable, css_code define directly using CSS Code", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "Explain which tags HTML that represent for freedom element?", "role": "user" }, { "content": "Freedom element represent for div html and position absolute", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "Can a freedom element be fullWidth?", "role": "user" }, { "content": "No. Since Freedom is position absolute, so need dimension for width and height", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "If i want to define style box-shadow with different value for :hover, how can I do it?", "role": "user" }, { "content": "```json\n \"styles\": {\n \"normal\": {\n \"dimension\": {\n \"width\": {\n \"desktop\": \"100px\",\n \"mobile\": \"100px\"\n }\n },\n \"effect\": {\n \"box-shadow\": {\"desktop\": \"2px\", \"mobile\": \"2px\"}\n }\n },\n \"hover\" : {\n \"effect\": {\n \"box-shadow\": {\"desktop\": \"5px\", \"mobile\": \"5px\"}\n }\n }\n }\n```", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "How can i define if keyframe does not work?", "role": "user" }, { "content": "You must ensure the property parallaxEnabled is true. Ensure the keyframes structure is in json format", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "Give me list all of properties in freedom element in JSON format", "role": "user" }, { "content": "```json\n {\n \"type\": \"freedom\",\n \"verticalAlign\": \"center\",\n \"horizontalAlign\": \"center\",\n \"zIndex\": 10,\n \"x\": { desktop: \"75%\"},\n \"y\": {desktop: \"15%\"},\n \"parallaxEnabled\": true,\n \"keyframes\": {},\n \"styles\": {},\n \"css_code\": \"\",\n \"children\": []\n}\n```", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "How to define custom width and height with percentage for desktop, tablet and mobile?", "role": "user" }, { "content": "```json\n{\n \"styles\": {\n \"normal\": {\n \"dimension\": {\n \"width\": {\n \"desktop\": \"50%\",\n \"tablet\": \"75%\",\n \"mobile\": \"100%\"\n },\n \"height\": {\n \"desktop\": \"200px\",\n \"tablet\": \"150px\",\n \"mobile\": \"100px\"\n }\n }\n }\n }\n}\n```", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "Can freedom element responsive without define in each device?", "role": "user" }, { "content": "No. All the dimension (width, height), x ,y are not response if you not define each device", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "True or false: zIndex properties can define with different value for desktop, tablet and mobile.", "role": "user" }, { "content": "False. zIndex property is not support with responsive. It define in main JSON property in freedom element", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "Is that a wrong if a freedom element has multiple paragraph elements?", "role": "user" }, { "content": "No. Freedom element support with multiple paragraph elements. But marquee element not support for multiple paragraph elements", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "Which scenario that freedom element is great use?", "role": "user" }, { "content": "Freedom element is great use to show content overlap. Such as image over image, text over image or animation", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "If there are two freedom elements and same x and y, what make them different look in the screen?", "role": "user" }, { "content": "z-index and horizontalAlign/verticalAlign will change the look of element", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "How to define styling text in freedom element?", "role": "user" }, { "content": "```json\n {\n \"type\": \"paragraph\",\n \"text\": \"<p>Sample Heading</p>\",\n \"styles\": {\n \"normal\": {\n \"typography\": {\n \"font-size\": { \"desktop\": \"28px\", \"tablet\": \"24px\", \"mobile\": \"20px\" },\n \"font-weight\": { \"desktop\": \"700\" },\n \"text-align\": { \"desktop\": \"center\" }\n },\n \"spacing\": {\n \"margin\": { \"desktop\": \"10px 0\" }\n }\n }\n }\n }\n```", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "Where is code position absolute must be defined, if I want to create freedom element?", "role": "user" }, { "content": "The code must be defined in css_code property", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "Can a freedom element exist without children?", "role": "user" }, { "content": "Yes, it can exist but it will not show anything since there is no content", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "Does Freedom element support with grid properties?", "role": "user" }, { "content": "No. It is not support. The grid use to define in Section", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "What happen if keyframe not define with property 0% in desktop?", "role": "user" }, { "content": "The position will start with position in style property, but it will not effect for anything if set parallaxEnable set to true", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "Create a hero section with a 2-column grid inside. The left column should contain an image, and the right column should contain a wrapper with text content. Provide the XOJL for the section.", "role": "user" }, { "content": "```json\n{\n \"type\": \"section\",\n \"containerWidth\": \"fullWidth\",\n \"maxWidth\": null,\n \"styles\": {},\n \"css_code\": \"\",\n \"children\": [\n {\n \"type\": \"grid\",\n \"column\": {\n \"desktop\": 2\n },\n \"verticalGap\": {\n \"desktop\": \"20px\"\n },\n \"horizontalGap\": {\n \"desktop\": \"20px\"\n },\n \"styles\": {},\n \"css_code\": \"\",\n \"children\": [\n {\n \"type\": \"column\",\n \"col\": {\n \"desktop\": 1\n },\n \"row\": {\n \"desktop\": 1\n },\n \"styles\": {},\n \"css_code\": \"\",\n \"children\": [\n {\n \"type\": \"image\",\n \"url\": \"https://example.com/hero-image.jpg\",\n \"styles\": {\n \"normal\": {\n \"dimension\": {\n \"width\": {\n \"desktop\": \"100%\"\n }\n }\n }\n },\n \"css_code\": \"\"\n }\n ]\n },\n {\n \"type\": \"column\",\n \"col\": {\n \"desktop\": 1\n },\n \"row\": {\n \"desktop\": 1\n },\n \"styles\": {},\n \"css_code\": \"\",\n \"children\": [\n {\n \"type\": \"wrapper\",\n \"layoutStyle\": \"column\",\n \"wrapperWidth\": \"custom\",\n \"maxWidth\": \"400px\",\n \"verticalSpacing\": \"15px\",\n \"horizontalSpacing\": \"15px\",\n \"horizontalAlign\": \"start\",\n \"verticalAlign\": \"start\",\n \"layoutWrap\": \"wrap\",\n \"position\": \"relative\",\n \"styles\": {\n \"normal\": {\n \"typography\": {\n \"font-size\": {\n \"desktop\": \"16px\"\n }\n }\n }\n },\n \"css_code\": \"\",\n \"children\": [\n {\n \"type\": \"heading\",\n \"text\": \"<p>Hero Title</p>\",\n \"html_tag\": \"h1\",\n \"styles\": {},\n \"css_code\": \"\"\n },\n {\n \"type\": \"paragraph\",\n \"text\": \"<p>Hero description text.</p>\",\n \"styles\": {},\n \"css_code\": \"\"\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n}\n```", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "Add an image element below the 2-column grid in the hero section. Provide the XOJL for only the image element.", "role": "user" }, { "content": "```json\n{\n \"type\": \"image\",\n \"url\": \"https://example.com/bottom-image.jpg\",\n \"styles\": {\n \"normal\": {\n \"dimension\": {\n \"width\": {\n \"desktop\": \"80%\"\n }\n },\n \"spacing\": {\n \"margin\": {\n \"desktop\": \"20px auto\"\n }\n }\n }\n },\n \"css_code\": \"\"\n}\n```", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "Create a freedom element with a circular image on the left side of the hero section. The image should rotate from left to right when the user scrolls. Provide the XOJL for the freedom element.", "role": "user" }, { "content": "```json\n{\n \"type\": \"freedom\",\n \"verticalAlign\": \"center\",\n \"horizontalAlign\": \"center\",\n \"zIndex\": 10,\n \"x\": {\n \"desktop\": \"10%\"\n },\n \"y\": {\n \"desktop\": \"50%\"\n },\n \"parallaxEnabled\": true,\n \"keyframes\": {\n \"desktop\": {\n \"0%\": {\n \"rotate\": \"0deg\"\n },\n \"100%\": {\n \"rotate\": \"360deg\"\n }\n }\n },\n \"styles\": {\n \"normal\": {\n \"dimension\": {\n \"width\": {\n \"desktop\": \"100px\"\n },\n \"height\": {\n \"desktop\": \"100px\"\n }\n },\n \"border\": {\n \"border-radius\": {\n \"desktop\": \"50%\"\n }\n },\n }\n },\n \"css_code\": \"\",\n \"children\": [\n {\n \"type\": \"image\",\n \"url\": \"https://example.com/circle-image.jpg\",\n \"styles\": {\n \"normal\": {\n \"dimension\": {\n \"width\": {\n \"desktop\": \"100%\"\n },\n \"height\": {\n \"desktop\": \"100%\"\n }\n },\n }\n },\n \"css_code\": \"\"\n }\n ]\n}\n```", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "On the right side of the hero section, create another freedom element with an image that translates up and down as the user scrolls. Provide the XOJL for this second freedom element.", "role": "user" }, { "content": "```json\n{\n \"type\": \"freedom\",\n \"verticalAlign\": \"center\",\n \"horizontalAlign\": \"center\",\n \"zIndex\": 10,\n \"x\": {\n \"desktop\": \"80%\"\n },\n \"y\": {\n \"desktop\": \"50%\"\n },\n \"parallaxEnabled\": true,\n \"keyframes\": {\n \"desktop\": {\n \"0%\": {\n \"translateY\": \"-20px\"\n },\n \"50%\": {\n \"translateY\": \"20px\"\n },\n \"100%\": {\n \"translateY\": \"-20px\"\n }\n }\n },\n \"styles\": {\n \"normal\": {\n \"dimension\": {\n \"width\": {\n \"desktop\": \"150px\"\n }\n }\n }\n },\n \"css_code\": \"\",\n \"children\": [\n {\n \"type\": \"image\",\n \"url\": \"https://example.com/translate-image.jpg\",\n \"styles\": {\n \"normal\": {\n \"dimension\": {\n \"width\": {\n \"desktop\": \"100%\"\n }\n }\n }\n },\n \"css_code\": \"\"\n }\n ]\n}\n```", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "Combine all the previously created elements (2-column grid, bottom image, rotating circular image freedom element, and translating image freedom element) into a complete XOJL for the hero section.", "role": "user" }, { "content": "```json\n{\n \"type\": \"section\",\n \"containerWidth\": \"fullWidth\",\n \"maxWidth\": null,\n \"styles\": {},\n \"css_code\": \"\",\n \"children\": [\n {\n \"type\": \"grid\",\n \"column\": {\n \"desktop\": 2\n },\n \"verticalGap\": {\n \"desktop\": \"20px\"\n },\n \"horizontalGap\": {\n \"desktop\": \"20px\"\n },\n \"styles\": {},\n \"css_code\": \"\",\n \"children\": [\n {\n \"type\": \"column\",\n \"col\": {\n \"desktop\": 1\n },\n \"row\": {\n \"desktop\": 1\n },\n \"styles\": {},\n \"css_code\": \"\",\n \"children\": [\n {\n \"type\": \"image\",\n \"url\": \"https://example.com/hero-image.jpg\",\n \"styles\": {\n \"normal\": {\n \"dimension\": {\n \"width\": {\n \"desktop\": \"100%\"\n }\n }\n }\n },\n \"css_code\": \"\"\n }\n ]\n },\n {\n \"type\": \"column\",\n \"col\": {\n \"desktop\": 1\n },\n \"row\": {\n \"desktop\": 1\n },\n \"styles\": {},\n \"css_code\": \"\",\n \"children\": [\n {\n \"type\": \"wrapper\",\n \"layoutStyle\": \"column\",\n \"wrapperWidth\": \"custom\",\n \"maxWidth\": \"400px\",\n \"verticalSpacing\": \"15px\",\n \"horizontalSpacing\": \"15px\",\n \"horizontalAlign\": \"start\",\n \"verticalAlign\": \"start\",\n \"layoutWrap\": \"wrap\",\n \"position\": \"relative\",\n \"styles\": {\n \"normal\": {\n \"typography\": {\n \"font-size\": {\n \"desktop\": \"16px\"\n }\n }\n }\n },\n \"css_code\": \"\",\n \"children\": [\n {\n \"type\": \"heading\",\n \"text\": \"<p>Hero Title</p>\",\n \"html_tag\": \"h1\",\n \"styles\": {},\n \"css_code\": \"\"\n },\n {\n \"type\": \"paragraph\",\n \"text\": \"<p>Hero description text.</p>\",\n \"styles\": {},\n \"css_code\": \"\"\n }\n ]\n }\n ]\n }\n ]\n },\n {\n \"type\": \"image\",\n \"url\": \"https://example.com/bottom-image.jpg\",\n \"styles\": {\n \"normal\": {\n \"dimension\": {\n \"width\": {\n \"desktop\": \"80%\"\n }\n },\n \"spacing\": {\n \"margin\": {\n \"desktop\": \"20px auto\"\n }\n }\n }\n },\n \"css_code\": \"\"\n },\n {\n \"type\": \"freedom\",\n \"verticalAlign\": \"center\",\n \"horizontalAlign\": \"center\",\n \"zIndex\": 10,\n \"x\": {\n \"desktop\": \"10%\"\n },\n \"y\": {\n \"desktop\": \"50%\"\n },\n \"parallaxEnabled\": true,\n \"keyframes\": {\n \"desktop\": {\n \"0%\": {\n \"rotate\": \"0deg\"\n },\n \"100%\": {\n \"rotate\": \"360deg\"\n }\n }\n },\n \"styles\": {\n \"normal\": {\n \"dimension\": {\n \"width\": {\n \"desktop\": \"100px\"\n },\n \"height\": {\n \"desktop\": \"100px\"\n }\n },\n \"border\": {\n \"border-radius\": {\n \"desktop\": \"50%\"\n }\n },\n }\n },\n \"css_code\": \"\",\n \"children\": [\n {\n \"type\": \"image\",\n \"url\": \"https://example.com/circle-image.jpg\",\n \"styles\": {\n \"normal\": {\n \"dimension\": {\n \"width\": {\n \"desktop\": \"100%\"\n },\n \"height\": {\n \"desktop\": \"100%\"\n }\n }\n }\n },\n \"css_code\": \"\"\n }\n ]\n },\n {\n \"type\": \"freedom\",\n \"verticalAlign\": \"center\",\n \"horizontalAlign\": \"center\",\n \"zIndex\": 10,\n \"x\": {\n \"desktop\": \"80%\"\n },\n \"y\": {\n \"desktop\": \"50%\"\n },\n \"parallaxEnabled\": true,\n \"keyframes\": {\n \"desktop\": {\n \"0%\": {\n \"translateY\": \"-20px\"\n },\n \"50%\": {\n \"translateY\": \"20px\"\n },\n \"100%\": {\n \"translateY\": \"-20px\"\n }\n }\n },\n \"styles\": {\n \"normal\": {\n \"dimension\": {\n \"width\": {\n \"desktop\": \"150px\"\n }\n }\n }\n },\n \"css_code\": \"\",\n \"children\": [\n {\n \"type\": \"image\",\n \"url\": \"https://example.com/translate-image.jpg\",\n \"styles\": {\n \"normal\": {\n \"dimension\": {\n \"width\": {\n \"desktop\": \"100%\"\n }\n }\n }\n },\n \"css_code\": \"\"\n }\n ]\n }\n ]\n}\n```", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "What is the purpose of the carousel element in XOJL?", "role": "user" }, { "content": "The carousel element in XOJL is used to create a slideshow or rotating gallery of content, allowing users to cycle through a series of slides or items.", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "What are the key properties of a carousel element?", "role": "user" }, { "content": "The key properties of a carousel element include `type`, `slider_displayed`, `itemSpacing`, `styles`, `css_code`, and `children`. `slider_displayed` determines how many slides are visible at once, and `children` contain carousel-content, carousel-navigation, and carousel-pagination elements.", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "What is the 'slider_displayed' property in a carousel element?", "role": "user" }, { "content": "The `slider_displayed` property specifies the number of slides that should be visible within the carousel's viewport at any given time.", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "What is the 'itemSpacing' property in a carousel element?", "role": "user" }, { "content": "The `itemSpacing` property defines the gap or spacing between adjacent slides when multiple slides are displayed. It is expressed as a string with units (e.g., '10px').", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "Can you provide a full JSON structure example of a carousel element with three slides displayed and a 15px item spacing?", "role": "user" }, { "content": "```json\n{\n \"type\": \"carousel\",\n \"slider_displayed\": 3,\n \"itemSpacing\": \"15px\",\n \"styles\": {},\n \"css_code\": \"$element { position: relative; overflow: hidden; }\",\n \"children\": [\n {\n \"type\": \"carousel-content\",\n \"styles\": {},\n \"css_code\": \"$element { display: flex; }\",\n \"children\": [ \n {\n \"type\": \"carousel-slide\",\n \"styles\": {},\n \"css_code\": \"$element { flex: 0 0 auto; min-height: 200px; display: flex; align-items: center; justify-content: center; }\",\n \"children\": [\n {\n \"type\": \"paragraph\",\n \"text\": \"<p>Slide 1</p>\",\n \"styles\": {},\n \"css_code\": \"\"\n }\n ]\n },\n {\n \"type\": \"carousel-slide\",\n \"styles\": {},\n \"css_code\": \"$element { flex: 0 0 auto; min-height: 200px; display: flex; align-items: center; justify-content: center; }\",\n \"children\": [\n {\n \"type\": \"paragraph\",\n \"text\": \"<p>Slide 2</p>\",\n \"styles\": {},\n \"css_code\": \"\"\n }\n ]\n },\n {\n \"type\": \"carousel-slide\",\n \"styles\": {},\n \"css_code\": \"$element { flex: 0 0 auto; min-height: 200px; display: flex; align-items: center; justify-content: center; }\",\n \"children\": [\n {\n \"type\": \"paragraph\",\n \"text\": \"<p>Slide 3</p>\",\n \"styles\": {},\n \"css_code\": \"\"\n }\n ]\n }\n ]\n },\n {\n \"type\": \"carousel-navigation\",\n \"position\": \"absolute\",\n \"direction\": \"horizontal\",\n \"verticalSpacing\": \"0px\",\n \"horizontalSpacing\": \"0px\", \n \"horizontalAlign\": \"space-between\",\n \"verticalAlign\": \"center\",\n \"styles\": { \n \"normal\": {\n \"dimension\": { \"width\": {\"desktop\": \"100%\"}}\n }\n },\n \"css_code\": \"\",\n \"children\": [\n {\n \"type\": \"carousel-prev\",\n \"styles\": { \"normal\": {} },\n \"css_code\": \"\",\n \"children\": [\n {\n \"type\": \"icon\",\n \"icon\": \"ArrowLeft\",\n \"styles\": { \"normal\": {} },\n \"css_code\": \"\"\n }\n ]\n },\n {\n \"type\": \"carousel-next\",\n \"styles\": { \"normal\": {} },\n \"css_code\": \"\",\n \"children\": [\n {\n \"type\": \"icon\",\n \"icon\": \"ArrowRight\",\n \"styles\": { \"normal\": {} },\n \"css_code\": \"\"\n }\n ]\n }\n ]\n },\n {\n \"type\": \"carousel-pagination\",\n \"styles\": { \"normal\": {} },\n \"css_code\": \"\"\n }\n ]\n}\n```", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "What child elements are typically found inside a carousel element?", "role": "user" }, { "content": "A carousel element typically contains `carousel-content`, `carousel-navigation`, and `carousel-pagination` child elements.", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "What is the role of the carousel-content element?", "role": "user" }, { "content": "The `carousel-content` element acts as the main container for the `carousel-slide` elements, managing their layout and positioning.", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "What is the purpose of the carousel-navigation element?", "role": "user" }, { "content": "The `carousel-navigation` element provides the 'previous' and 'next' buttons that allow users to navigate through the slides.", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "What is the function of the carousel-pagination element?", "role": "user" }, { "content": "The `carousel-pagination` element displays visual indicators (dots or bullets) representing the slides, allowing users to quickly jump to a specific slide.", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "What are the key properties of a carousel-navigation element?", "role": "user" }, { "content": "Key properties of a `carousel-navigation` element include `type`, `position`, `direction`, `verticalSpacing`, `horizontalSpacing`, `horizontalAlign`, `verticalAlign`, `styles`, `css_code`, and `children`.", "role": "assistant" } ]
[ { "content": "You are Xofy, a helpful assistant that can answer questions about the XO Builder App.", "role": "system" }, { "content": "What does the 'position' property in carousel-navigation control?", "role": "user" }, { "content": "The `position` property defines the CSS positioning of the navigation container, usually set to `absolute` to overlay the carousel.", "role": "assistant" } ]