SHADE is young: 0.1.0-next.2 is a pre-release, and 0.1.0 isn't out yet.

SHADE
Website

The visual editor

The visual editor builds a page. Open in the visual editor, in a panel beside a page's form, opens it in the whole window, without the admin's menu. Its header is one row: Pages (back to the list) and the page's title (marked Unsaved changes while there are some); then Add element, undo and redo, and the screen widths (the smallest screen, or full width on a site that starts from the desktop, and each of the site's breakpoints, such as tablet and desktop), as device icons named by their width; then the language of the text (its code), the colour mode when the site has a dark mode (as the visitor has it, light or dark), History and Accessibility as icons, the ⋮ with Edit in the form, Save and Publish. The page shows as the site shows it. Click a part of the page to select it: it is outlined (with its name while the pointer is on it), and the bar below shows where it stands (the section it is in, and so on); click a step in that bar to select it, and press Esc to clear the selection. Links and forms don't work on the canvas: a click only selects. The editor needs the module's Preview address, like the preview.

On the left, Elements on this page lists the page's elements and texts in order, what an element holds indented under it (the arrow beside it hides or shows that). A Show if has two rows under it, When it holds and Otherwise, and a Repeat for each two, For each item and When there are none: select one of these rows, and what you add goes there; drop an element on it to move it there. On the right, Settings shows the selected element's settings, Style how it looks and Data what it reads (below). Drag a panel's inner edge to make it wider or narrower, or select the edge and use the arrow keys (Home and End for its narrowest and widest); a double-click gives it its usual width back, and this browser remembers each panel's width. Editors who may change pages build the page:

  • Select with a click (on the list or on the page); Ctrl-click (Cmd on a Mac) adds or removes one, Shift-click selects a range. The arrow keys move the selection up and down the list, and the focus with it; on a row, the right arrow unfolds it and then goes to its first element, the left arrow folds it and then goes to the element it is in, and Home and End go to the first and the last row. On a button, a menu or a field, the arrows and Delete are theirs, not the list's.
  • Add element opens the element picker: layout (section, box, header, footer, article, side note), text (heading, paragraph, text, quote, list, list item, bold text, code, code sample, description list, table), media (image, image with caption, video, icon), links and buttons, interactive (Show and hide, Accordion, Tabs, Dialog, Light and dark for a site with dark colours, Pause animations: built into SHADE, so they work by keyboard and with screen readers), and data (Show if, Repeat for each). An icon's name is one of Lucide's (mail); give it a name for screen readers when it says something on its own. An icon may stand in an interactive part too, with a fixed name. Light and dark is a button that shows the mode the page is in, a sun and Light or a moon and Dark, and switches to the other; screen readers hear "Colour mode: Light". Its words and the name's start are its settings, in each language. The new element goes inside the selected one, at its end, when that may hold it (a heading in a section), else right after it; with nothing selected, at the end of the page. Only what may stand there is offered. Its text starts as a word to type over, in the site's default language.
  • Change the selected element in Settings: switch it to another of its kind (a heading's level, a section to an article, a list to a numbered one), and set what its kind takes (a link's page or address and where it opens, an image from the media library and its description for screen readers, an anchor, a tooltip, a name for screen readers, whether it is the current one, whether a button is pressed (a toggle, often from a value of an interactive part), a video's file and controls, and for a section, a block of text or a span whether screen readers read out what changes in it). For a text, type its words.
    • The usual settings come first. The rest are in Accessibility (name for screen readers, decorative, current, pressed, read out) and Advanced (anchor, tooltip, relation, language of the link, download, loading…), closed unless one of them is set; Locks too, closed unless something is locked.
    • Decorative (hidden from screen readers) makes screen readers skip the element and everything in it (aria-hidden): for outlined words that echo a heading, or an ornament. Show its words somewhere visible on the page too. Keep links, buttons and fields out of it: the accessibility check stops a publish when something hidden this way can take keyboard focus.
    • A choice of a few is buttons (Opens in: same tab or new tab; a button's Type); a longer one a menu.
    • The variable icon beside a setting's name takes it from data (in the Data tab); a text's settings show the language they are written in.
    • A video's Video (an audio's Audio, a source's File) is chosen from the media library: Choose file opens it on videos (or audio), where you can also upload one. Or an address takes another site's video over https (or a file on the site) instead. Image before it plays is an image from the media library. Captions are a Captions element inside the video (kind captions) whose Captions (WebVTT) file comes from the media library too: a video without one gets an accessibility warning. A file of the wrong kind (a PDF as a video) is refused when the page is saved.
    • A link's Link opens the link picker: On the site chooses a page (or an item with a page of its own) by name, with an optional anchor; URL takes an address. Open in a new tab sets where it opens. A link to a page follows it when its address changes, and in each language goes to the page's address in that language. A link to a page that is not published, or not in that language, is shown without its address.
    • Mark as current tells screen readers which item of a set is the one shown (page for the page that is open). It can come from data: SHADE's starting header takes it from each menu item's current.
    • Read out when it changes: status reads a change out when the reader is done (a form's confirmation), alert at once (an error). These are the only two a page can set, so an element can't pose as a button or another control it isn't.

    A change is made when you leave the field or make a choice. Text is written in the language chosen above the page (Language of the text); the other languages keep theirs.
  • Move by dragging in the list: onto the top or bottom of a row to put it before or after it, onto its middle to put it inside (at the end). With the keyboard: Alt with the up and down arrows moves it among its neighbours, Alt with the left arrow takes it out of the element it is in, Alt with the right arrow puts it inside the element before it. A place it may not go (a list item outside a list, a link inside a link, an element inside itself) is refused, and the editor says why.
  • Copy, cut and paste with Ctrl+C, Ctrl+X and Ctrl+V: pasted elements go where an added one would, also into another page (open it in another tab). Duplicate with Ctrl+D, remove with Delete. A copy keeps the elements' own styles and animations, so a duplicated section looks and moves like the original. An animation goes along when everything it starts from and moves is in the copy (one an interactive part plays, when the part is copied too); one that also moves something outside the copy stays with the original. Animations come along only for whoever may change them.
  • A code sample shows code in a box that scrolls sideways, coloured for its language (HTML, CSS, JavaScript, TypeScript, JSON, Bash, or plain text): its settings are the code and the language. The colours come from the theme.
  • A link takes the site's Link class: the theme's colour, underlined, the line thicker on hover. The first link added creates the class in the site's styles; change it there, and every link with it follows. There is no style for every link at once (decision 0015 keeps styles on classes).
  • The element menu has all of these, each with its keys: right-click a row of the structure or an element on the canvas, or use the ⋮ that a row shows under the pointer (each selects that element first, unless it is already part of the selection). On the canvas, Shift + right-click opens the browser's own menu instead, and so does a right-click where there is no element; the menu key and Shift+F10 open the element menu too. It also has Add element and, for admins, Make a component.
  • The structure shows each element's kind as an icon, then its name, and after it its classes, a text's words, or a folded element's text. The arrow at a row's end folds what it holds; the buttons at the top show or fold everything, and ? lists the keys.
  • Undo and redo with the buttons or Ctrl+Z and Ctrl+Shift+Z (or Ctrl+Y), as far back as this visit, styling included.
  • Save (or Ctrl+S, in a field too) makes a new draft of the page and saves the site's styles; publish the page from its form as usual. Leaving with unsaved changes asks first. If someone else saved the page meanwhile, saving is refused (the styles too) and the editor says so, so their changes aren't lost: reload the page to go on from theirs.

Each change shows on the page at once.

Styling an element

Style, beside Settings, sets how the selected element looks:

  • What you style. At first, This element: its own styles, for this element only. Its classes are listed beside it; pick one to style every element that has it, on every page. Add a class offers the site's classes, or makes a new one when you type a new name; the element gets it, and you style it. A class can be renamed there, and taken off the element (the class itself stays). A class can also be a container, so styles can depend on its width (container queries).
  • Where it applies. A change applies at the screen width chosen above the page: at the smallest screen (or full width, on a site that starts from the desktop) to every screen, at a breakpoint from there on. The line at the top says what a change goes to (This element · All screens · Normal), tinted when it is a screen or state of its own. The state buttons style it Normal, on Hover, on Focus or Pressed; the ⋮ beside them has focused by keyboard, checked and disabled, and three that SHADE's widgets set (experimental): Selected for the tab shown, Open for a menu's or the navigation's button while it is open, and The page shown for the link to the page a visitor is on. Part styles its before and after parts, a field's placeholder or a list's markers. A state and a screen width combine: a checked style picked at the phone's width applies on phones, when checked.
  • Condition, instead of the screen width: one of the site's container queries; High contrast (forced colours), for visitors whose system sets the colours (Windows' contrast themes); Reduced motion, for visitors who ask for less motion; or When the browser supports a feature: a property and a value to test (such as Display: grid), optionally when the browser doesn't support it. A change then applies only under that condition, and the canvas shows the rules for a setting as if the visitor had it. It can't show Windows' system colours, which the browser puts in place of the site's: check high contrast in Windows itself.
  • The properties, in sections (layout, flex and alignment, grid, text columns, size, spacing, position, scrolling, text, background, border, effects, forms; Find a property finds one by name). Each shows its value; the ⋮ menu beside it picks another kind of value (Fixed, Fluid, which grows with the screen, Calc, a size plus or minus another, a Variable, a Keyword…) and offers the property's keywords, such as auto, at once. Transition of also offers the site's colour variables: an element given them fades those colours itself when the page switches between light and dark, gradients and glows drawn from them included.
    • A size is a number with its unit beside it (the usual units first). Type a number, even in an empty size, or step it with the arrow keys: Shift steps by 10, Alt by 0.1. A number past what the property takes (an opacity above 1) is kept at its limit, and a value the editor refuses goes back to the one stored.
    • A property with a few choices shows them as buttons (overflow, position, text transform, border styles…); Align and Direction use icons, and Display shows block, flex, grid, inline and none, with the others in its menu.
    • A value that comes from elsewhere (a class, another screen, a state) is shown in grey italics, with a small tag naming where it comes from; point at the tag for the whole story. Changing it sets a value here.
    • A property nothing sets says Not set, or shows an empty size. The eraser clears the value set here.
    • Sides are one row: Margin, Padding, the Offsets of a positioned element, the border's width, style and colour, the Corner radius and the Gap (rows and columns). Linked (the chain), one value goes to every side; unlinked, each side has its own field.
    • Only what does something is listed: flex options when the element is flex, grid options when it is grid, the alignment and gap on either, offsets when it is positioned, a decoration's colour and style when it has one, a background image's size and place when it has one. A property with a value always shows, and Find a property finds any. Only properties with a value hides the rest.
  • Backgrounds take an image, a linear gradient (an angle) or a radial gradient (a circle or an ellipse, how far it reaches, and its centre), each with its colours, every colour at a percentage or at a length (1px), and Repeat the colours for stripes and rings. A dot grid is a radial gradient: a grey circle of 1px, then see-through at 1px, with the background's size set to the grid's spacing. A radial gradient's centre can Follow the pointer (experimental): it then moves with a mouse over the element the Motion tab follows the pointer over (see below), and rests at Rests across and Rests down otherwise.
  • Calc (a size plus or minus a size) mixes units: the full width less a margin (100% minus 96px), or a size plus a part of the screen. Sizes, spacing, positions, a background's size and position, and moving an element take it.
  • Grid areas: name the cells of a grid in Areas (one field per cell, a name of lowercase letters, digits and dashes, or empty; add and remove rows and columns), and put an element in one with Area (header). Each area's cells form a rectangle; the editor says so when they don't.
  • Text columns set text in newspaper columns: their number or width, and a line between them (its width, style and colour). The space between them is Column gap, under flex and alignment.
  • Scrolling makes a scrolling box snap to its children: Snap on the box (across, down or both, always or when close), Snap to on each child (its start, centre or end), and Snap margin to keep room for a sticky header. Anchor offset on an element a link leads to (#…) keeps it that far below the top (or another edge) when the page scrolls to it, so a sticky bar doesn't cover it. Overflow (horizontal) and Overflow (vertical) set what shows past each edge on its own.
  • Effects add a Filter (blur, brightness, contrast, grayscale, invert, opacity, saturation, sepia, turning the colours, a drop shadow, several in order; an amount of 1 is 100%), a Backdrop filter for frosted glass, Blend with what is behind, Clip to a shape (a rectangle with rounded corners, a circle, an ellipse or a polygon through its points, in sizes or percentages), and Transform origin, the point an element turns and grows around. Text shadow is under text, without spread or inside.
  • Depth (experimental: it may still change). Set Perspective on a parent, say 1200 pixels, and its children can tilt and move towards you: Rotate → About an axis turns an element about x (tipping back), y (swinging round) or z (the usual turn), and Move takes a third value, how far it comes closer (no percentage). The smaller the perspective, the stronger the effect. Perspective origin moves the point the parent is seen from. Children in 3D (preserve-3d) lets a turned element's own children keep their depth instead of being drawn flat into it, which a stack of layers coming apart needs, and Back side hides an element once it turns its back to you, as on a card that flips.
  • Text outline draws a line around each letter, beside the text colour under text: its width (0 to 8 pixels) and Text outline colour. Set the text colour to transparent for hollow letters. The accessibility check then reads the letters by the outline's colour, and an outline under 2 pixels around a transparent fill stops a publish, unless the words are decoration: hidden from screen readers (Decorative in the element's Accessibility settings) and shown in a text elsewhere on the page, such as the heading they echo. The outline is experimental: it may still change.
  • Mask fades parts of an element away with a gradient: where the gradient is transparent the element disappears, where it is solid it shows. Mask gradient is edited as a background's (stops, angle, shape, centre), and once it is set, Mask size, Mask position and Mask repeat work as a background's do. A stop can be a theme colour, so the mask follows light and dark mode. A mask can hide text completely, so the accessibility check warns about visible text under a mask that turns transparent: check that the words still read, or mark them Decorative when they only echo a heading. The mask is experimental: it may still change.
  • Forms: the accent colour of checkboxes, radios and range sliders, and whether the visitor can resize a text area (and in which direction).
  • Where each value comes from. The dot beside a property is blue when it is set here; another colour when its value comes from elsewhere, with a line under it saying from where (another screen width or state, another class, or the element's own styles) and that a value set here takes its place. When a value set here loses (the element's own styles win over a class on the same screen), the line says so, and how to change it.
  • The styles are the whole site's: a change to a class shows on every page with it once a page is published. Saving keeps them; publishing any page puts them live.

Animating an element

Select an element and open its Motion tab. Add an animation starts one from a preset: Fade in, Slide up, Slide in from the side, Grow, Spin or Blur in. It animates the element when it comes into view. Then change:

  • Starts: when it comes into view (how much of it, and only the first time or each time), when the page opens, while the pointer is on it, when it is clicked (buttons and links only; a second click can play it back), with the scroll, or when an action plays it. An interactive part plays the last kind with Play an animation in its Data tab.
  • Animates: the element itself, and others you pick in the structure panel (Pick in the structure, then click their rows; Done picking to stop).
  • From and To: opacity, moving across, down and closer, size, turning, tilting and swinging, blur, text colour and background (a colour variable of the site's styles), one row each with × to stop animating it. A state turns about one axis: turn, tilt or swing. Moving closer, tilting and swinging show depth under a parent with a perspective (see Depth above). Only what the animation sets is listed; Add a property adds another. An empty field isn't animated.
  • Duration, Delay, Easing, Times played (1 to 10) and Direction. Repeat forever is there for what plays while the pointer is on it (it stops when the pointer and focus leave) and for what starts by itself (a loading spinner, a marquee, a pulsing badge); see below.
  • Plays on: the screens it plays at, by breakpoint.
  • For visitors who ask for less motion: fade only (the default), show the end at once, or don't play.

Preview on the page plays it on the canvas at once. Animations save with the page and play on the site once the page is published. What starts by itself (on opening, in view, from an action) lasts at most five seconds, and nothing flashes more than three times a second, also when it repeats forever.

What starts by itself and repeats forever needs a way for visitors to stop it: the page needs Pause animations (Add element → Interactive), and saving refuses the animation without it. Put it on the same page as the animation (a header or footer changes on its own, so one there doesn't count), outside a Show if, a Repeat for each and an interactive part, where it always shows. It is a button, hidden until the page's script runs. Pressing it pauses every animation on the page (what repeats forever holds where it is, the rest jumps to its end) and the browser remembers it, so the visitor's next pages start paused; pressing it again goes on. Visitors who ask their device for less motion never see an animation that repeats forever.

Animations are a designer's: admins by default (website.styles.update). A part whose styles are locked keeps its animations too. An animation with several steps (made by an AI assistant or a developer) shows here without its steps; change it where it was made.

A light that follows the pointer

A glow that moves with the mouse is two settings. On the element the light should follow over, such as a hero section, add an animation and set Starts to Follow the pointer. It plays nothing, so it has no targets, states or timing, only When the pointer leaves: the light stays where it was, or goes back to its rest. Then give that element, or one inside it, a radial gradient background whose centre has Follow the pointer on, with the place it rests at.

The light moves only for a mouse or a pen. On a phone or a tablet, for someone using the keyboard and for visitors who ask for less motion, it stays at its rest, and nothing else about the page changes, so no one misses anything. A page follows the pointer over one element (and one in each header, footer or component), never over an element inside a Repeat for each. Publishing refuses a gradient that follows the pointer where nothing follows it, since it would never move.

Data, conditions and lists

Data, beside Settings and Style, takes what the selected part shows from data instead of typing it:

  • What can be read. The page's own fields (entry.title, entry.seo.description), the site (site.name, site.url), and inside a list, the item it repeats for (item.title, item.date, its item.id, and item.path, its own page's address when it has one). What you can use here, at the bottom of the tab, lists them with their type and their value now; click one to put it in the formula.
  • A text shows Fixed words (typed in Settings, per language) or words From data: a formula.
  • An element's settings that can come from data (a link's address, an image, a title, an anchor): the tab lists only those that do, each with its formula and × to make it fixed again; Add a value from data picks another (the variable icon beside a setting's name in Settings goes there too). A setting that comes from data shows its formula in Settings, with Change. A component used here works the same for its properties.
  • The formula bar takes a formula: a name (entry.title), text in quotes, numbers, comparisons (item.price > 10), "and" and "or" (&&, ||), a fallback (entry.seo.description ?? site.name), a choice (a ? b : c) and functions (upper(…), formatDate(item.date), formatNumber(…), length(…)…). It is checked as you type, as saving checks it: what is wrong is marked and said below it, and a formula that checks shows what it gives now. Names and functions are suggested as you type (arrow keys and Enter, or a click). Enter, or leaving the bar, keeps it; a formula with a problem is never kept.
  • Show if shows what it holds only when its condition holds (item.date != null, entry.seo.noindex == false); until a condition is set it always shows. Show something otherwise adds what shows when it doesn't. What fails a condition is left out of the page entirely, never hidden.
  • Repeat for each repeats what it holds for each item of a data source (Items from: a collection with a public API, such as the posts, or a module's source), with the source's settings (sorting, how many, its filters). A new one takes the first source and shows each item's title. Name of each item is how the formulas inside read it (item, or post); What tells the items apart is usually its id. Show something when there are no items adds what shows when the source gives none. On the site the items are the published ones when the site is built.

Parts per visitor and interactive parts

Two more kinds in the picker's Data group make a part of the page that is not the same for everyone:

  • Part per visitor is made for each visitor when they open the page, so it can greet someone who is signed in: inside it, formulas read visitor.signedIn (yes or no), visitor.name and visitor.email, and nothing else of their account. A new one says "Welcome back," with the visitor's name, for those signed in. The rest of the page stays the same for everyone. In the editor it shows as for someone not signed in.
  • Interactive part responds in the visitor's browser. In its Data tab, Values it keeps lists its values, one row each: a name, a type (on or off, text, number, list, search results, a route's answer) and its first value; what it holds reads them as state.<name>, so a Show if on state.open shows or hides something. A new one has a button that shows and hides a paragraph.
    • A route's answer keeps what a module answered, such as the free times of a booking module. Choose the route; only routes that say what they answer are offered, and formulas read its fields (state.slots.days). It is empty until the module has answered.
    • Keep (in the browser; text, numbers, on or off) keeps a value when the visitor goes to another page or comes back later. Every interactive part of the site with a kept value of the same name and type shares it, such as the id of a cart.
    • Fixed options (text) and Range (numbers) are for styles. Give a text its options, such as site, all-modules, and its first value becomes one of them: the Style tab of an element inside the part then offers While picked is site under Condition, so a chip can look chosen without a copy of it in an If. Give a number a range, and a property such as a width or the opacity can follow it as The island's number, between the two ends you set; before the part runs, and in the editor, it shows its value Before it runs. A value with options or a range is never kept.
  • What it does. Select a button, a link, a field or a form inside an interactive part, and its Data tab lists what it answers (clicked, changed, typed in, sent, a key pressed, and the part starting) with the actions each runs, in order. Add one with Add an action, reorder or remove it with the buttons beside it:
    • Switch a value on or off; Set a value (a formula, which may read the element: event.value, event.checked); Go to an address; Submit a form in this part (one of the part's forms, by its anchor).
    • Search the site: what a formula gives, the results put in a value of the type search results.
    • Copy to the clipboard: what a formula gives (a code, an address), on a click or a key, never when the part loads. Say how it went in a text value: copied, or failed when the browser refuses (the actions after it then stop), for a Show if to show a message.
    • Call a module: one of the routes modules open to visitors, with the fields it sends, in its body or in its address. Sends a form: the form it is on or in, or one by its anchor, to the route, with what keeps bots out and the consent text the visitor ticked. Keeps the answer in a value of the type a route's answer for that route. Says how it went in a text value: sending, then done, refused, busy or failed; when it isn't done the actions after it don't run. Never twice for a call that changes something, such as checking out, so a visitor clicking twice orders once. Asks again for a call that reads, every few seconds while a condition holds, for two minutes at most; And as soon as it changes for a route that says when its answer changes, such as the shop's order status: then the seconds are only a safety net, such as 30.

    When the part starts, it may only change its values or read from a module: nothing a visitor didn't ask for.
  • The data picker follows the formula used last, an action's included. Everywhere it lists page too: page.languages, the page in each of the site's languages, with its code, its name in that language, its address and whether it is the page's own (in the editor, the site's languages), and page.language, the code of the page's own language (to send to a module, so it answers in it), and page.id, the page's own id (to send to a module, so it knows which page a visitor was on; the Form starter sends it for the inbox's Sent from).

Components

Components are the site's own building blocks: made of elements like a page, used on many pages. Change one, and every page that uses it shows the change once the site is next built.

  • The Components screen (in the sidebar's Website section) lists them. Admins make one with New component (a name, and its name in code, such as price-card, which stays), open one to build it, and remove one; a component that a page, a header or footer, another component, or a version waiting to be published still uses is not removed, and the screen lists where it is used. Editors see the list and use components on pages.
  • Building one happens in the visual editor, as a page is built, with the component alone on the canvas. Component settings in the header (or selecting nothing) shows its own settings:
    • Properties: what each use fills in. One row each: a name in code (title, kept), a type (text, rich text, number, on or off, choice, link, image), Required, then its name in the editor and its default side by side. Its elements show one with a formula in the Data tab: props.title.
    • Slots: where a use puts its own content. Add element → Slot places one; it shows its own content (what a use puts there, else what it holds itself). Name it here.
    • Variants: other looks of the component, each adding classes to its outer elements. One may be the default.

    Its elements' own styles stay with it. Save keeps it. A change that removes a property, slot or variant a page still uses, or changes a property's type, is refused, with where it is used; names in the editor change freely. If someone else saved the component (or its animations, or the site's styles) since you opened it, saving is refused and the editor says so, so their changes aren't lost: Reload the component to go on from theirs. A page saved while its component is changed or removed waits for that change, and is refused if it no longer fits. A component can't use itself, also not through another component (a card in a list that holds the card).
  • Using one: Add element offers the components in its Components group. Settings of a use pick its variant and fill in each property (a text per language); the Data tab takes a property from data instead (post.title in a list of posts). Its slots are rows of the structure panel: select one, and what you add goes there.
  • Make a component (admins): select one element, or several next to each other, and choose Make a component in the element menu. They become a new component in the library, and a use of it takes their place, their own styles and their animations moved with them, so the part keeps moving. An animation that names both elements you moved and elements that stay (a click on a button that stays, animating a heading that moves) cannot belong to either side; it is removed, and the editor tells you which.
  • Starter components, below the library on the Components screen, are ready-made components to start from: Section, Spacer, Columns, Grid, Text, Hero, Call to action, Features (with Feature), FAQ (with Question), Download, List, Cards, Pinned scene, Account, Sign in, Create account, New password, My account, Search and Language switcher. Add puts one in the library as an ordinary component, to change as you like; its elements bring their own styles, which read the theme's colours, sizes and fonts, and its looks (variants) are classes named after it (hero-split) on the Site styles screen. Features and FAQ add the item components their slots take.
    • List and Cards ask which data they show and are added once per data source (list-website-posts); each page that uses one picks how many items, and in what order, in its Settings.
    • Search is a search box with its results (title, link and the text around what matched), which works on the published site, once the build has indexed the pages.
    • Sign in, Create account, New password and My account are the site's account pages' parts (see Accounts and personal pages): each links to the others' pages through its properties, and only they may hold a password field.
    • Pinned scene is a section two to five screens long whose frame stays on screen while a stack of layers tilts and comes apart with the scroll; in order on a phone, at its end at once under reduced motion. See Scroll scenes.
    • Language switcher links to the page in the site's other languages by their code in capitals (NL, EN), each with its name in its own language on hover and for screen readers, and the page's own language as text; on a site in one language it shows nothing.
  • Starters from other modules. Modules that are on may give the editor starter components of their own, such as a booking form; they are listed beside the others, marked with the module they come from, and added the same way. The Form of the forms module asks which of your published forms it shows and is added once per form (form-contact): its fields come from the form as published, in the page's language, and what visitors send arrives under Form submissions. Their texts come from the module's language files: each of the site's languages takes its own when the module has it, else the site's default language's, else English, to start with. They are checked like any component when added and never bring raw HTML. A module that is off gives none.

Embedded HTML

For what no element or component covers, such as a map or a booking widget, admins add Embedded HTML (Add element, Media group) and write its HTML in Settings. Scripts, event handlers and script links are refused when the page is saved, and the rest is cleaned when the page is shown: what is left is ordinary elements. Editors see an embed and save the page with it as it is, but don't add or change one.

History, accessibility and publishing

History in the editor's header lists every save of the page, newest first. Pick one to see what changed since, element by element ("Changed a text: nl", "Added a heading"), outlined on the page. Show on the page puts that version on the canvas instead of the draft; nothing changes while it shows. Restore this version makes it the draft again; the draft you had stays in the history. Styles and animations are the site's, so they aren't in versions. The page's history on its form, the editorial module's reviews and the AI changes list the same changes.

Accessibility runs the check a publish runs, on the page as it is now, saved or not. Errors stop a publish; warnings don't. Click one to select its element.

Under it, Search engines lists what the page's saved settings would show search engines that looks like a mistake. These are warnings only, and never stop a publish:

  • no meta description (search engines then show the site's description, or words they pick from the page);
  • a title another page has too (its SEO title, else its title), so the two look the same in search results;
  • Hide from search engines turned on, which keeps the page out of search results once it is published;
  • a canonical address other than the page's own, on this site or another, which tells search engines to show that page instead.

A page without a heading 1 is an accessibility warning, so it is not repeated here.

Publish saves what is unsaved and publishes the page. The button says where the page stands, as in the entry editor: Publish, Publish changes (live, with newer changes) or Published (up to date, disabled). Other modules add their actions to the header, as they do in the entry editor: with the editorial module on, Schedule, Add to release and, for whoever may not publish, Submit for review. A publish the accessibility check refuses opens Accessibility with what it said. A publish with warnings goes through, then opens Accessibility under Published, with accessibility warnings: click a warning to select its element, fix what you can and publish again.

For developers

The code and its tests: the README of shade-plugin-website.