Created
July 2, 2019 04:37
-
-
Save jacobparis/20717bf06119d0b6ef9116304b48d7e6 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"; | |
const Card = styled.div` | |
display: flex; | |
flex-direction: column; | |
justify-content: space-between; | |
width: 10rem; | |
max-width: 90%; | |
height: 10rem; | |
padding: 1.5rem; | |
margin: 1rem; | |
color: #333; | |
background-color: #fff; | |
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24); | |
`; | |
export function Product(props) { | |
return ( | |
<Card> | |
<span>$3.99</span> | |
<p>Widget</p> | |
<p>Shiny and Strong</p> | |
</Card> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment