-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: initial sketch for bottom bar layout
- Loading branch information
Showing
3 changed files
with
42 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ export function ButtonAgainst(props: Props) { | |
fitContent | ||
{...props} | ||
> | ||
Jsem proti | ||
Ne | ||
</Button> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ export function ButtonInFavour(props: Props) { | |
fitContent | ||
{...props} | ||
> | ||
Jsem pro | ||
Ano | ||
</Button> | ||
); | ||
} |