All products

Picture sign-inOfficial

A sign-in frame for BitaKit apps: a picture or a message covers the screen and the form floats on a panel beside it.

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
1
part
Publisher
bitakit
Official

Preview

3 pictures

Picture sign-in, picture 1 of 3
Picture sign-in, picture 2 of 3
Picture sign-in, picture 3 of 3

About

A frame for the sign-in pages of a BitaKit app. A picture or a message covers the whole screen, and the form floats on a panel at one side. On a phone the form stands alone.

The Picture sign-in frame at a desktop width

npm install @bitakit/picture-sign-in

The package is a BitaKit plugin (ID picture-sign-in) and needs @bitakit/shell. It brings one frame for the pages of the auth family (sign-in, sign-up, password reset): picture-sign-in:default. When it is the only sign-in frame of the app, it renders as soon as it is installed. Beside another one, choose it:

npx bitakit shell use @bitakit/picture-sign-in --all

npx bitakit shell reset --part layout.auth returns to Shell's own sign-in frame.

Fill the cover

The frame shows what the app puts into the shell.auth.aside slot. A picture that fills its container covers everything behind the panel:

// src/ui/slots/shell.auth.aside.tsx
export default function SignInCover() {
  return <img src="/sign-in.jpg" alt="" className="absolute inset-0 size-full object-cover" />;
}

Text and other content in the normal flow (a quote, what the product does) is centered in the room beside the panel instead. Without anything in the slot the room shows the theme's muted background.

What it shows where

  • From 1024 px: the cover on the whole screen, and a panel with the shell.brand slot and the page at one side. The side is the Shell option auth.form (start by default), the same option Shell's own split frame reads:

    // src/configs/shell.ts
    import { defineConfig } from '@bitakit/core';
    import type { ShellOptions } from '@bitakit/shell';
    
    export default defineConfig({
      defaults: { auth: { form: 'end' } } satisfies ShellOptions,
    });
    
  • Below that: the brand and the page alone, as in Shell's split frame.

The page is the app's own (its card, its fields, its buttons); the frame only places it.

Good to know

  • The 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.
  • A cover picture is decoration: give it an empty alt, and keep everything a person has to read in the page itself.
  • Choose a picture that still works when the panel hides one side of it, and check it in the dark color scheme.

What's inside

Sign-in frames
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
Sign-in
Picture sign-in · BitaKit Marketplace