Created
July 2, 2019 04:38
-
-
Save jacobparis/1e15fceab2623a7e38ef369ea33f7a89 to your computer and use it in GitHub Desktop.
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
import React from "react"; | |
import styled from "styled-components"; | |
import { Card } from './components/Card'; | |
const Price = styled.span` | |
font-size: 1.2rem; | |
`; | |
const Title = styled.div` | |
font-size: 1.5rem; | |
` | |
const Description = styled.div` | |
font-size: 1rem; | |
opacity: 0.8; | |
`; | |
export function Product(props) { | |
return ( | |
<Card> | |
<header> | |
<Price>{props.price}</Price> | |
</header> | |
<footer> | |
<Title>{props.title}</Title> | |
<Description>{props.description}</Description> | |
</footer> | |
</Card> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment