We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9032706 commit b1bf0b4Copy full SHA for b1bf0b4
1 file changed
apps/next-blog/src/app/components/blog/AuthorList.tsx
@@ -24,9 +24,9 @@ export function AuthorList(props: Props) {
24
href={`/author/${author.slug}`}
25
className={cx(
26
`group/one absolute h-8 min-w-[2rem] !rounded-none border-2 border-black px-2 `,
27
- idx === 0 && 'bg-white',
28
- idx === 1 && 'bg-orange-500 text-black',
29
- idx === 2 && 'bg-blue-500 text-white',
+ idx % 3 === 0 && 'bg-white',
+ idx % 3 === 1 && 'bg-orange-500 text-black',
+ idx % 3 === 2 && 'bg-blue-500 text-white',
30
)}
31
style={{
32
// '--size': '40px',
0 commit comments