moving online

This commit is contained in:
QkoSad
2022-11-07 19:37:10 +02:00
parent 8918854436
commit ac917e6e26
26 changed files with 1829 additions and 133 deletions
+25
View File
@@ -0,0 +1,25 @@
import PropTypes from "prop-types"
function Header ({text,bgColor,textColor}){
const headerStyles = {
color: textColor,
backgroundColor:bgColor
}
return(
<header style={headerStyles}>
<div className="container"><h2>{text}</h2></div>
</header>
)
}
Header.defaultProps = {
text:"FeedBack UI",
bgColor:'rgba(0,0,0,0.4)',
textColor: '#ff6a95',
}
Header.propTypes = {
text: PropTypes.string,
bgColor:PropTypes.string,
textColor: PropTypes.string
}
export default Header