Rework of page "contribute.js/todos.js" (part2), finishing up style changes across pages, minor fixes

This commit is contained in:
ndaniel1102 2021-04-20 21:35:41 +02:00
parent a91fa4a7fe
commit 88dd1f0cc6
17 changed files with 126 additions and 92 deletions

View file

@ -11,7 +11,7 @@ export default function TodoCard(props) {
<div
className={styles.card}
style={{
border: `2px solid ${group || '#99f'}`,
border: `1px solid ${categories[category].color || '#f2cb05'}`,
}}
onClick={() => {
onClick(props.cardData)
@ -27,7 +27,7 @@ export default function TodoCard(props) {
backgroundColor: categories[category].color,
color: 'white',
borderRadius: '2px',
padding: '2px 4px',
padding: '3px',
}}
>
{categories[category].name}
@ -35,9 +35,9 @@ export default function TodoCard(props) {
</div>
<div className={styles.numbers}>
<div className={`${voted && styles.voted}`}>
<div>{`Votes: ${votes.length}`}</div>
<div>{`Szavazatok: ${votes.length}`}</div>
</div>
<div>{points}</div>
<div>{`Neh<EFBFBD>zs<EFBFBD>g: ${points}`}</div>
</div>
</div>
)