secret/components/CardGenre.js
2023-09-13 22:34:46 +05:30

19 lines
517 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-light even:bg-app-semi-dark-blue ${oddBgColor}`}
>
{text}
</a>
)
}
)
CardGenre.displayName = 'CardGenre'
export default CardGenre