summaryrefslogtreecommitdiffstats
path: root/stepped-solutions/05/frontend/components/styles/ItemStyles.js
diff options
context:
space:
mode:
authorWes Bos <wesbos@gmail.com>2018-06-19 12:49:31 -0400
committerWes Bos <wesbos@gmail.com>2018-06-19 12:49:31 -0400
commit8d4dffa6f01487be0cf5546653803d32282992eb (patch)
tree46b2ace612f1e364645ca7d4e1c46e80ec970891 /stepped-solutions/05/frontend/components/styles/ItemStyles.js
parent14caed5d15b3601bb91a5f4a688fbdfba38cf321 (diff)
video 5
Diffstat (limited to 'stepped-solutions/05/frontend/components/styles/ItemStyles.js')
-rw-r--r--stepped-solutions/05/frontend/components/styles/ItemStyles.js39
1 files changed, 39 insertions, 0 deletions
diff --git a/stepped-solutions/05/frontend/components/styles/ItemStyles.js b/stepped-solutions/05/frontend/components/styles/ItemStyles.js
new file mode 100644
index 0000000..b117d5f
--- /dev/null
+++ b/stepped-solutions/05/frontend/components/styles/ItemStyles.js
@@ -0,0 +1,39 @@
+import styled from 'styled-components';
+
+const Item = styled.div`
+ background: white;
+ border: 1px solid ${props => props.theme.offWhite};
+ box-shadow: ${props => props.theme.bs};
+ position: relative;
+ display: flex;
+ flex-direction: column;
+ img {
+ width: 100%;
+ height: 400px;
+ object-fit: cover;
+ }
+ p {
+ font-size: 12px;
+ line-height: 2;
+ font-weight: 300;
+ flex-grow: 1;
+ padding: 0 3rem;
+ font-size: 1.5rem;
+ }
+ .buttonList {
+ display: grid;
+ width: 100%;
+ border-top: 1px solid ${props => props.theme.lightgrey};
+ grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
+ grid-gap: 1px;
+ background: ${props => props.theme.lightgrey};
+ & > * {
+ background: white;
+ border: 0;
+ font-size: 1rem;
+ padding: 1rem;
+ }
+ }
+`;
+
+export default Item;