Component

Add:
- Badge
- Container

Voting
Add:
- screens/Voting

Fix:
- (tabs)/ index, contribution, status

# No Issue
This commit is contained in:
2025-07-28 12:24:35 +08:00
parent 20258d1fe5
commit b18044f53f
10 changed files with 467 additions and 19 deletions

View File

@@ -0,0 +1,55 @@
import {
BoxWithHeaderSection,
AvatarUsernameAndOtherComponent,
Spacing,
StackCustom,
TextCustom,
BadgeCustom,
Grid,
CircleContainer,
} from "@/components";
import dayjs from "dayjs";
export default function Voting_BoxPublishSection({
bottomComponent,
}: {
bottomComponent?: React.ReactNode;
}) {
return (
<>
<BoxWithHeaderSection>
<AvatarUsernameAndOtherComponent avatarHref="/profile/1" />
<Spacing />
<StackCustom>
<TextCustom align="center" bold truncate size="large">
Voting Title Here
</TextCustom>
<BadgeCustom
style={{ width: "70%", alignSelf: "center" }}
variant="light"
>
{dayjs().format("DD/MM/YYYY")} -{" "}
{dayjs().add(1, "day").format("DD/MM/YYYY")}
</BadgeCustom>
<Grid>
<Grid.Col span={3} style={{ alignItems: "center" }}>
<CircleContainer value={"10"} />
</Grid.Col>
<Grid.Col span={3} style={{ alignItems: "center" }}>
<CircleContainer value={"9"} />
</Grid.Col>
<Grid.Col span={3} style={{ alignItems: "center" }}>
<CircleContainer value={"10"} />
</Grid.Col>
<Grid.Col span={3} style={{ alignItems: "center" }}>
<CircleContainer value={"9"} />
</Grid.Col>
</Grid>
{bottomComponent}
</StackCustom>
</BoxWithHeaderSection>
</>
);
}