finished it properly.

pull/379/head^2
seanj29 2 years ago
parent bddfcded90
commit 6f75f65d0a

@ -11,7 +11,7 @@ const hexaColor = () => {
const RandomDiv = () => { const RandomDiv = () => {
return ( return (
<div <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>) >{hexaColor()}</div>)
} }

@ -4,7 +4,7 @@ import RandomDiv from './RandomColorDiv'
export default function Home() { export default function Home() {
return ( return (
<main> <main>
<div> <div style={{display:'flex', flexDirection:'column', justifyContent: 'center', height: "100vh"}}>
<RandomDiv/> <RandomDiv/>
<RandomDiv/> <RandomDiv/>
<RandomDiv/> <RandomDiv/>

Loading…
Cancel
Save