Instead of import styles from './hover.module.css'
try using import './hover.module.css'
in your component and you can directly use the class names from your CSS file.
Use className
instead of classname
in your <a> tag
CLICK HERE to find out more related problems solutions.