Last active
May 22, 2021 10:17
-
-
Save dipeshhkc/01acdc21f25a34a7099e790c496fa9e7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { createUseStyles } from 'react-jss'; | |
const useStyles = createUseStyles(() => ({ | |
middle: { | |
display: 'flex', | |
justifyContent: 'center', | |
alignItems: 'center', | |
}, | |
heading: ({ color, fontSize }) => ({ | |
extend: 'middle', | |
color: color, | |
fontSize: fontSize, | |
"&:hover":{ | |
color:"#0c0c0c" | |
} | |
}), | |
})); | |
export default function Home() { | |
const classes = useStyles({ color: '#80722A', fontSize: 40 }); | |
return ( | |
<div className={classes.heading}> | |
Implementing React-JSS on Next.js Projects. | |
</div> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment