@@ -52,29 +52,37 @@ export function ProjectSidebarActions({
5252 return (
5353 < div className = 'flex flex-row gap-3' >
5454 { projectStatus === 'Validation' && (
55- < BoundlessButton
56- onClick = { ( ) => onVote ( 1 ) }
57- disabled = { isVoting || userVote === 1 }
58- // variant={userVote === 1 ? 'default' : 'outline'}
59- loading = { isVoting }
60- iconPosition = { userVote === 1 ? 'right' : 'left' }
61- icon = {
62- userVote === 1 ? (
63- < ThumbsUp className = 'h-5 w-5' fill = '#A7F950' />
64- ) : (
65- < ArrowUp className = 'h-5 w-5' />
66- )
67- }
68- className = { `flex h-12 flex-1 items-center justify-center gap-2 rounded-lg text-base font-semibold shadow-lg transition-all duration-200 hover:shadow-xl ${
69- userVote === 1
70- ? 'bg-primary/10 border-primary/24 text-primary border'
71- : 'bg-[#A7F950] text-black hover:bg-[#A7F950]'
72- } `}
73- >
74- < span className = '' >
75- { isVoting ? 'Voting...' : userVote === 1 ? 'Upvoted' : 'Upvote' }
76- </ span >
77- </ BoundlessButton >
55+ < div className = 'group relative inline-block' >
56+ < BoundlessButton
57+ onClick = { ( ) => onVote ( 1 ) }
58+ disabled = { isVoting || userVote === 1 }
59+ loading = { isVoting }
60+ iconPosition = { userVote === 1 ? 'right' : 'left' }
61+ icon = {
62+ userVote === 1 ? (
63+ < ThumbsUp className = 'h-5 w-5' fill = '#A7F950' />
64+ ) : (
65+ < ArrowUp className = 'h-5 w-5' />
66+ )
67+ }
68+ className = { `flex h-12 flex-1 items-center justify-center gap-2 rounded-lg text-base font-semibold shadow-lg transition-all duration-200 hover:shadow-xl ${
69+ userVote === 1
70+ ? 'bg-primary/10 border-primary/24 text-primary border'
71+ : 'bg-[#A7F950] text-black hover:bg-[#A7F950]'
72+ } `}
73+ >
74+ < span >
75+ { isVoting ? 'Voting...' : userVote === 1 ? 'Upvoted' : 'Upvote' }
76+ </ span >
77+ </ BoundlessButton >
78+
79+ { /* Dropdown text */ }
80+ < div className = 'absolute top-full left-1/2 z-10 mt-2 hidden w-64 -translate-x-1/2 rounded-xl border border-gray-200 bg-white p-3 text-sm text-gray-700 shadow-lg group-hover:block' >
81+ Voting is straightforward and individualistic — it’s for everyone.
82+ Voting power, weight, and eligibility for who can vote are currently
83+ under implementation.
84+ </ div >
85+ </ div >
7886 ) }
7987
8088 { projectStatus === 'funding' ||
0 commit comments