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
<style> | |
body { | |
background-color: white; | |
} | |
header { | |
background-color: #09A7A1; | |
color: white; | |
padding: 0.25em; | |
} | |
h2 { |
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
<head> | |
<style> | |
#left { | |
float: left; | |
width: 50%; | |
} | |
#right { | |
float: right; | |
width: 40%; | |
} |
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
<style> | |
h4 { | |
text-align: center; | |
background-color: rgba(45, 45, 45, 0.1); | |
padding: 10px; | |
font-size: 27px; | |
} | |
p { | |
text-align: justify; |
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
<style> | |
h4 { | |
text-align: center; | |
background-color: rgba(45, 45, 45, 0.1); | |
padding: 10px; | |
} | |
p { | |
text-align: justify; | |
} | |
.links { |
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
<style> | |
h4 {text-align: center; | |
} | |
p {text-align: justify; | |
} | |
.links { | |
margin-right: 20px; | |
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
class CampSite extends React.Component { | |
constructor(props) { | |
super(props); | |
} | |
render() { | |
return ( | |
<div> | |
<Camper/> | |
</div> | |
); |
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
class ReturnTempPassword extends React.Component { | |
constructor(props) { | |
super(props); | |
} | |
render() { | |
return ( | |
<div> | |
{ /* change code below this line */ } | |
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
const Items = (props) => { | |
return <h1>Current Quantity of Items in Cart: {props.quantity}</h1> | |
}; | |
// change code below this line | |
Items.propTypes = | |
{quantity: PropTypes.number.isRequired} | |
; |
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
const Items = (props) => { | |
return <h1>Current Quantity of Items in Cart: {props.quantity}</h1> | |
} | |
Items.defaultProps = { | |
quantity: 0 | |
} | |
class ShoppingCart extends React.Component { | |
constructor(props) { |
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
const ShoppingCart = (props) => { | |
return ( | |
<div> | |
<h1>Shopping Cart Component</h1> | |
</div> | |
) | |
}; | |
// change code below this line | |
ShoppingCart.defaultProps = { |