@ -11,7 +11,7 @@ const hexaColor = () => {
const RandomDiv = () => {
return (
<div
style={{backgroundColor: hexaColor(), display: 'flex' , justifyContent: 'center'}}
style={{backgroundColor: hexaColor(), display: 'flex' , alignItems: 'center', justifyContent: 'center', borderRadius: "0.25vw", height: "10vh" , width: "50%", margin: '5px auto'}}
>{hexaColor()}</div>)
}
@ -4,7 +4,7 @@ import RandomDiv from './RandomColorDiv'
export default function Home() {
<main>
<div>
<div style={{display:'flex', flexDirection:'column', justifyContent: 'center', height: "100vh"}}>
<RandomDiv/>