Skip to content

Commit

Permalink
feat: initial sketch for bottom bar layout
Browse files Browse the repository at this point in the history
  • Loading branch information
mewdev committed Nov 12, 2024
1 parent e85f301 commit 1952753
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 2 deletions.
40 changes: 40 additions & 0 deletions apps/web/app/[lang]/bottom-bar/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
"use client";

import { ButtonAgainst, ButtonInFavour } from "@repo/design-system/ui";
import { StarIconButton } from "@repo/design-system/starIconButton";
import { StepProgressFancy } from "@repo/design-system/ui";

const steps = {
answers: [
{ answerId: "1", status: true }, // positive step (e.g. answerInFavour)
{ answerId: "2", status: null },
{ answerId: "3", status: null }, // neutral step (e.g. visited / skipped, answerNeutral)
{ answerId: "4", status: false }, // negative step (e.g. answerAgainst)
{ answerId: "5", status: true },
{ answerId: "6", status: true }, //
{ answerId: "7", status: false },
{ answerId: "8", status: undefined }, // step with no sratus (e.g. not visited yet)
],
totalQuestion: 4,
currentQuestion: 8,
};

export default function Page() {
return (
// main wrapper
<div className="sticky bottom-0 bg-slate-300">
{/* count status wrapper */}
<div className="w-full">
<StepProgressFancy steps={steps} />
</div>
{/* button wrapper */}
<div className="flex justify-center p-4">
<div className="grid grid-cols-[auto_1fr_1fr] items-center justify-center gap-4 w-auto">
<StarIconButton />
<ButtonInFavour />
<ButtonAgainst />
</div>
</div>
</div>
);
}
2 changes: 1 addition & 1 deletion packages/design-system/src/ui/button/buttonAgainst.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function ButtonAgainst(props: Props) {
fitContent
{...props}
>
Jsem proti
Ne
</Button>
);
}
2 changes: 1 addition & 1 deletion packages/design-system/src/ui/button/buttonInFavour.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function ButtonInFavour(props: Props) {
fitContent
{...props}
>
Jsem pro
Ano
</Button>
);
}

0 comments on commit 1952753

Please sign in to comment.