All products

Floating layout setOfficial

A matching set for BitaKit apps: a floating sidebar frame, a split sign-in and its own not-found and error screens.

bitakit · Plugin for every BitaKit app

Type
Package
Needs a build
Kind
Plugin
BitaKit
Version
0.3.0
Latest
Works with
Any app
Every BitaKit app
Contains
4
parts
Publisher
bitakit
Official

Preview

6 pictures

Floating layout set, picture 1 of 6
Floating layout set, picture 2 of 6
Floating layout set, picture 3 of 6
Floating layout set, picture 4 of 6
Floating layout set, picture 5 of 6
Floating layout set, picture 6 of 6

About

A matching set for a BitaKit app: a frame with a floating sidebar, a split sign-in frame, and its own "not found" and "error" screens. One package, one command, and the app looks of a piece from the first page to the last.

The Floating layout set at a desktop width

npm install @bitakit/floating-layout-set
npx bitakit shell use @bitakit/floating-layout-set --all

The package is a BitaKit plugin (ID floating-set) and needs @bitakit/shell. --all chooses every part it brings; when it is the app's only frame package, its parts render without a choice.

| Part | What the set brings | | ------------------ | --------------------------------------------------------------------------- | | layout.app | A floating sidebar on the left that collapses to icons, and a bar beside it | | layout.auth | The page at the end, a panel for the shell.auth.aside slot at the start | | screen.not-found | "404", what happened, and the way back to the start page | | screen.error | "500", "Try again" when the page can be retried, and the way back |

Each part can also be chosen alone: npx bitakit shell use floating-set --part layout.auth. npx bitakit shell reset --part <part> returns one part to Shell's own.

What it shows where

  • The sidebar: the app's brand, the navigation and the account menu. On a phone it is a drawer behind the bar's button, as Shell's own sidebar is.
  • The bar: the sidebar's button, the header places and the toolbar.
  • The sign-in frame, from 1024 px: the page in one half, what the app puts into shell.auth.aside in the other. Phones show the page alone.
  • The screens appear wherever the app shows Shell's NotFoundPage and ErrorPage.

The set is Shell's own parts with their look fixed, so features change nothing, and the Layout settings that would change the sidebar are not offered while the set renders. Content width, density, corners and themes apply as usual.

Good to know

  • The sign-in frame reaches only pages of the auth family. From @bitakit/better-auth-ui 0.3.6 its sign-in pages join it on their own; with an older release set authLayout: 'auth' in src/configs/better-auth-ui.ts.
  • The screens' texts are English and German (@bitakit/floating-layout-set/locales/<lang>.json, the key floating-set); merge them like every package's catalogs.
  • The error screen never shows the error itself.

What's inside

App frames
1
Sign-in frames
1
Not-found screens
1
Error screens
1

Requirements

  • shell

Permissions

It adds and checks no permissions.

Information

Publisher
bitakit · Official
Type
PackageNeeds installation: add it to the app's code and build the app.
Kind
Plugin
Works with
Every BitaKit app
Categories
ShellsSign-in