aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/components/Form/Button.js
diff options
context:
space:
mode:
authorjackyzha0 <[email protected]>2021-03-05 23:50:11 -0800
committerjackyzha0 <[email protected]>2021-03-05 23:50:11 -0800
commit6c974b237a9b7a8bd8f294d210157e19acf4c7fe (patch)
treecbaa793a6f1468ae4d2c6b5d91bae38fe7dc0840 /frontend/src/components/Form/Button.js
parenttext area styling (diff)
downloadctrl-v-6c974b237a9b7a8bd8f294d210157e19acf4c7fe.tar.xz
ctrl-v-6c974b237a9b7a8bd8f294d210157e19acf4c7fe.zip
button styling
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