aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/components/Form/Button.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/components/Form/Button.js')
-rw-r--r--frontend/src/components/Form/Button.js30
1 files changed, 30 insertions, 0 deletions
diff --git a/frontend/src/components/Form/Button.js b/frontend/src/components/Form/Button.js
index e69de29..7396ca1 100644
--- a/frontend/src/components/Form/Button.js
+++ b/frontend/src/components/Form/Button.js
@@ -0,0 +1,30 @@
+import styled, {css} from 'styled-components'
+import {Border, ButtonLike, DropShadow, Rounded} from "./mixins";
+
+const Base = css`
+ ${DropShadow}
+ ${Rounded}
+ ${ButtonLike}
+ margin-right: 2em;
+`
+
+const Primary = css`
+ ${Base};
+ border: none;
+ color: ${p => p.theme.colors.background};
+ background-color: ${p => p.theme.colors.text};
+`
+const Secondary = css`
+ ${Base};
+ ${Border};
+ color: ${p => p.theme.colors.text};
+ background-color: ${p => p.theme.colors.background};
+`
+
+export const Button = styled.button`
+ ${p => p.secondary ? css`${Primary}` : css`${Secondary}` }
+`
+
+export const SubmitButton = styled.input`
+ ${Primary}
+` \ No newline at end of file