Skip to content

Instantly share code, notes, and snippets.

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