# Blocks

> Part of Tray UI 0.2.0, a design system in plain HTML and CSS (MIT licence). Every page: https://trayui.com/llms.txt

64 screens built from the components: copy one into a product and fill it. Each is a single page of plain HTML.

## Dashboard

- [Dashboard](https://trayui.com/blocks/dashboard-01.md): An app's home: a sidebar with a workspace switcher, four stat cards, a chart of orders per day and a table of the latest orders to select and sort.

## Stats

- [Stat cards with a period switch](https://trayui.com/blocks/stats-01.md): Six stat cards in two groups, each set against the period before, under a switch between 7 days, 30 days and the season.
- [Stat cards over a season chart](https://trayui.com/blocks/stats-02.md): Stat cards and one large chart of the season on the ink card, with the harvest by bed and the goals of the season beneath.
- [Breakdown by channel](https://trayui.com/blocks/stats-03.md): A breakdown of the month: orders by channel beside the best sellers with their share, then orders by city and the share of repeat customers.

## Tables

- [Table with filters and bulk actions](https://trayui.com/blocks/table-01.md): A table of batches in a card: a filter bar with search, two filters and a date range, rows to select with actions, a total and numbered pages.
- [Table with sortable columns and row menus](https://trayui.com/blocks/table-02.md): A table of customers with avatars, columns that sort, a search and a menu on each row, beside a sidebar folded to a rail.
- [Table with status tabs and a details sheet](https://trayui.com/blocks/table-03.md): Deliveries of the day in a table filtered by tabs with counts; each order opens its details in a sheet.

## Settings

- [Profile settings](https://trayui.com/blocks/settings-01.md): A personal profile in sections: a photo to upload, name and contact, language and time, and one bar that saves every change.
- [Notifications by channel](https://trayui.com/blocks/settings-02.md): Notification settings channel by channel: email, the phone app and text messages, each with its own switches, and quiet hours for the night.
- [Security and the danger zone](https://trayui.com/blocks/settings-03.md): Two-step sign-in, the devices you are signed in on, and deleting the workspace behind a dialog that asks you to type its name.

## Empty states

- [First run](https://trayui.com/blocks/empty-01.md): The orders page of a workspace on its first day: the first steps to take, a way to bring old orders, and the empty table where new ones will land.
- [No results](https://trayui.com/blocks/empty-02.md): A customer list whose search and filters match nobody: the filters stay in view, and the empty table names the near matches and clears the filters.
- [No access](https://trayui.com/blocks/empty-03.md): A packer opens the reports: a dimmed picture of what the page holds, who can open it, a way to ask for access, and the pages that are open to them.

## Sidebar

- [Sidebar grouped by section](https://trayui.com/blocks/sidebar-01.md): The base app sidebar: a wordmark, main items with a count, two labelled sections and the user at the foot. Start here for one level of navigation.
- [Sidebar with sections that fold](https://trayui.com/blocks/sidebar-02.md): The base sidebar with labelled sections that fold under their headings, one open and one closed; for when there are many sections and people use few.
- [Sidebar with a second level](https://trayui.com/blocks/sidebar-03.md): A sidebar with a second level always open under its items, such as the statuses under Orders; for a short second level used every day.
- [Sidebar with a level that folds](https://trayui.com/blocks/sidebar-04.md): A sidebar whose items fold open to show their second level, Orders open and the rest closed; for when the second level is too long to keep open.
- [Sidebar with menus](https://trayui.com/blocks/sidebar-05.md): A sidebar whose items open their second level in a menu beside them, so the list stays short; for when people go straight to a page under an item.
- [Sidebar that collapses to icons](https://trayui.com/blocks/sidebar-06.md): A sidebar that a button in the top bar folds to a rail of icons with tooltips, with a workspace switcher, a meter of orders and an account menu.
- [Inset sidebar](https://trayui.com/blocks/sidebar-07.md): An inset sidebar on a grey ground, the page in one white panel: a workspace switcher, the main items, a list of recent batches and an account menu.
- [Two sidebars](https://trayui.com/blocks/sidebar-08.md): Two sidebars: a rail of section icons beside an inbox of messages with a search and an Unread switch; for when a section is a list to pick from.
- [Sidebar with a file tree](https://trayui.com/blocks/sidebar-09.md): A sidebar for files: the changed files marked as modified, added or deleted, then a tree of folders that fold, with the open file in the breadcrumb.
- [Sidebar with a calendar](https://trayui.com/blocks/sidebar-10.md): A wide sidebar for a calendar: a month to pick the day, your own and the shared calendars as checkboxes in groups that fold, and a button to add one.
- [Sidebar at the end](https://trayui.com/blocks/sidebar-11.md): A sidebar at the end of the page with the contents of a long guide: headings, sub-headings, the current place marked and a link back to the top.
- [Sidebar on each side](https://trayui.com/blocks/sidebar-12.md): Navigation at the start of the page and details at the end: one order's customer, items, total and next deliveries, with a button to pack it.
- [Sidebar under a site header](https://trayui.com/blocks/sidebar-13.md): A sidebar under a header that spans the whole product and holds the wordmark, the breadcrumb, a search, notifications and the account.
- [Sidebar in a dialog](https://trayui.com/blocks/sidebar-14.md): A settings dialog open over the app, with a sidebar of its own: six sections down the side and the notification switches of the chosen one.
- [Navigation in a popover](https://trayui.com/blocks/sidebar-15.md): A page with no sidebar: a Menu button in the header opens the navigation in a popover; for small products or pages that need the full width.

## Login

- [Sign-in form](https://trayui.com/blocks/login-01.md): The plainest sign-in: a card centred on the page with email, a password you can show, a link for a forgotten one and six other accounts to use.
- [Sign-in page with a cover](https://trayui.com/blocks/login-02.md): The sign-in form in one half of the page, a cover in the other with a headline and a meter of the day's orders; for a sign-in that shows the product.
- [Sign-in page on a tray](https://trayui.com/blocks/login-03.md): A white sign-in panel on a grey ground, with Google and Apple shown and four more accounts in a menu, and the terms and privacy notice below.
- [Sign-in card with a picture](https://trayui.com/blocks/login-04.md): A wide card with the sign-in form beside a dark panel that follows one order, with the time of each step, from its arrival to the courier.
- [Email-only sign-in](https://trayui.com/blocks/login-05.md): Sign-in without a password: a link to the email that works for 15 minutes, six other accounts and a passkey; for a product that signs in by link.
- [Sign-in with social accounts](https://trayui.com/blocks/login-06.md): A sign-in card of six full-width account buttons and a link to use your email instead; for when most people use an account they already have.

## Signup

- [Sign-up form](https://trayui.com/blocks/signup-01.md): The plainest sign-up: a card centred on the page with work email, a password of at least 12 characters, six other accounts and a line on the terms.
- [Sign-up page with a cover](https://trayui.com/blocks/signup-02.md): The sign-up form in one half of the page and a cover in the other, listing three things a new account gets, from 14 free days to exporting your data.
- [Sign-up page on a tray](https://trayui.com/blocks/signup-03.md): A white sign-up panel on a grey ground, with Google and Apple shown and four more accounts in a menu, and the terms and privacy notice below.
- [Sign-up card with a picture](https://trayui.com/blocks/signup-04.md): A wide card with the sign-up form beside a panel of three first steps, from adding the products to packing the first order.
- [Sign-up with sign-in providers](https://trayui.com/blocks/signup-05.md): Sign-up that leads with six accounts, with the email and password right below on the same page; for when people should see both ways at once.
- [Sign-up with social accounts](https://trayui.com/blocks/signup-06.md): A sign-up card of six full-width account buttons and a link to use your email instead; for when the email form can live on a page of its own.

## Pricing

- [Plans at the end of a trial](https://trayui.com/blocks/pricing-01.md): Three plans side by side with a monthly or yearly switch, and what the trial used against the plan it fits.
- [Plans compared feature by feature](https://trayui.com/blocks/pricing-02.md): Every plan in one table, feature by feature in groups, with the price and a button at the head of each column.
- [Pricing by usage](https://trayui.com/blocks/pricing-03.md): One plan priced by the order: a slider that works out the month's price, what farms like yours pay, and questions that fold.

## Catalog

- [Catalog with filters on top](https://trayui.com/blocks/catalog-01.md): Products in a grid of cards under a filter bar for type, size and price, with the count, the sort and pages; for a range that three filters cover.
- [Catalog with a filter column](https://trayui.com/blocks/catalog-02.md): Products as rows beside a column of filters: checkboxes, a price limit and an in-stock switch. On a phone the column opens from a button.
- [The range at a glance](https://trayui.com/blocks/catalog-03.md): The whole range on one page: a tile per category with its count, a table of jar sizes with the price of 10 g, and the three products ordered most.

## Shop

- [Product page](https://trayui.com/blocks/shop-01.md): A product page: pictures with thumbnails, the rating, sizes, the quantity, Add to cart, the delivery, tabs of details, reviews and four more products.
- [Cart page with product lines](https://trayui.com/blocks/shop-02.md): A cart inside the shop's header and footer: lines with a picture, quantity and Remove, the way to free delivery, three things to add and the summary.
- [Cart in a sheet](https://trayui.com/blocks/shop-03.md): Gifts on a page whose cart opens in a sheet at the side: lines with a quantity, the way to free delivery, the subtotal and Check out.

## Checkout

- [Cart](https://trayui.com/blocks/checkout-01.md): The first step of a checkout, under a stepper: jars with a quantity, a meter to free delivery, a gift box with a note, a promo code and the summary.
- [One-page checkout](https://trayui.com/blocks/checkout-02.md): Contact, delivery with a day and a time slot, and the payment method on one page, beside the order summary.
- [Order placed](https://trayui.com/blocks/checkout-03.md): The page after paying: the order number, the delivery, what happens next, the summary, and where the jars come from.

## Articles

- [Journal](https://trayui.com/blocks/articles-01.md): The front page of a journal: its name, topic tabs, one featured article, a grid of six more, pages, and a letter to sign up for.
- [Search the articles](https://trayui.com/blocks/articles-02.md): A search of the journal: the query typed, topics and a year to narrow it, the number of results, rows with the words marked, and Load more.
- [Archive](https://trayui.com/blocks/articles-03.md): Every article by month: tabs for the year, a row per article with its day, title and topic, and the topics and authors with their counts at the side.

## Article

- [Long read with contents](https://trayui.com/blocks/article-01.md): A long read: standfirst, byline, a wide lead picture, the contents at the side, prose with a pull quote and figures, then tags and share links.
- [Article with key facts](https://trayui.com/blocks/article-02.md): A how-to article beside an ink card of key facts: a callout, a table of how long a jar keeps, numbered notes and a note of what was updated.
- [The end of an article](https://trayui.com/blocks/article-03.md): Where an article ends: its last paragraphs, the author, the previous and next articles, comments with a reply, a comment form and three related ones.

## Blog

- [Blog home](https://trayui.com/blocks/blog-01.md): A blog home: the latest posts with their date, author and tags, pages at the end, and an about card, the tags and a subscribe form at the side.
- [Author page](https://trayui.com/blocks/blog-02.md): One author's page: avatar, role, a short bio and links, three figures about their writing, their posts as cards with pages, and the other authors.
- [Posts with a tag](https://trayui.com/blocks/blog-03.md): One tag's page: tabs to switch tags, its posts by year in sections that fold, the current year open, and the season's figure and authors at the side.

## Wiki

- [Wiki page](https://trayui.com/blocks/wiki-01.md): A handbook page beside a tree of pages: who edited it last, an infobox, numbered steps, a callout, a table and a question on whether it helped.
- [Wiki home](https://trayui.com/blocks/wiki-02.md): A handbook's front page: a search, the sections as tiles with their page counts, recent changes, the most read pages and those due for a review.
- [Page history](https://trayui.com/blocks/wiki-03.md): The history of a handbook page: revisions with the date, author, summary and size of each, two ticked to compare, and the difference line by line.
