exercise level 3 - 1 added

pull/156/head
diegobaena89 3 years ago
parent d79d7d85d5
commit 85a31d9379

@ -1,12 +1,18 @@
import React from 'react' import React from 'react'
import Background from './pages/Background' // import Background from './pages/Background'
import './App.css' import './App.css'
import Stripe from './pages/Stripe'
const App = () => { const App = (props) => {
return ( return (
<div> <div>
<Background /> {/* <Background /> */}
<Stripe bgColor="#518cef" color="#518cef" />
<Stripe bgColor="#3b10c4" color="#3b10c4" />
<Stripe bgColor="#9aede6" color="#9aede6" />
<Stripe bgColor="#8ee763" color="#8ee763" />
<Stripe bgColor="#a30dd0" color="#a30dd0" />
</div> </div>
) )
} }

@ -0,0 +1,10 @@
import React from 'react'
import styles from './Stripe.module.css'
const Stripe = (props) => {
return (
<div className={styles.container} style={{ backgroundColor: `${props.bgColor}` }}>{props.color}</div>
)
}
export default Stripe

@ -0,0 +1,12 @@
.container {
width: 100vw;
height: 15vh;
margin-bottom: 5px;
display: flex;
justify-content: center;
align-items: center;
color: white;
font-weight: bold;
font-size: 1.5em;
}
Loading…
Cancel
Save