Skip to Content
BBRICKSv0.7.4
Screens

Motivation · Bonuses

Bonus cards with each creator's progress, and one bonus open.

Bonus cards with each creator's progress, and one bonus open. Composed in MotivationScreen.tsx (its view prop) from BRICKS exports only, with the v3 brand mock's numbers.

Motivation › Bonuses

The bonuses banner and a BonusCard per bonus with the first four creators' progress.

Pinned to TRNDR preset
Code
import type { Lang } from '@ergasti/bricks';
import { useLanguage } from '@ergasti/bricks';
import { BRAND_SUB_SCREENS } from '../../../packages/bricks/src/gallery/screens/BrandSubScreens';

const view = (id: string, language: Lang) => {
  const { Screen } = BRAND_SUB_SCREENS[id];
  return <Screen language={language} />;
};

function Bonuses() { return view('motivation-bonuses', useLanguage()); }

A bonus open

BonusDetail in the drawer: everyone's progress and the way to the challenge.

Pinned to TRNDR preset
Code
import type { Lang } from '@ergasti/bricks';
import { useLanguage } from '@ergasti/bricks';
import { BRAND_SUB_SCREENS } from '../../../packages/bricks/src/gallery/screens/BrandSubScreens';

const view = (id: string, language: Lang) => {
  const { Screen } = BRAND_SUB_SCREENS[id];
  return <Screen language={language} />;
};

function BonusDrawer() { return view('bonus-drawer', useLanguage()); }

How it is built

  • view="bonuses": a Banner tone="info" over a two-column grid of BonusCards (title, rule, tone, progress).
  • view="bonus": the first bonus in a Drawer hideTitle with BonusDetail (onOpenCreator, onOpenChallenge).