Skip to content

Commit

Permalink
UI changes for poll
Browse files Browse the repository at this point in the history
  • Loading branch information
ebedoise committed Aug 2, 2024
1 parent 64ea5db commit 2e74e1b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
5 changes: 4 additions & 1 deletion apps/poll/src/ChoiceItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ export const ChoiceItem = ({
}: ChoiceItemType) => (
<ChoiceCard>
<Flex p={15} alignItems="center" justifyContent="center" flexDirection="column">
<Text textAlign="center">{title}</Text>
<Text textAlign="center" color="white">
{title}
</Text>
<Box mt={2}>
{alreadyVoted || completed ? (
<Stat textAlign="center">
Expand All @@ -32,6 +34,7 @@ export const ChoiceItem = ({
) : (
<VoteButton
display="flex"
textAlign="center"
onClick={() => handleClickOnChoice({ count: votes, value: title, id })}
justifyContent="space-between"
>
Expand Down
2 changes: 1 addition & 1 deletion apps/poll/src/Choices.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export const Choices = () => {
<Box marginTop={8} flex={1} display="flex" justifyContent="center" alignItems="center">
{isLocked ? (
<Heading color="grey" textAlign="center" fontSize="x-large">
Connect your wallet with Human Divergence NFT to vote
Connect your wallet
</Heading>
) : (
<Flex gap={2} justifyContent="center" flexWrap="wrap" w="100%">
Expand Down
2 changes: 1 addition & 1 deletion apps/poll/src/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function Layout() {
<GridItem
display="flex"
alignItems="center"
justifyContent="space-between"
justifyContent="flex-end"
overflow="hidden"
rowSpan={1}
paddingX={15}
Expand Down
4 changes: 3 additions & 1 deletion apps/poll/src/Poll.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ export const Poll = ({ title, image, completed }: PollType) => (
<Box position="relative">
{completed && (
<TitleLayer>
<Text fontWeight="bold">Completed</Text>
<Text fontWeight="bold" color="white">
Completed
</Text>
</TitleLayer>
)}
<PollImage completed={completed} src={image} />
Expand Down

0 comments on commit 2e74e1b

Please sign in to comment.