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": aBanner tone="info"over a two-column grid ofBonusCards (title,rule,tone,progress).view="bonus": the first bonus in aDrawer hideTitlewithBonusDetail(onOpenCreator,onOpenChallenge).