Skip to content

Instantly share code, notes, and snippets.

@jacobparis
Created July 2, 2019 04:37
Show Gist options
  • Save jacobparis/20717bf06119d0b6ef9116304b48d7e6 to your computer and use it in GitHub Desktop.
Save jacobparis/20717bf06119d0b6ef9116304b48d7e6 to your computer and use it in GitHub Desktop.
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