19 lines
518 B
JavaScript
19 lines
518 B
JavaScript
import React from 'react'
|
|
|
|
const CardGenre = React.forwardRef(
|
|
({ oddBgColor = 'odd:bg-app-greyish-blue', onClick, href, text }, ref) => {
|
|
return (
|
|
<a
|
|
href={href}
|
|
onClick={onClick}
|
|
ref={ref}
|
|
className={`card-hover-animation m-2 flex h-44 w-44 grow items-center justify-center rounded-lg p-8 text-center text-xl font-medium even:bg-app-semi-dark-blue ${oddBgColor}`}
|
|
>
|
|
{text}
|
|
</a>
|
|
)
|
|
}
|
|
)
|
|
|
|
CardGenre.displayName = 'CardGenre'
|
|
export default CardGenre
|