diff --git a/src/components/alert/index.js b/src/components/alert/index.js new file mode 100644 index 0000000..f6d08aa --- /dev/null +++ b/src/components/alert/index.js @@ -0,0 +1,10 @@ +import React, { Component } from 'react'; +import { translate } from 'react-i18next'; +import style from './theme.styl'; + +export default (props) => ( +
+ {props.message} + check +
+) diff --git a/src/components/alert/theme.styl b/src/components/alert/theme.styl new file mode 100644 index 0000000..5845d48 --- /dev/null +++ b/src/components/alert/theme.styl @@ -0,0 +1,35 @@ +.success + background: #33AA65 + padding: 10px 30px + border-radius: 30px + z-index: 999 + position fixed + bottom 25px + right 50px + color $Text1 + font-family $MainFont, $AlternateFont + font-size 16px + i + font-size 14px + + #checkmark-notify + display inline-block + width 20px + height 20px + transform rotate(45deg) + + #stem-notify + position absolute + width 3px + height 12px + background-color $Text1 + left 11px + top 6px + + #kick-notify + position absolute + width 6px + height 3px + background-color $Text1 + left 6px + top 15px diff --git a/src/components/button/index.js b/src/components/button/index.js new file mode 100644 index 0000000..225b2c0 --- /dev/null +++ b/src/components/button/index.js @@ -0,0 +1,9 @@ +import React, { Component } from 'react'; +import { translate } from 'react-i18next'; +import style from './theme.styl'; + +export default (props) => ( +
+ {props.text} +
+) diff --git a/src/components/button/theme.styl b/src/components/button/theme.styl new file mode 100644 index 0000000..c5d7a52 --- /dev/null +++ b/src/components/button/theme.styl @@ -0,0 +1,9 @@ +.button + font-family: $TitleFont + background: $MainColor + color: $Pure_White + text-transform: uppercase + display: inline-block + padding: 5px 10px + border-radius: 4px + cursor: pointer diff --git a/src/row/index.js b/src/components/row/index.js similarity index 100% rename from src/row/index.js rename to src/components/row/index.js diff --git a/src/row/theme.styl b/src/components/row/theme.styl similarity index 79% rename from src/row/theme.styl rename to src/components/row/theme.styl index 6ffad8d..1838022 100644 --- a/src/row/theme.styl +++ b/src/components/row/theme.styl @@ -6,7 +6,7 @@ border-bottom 1px solid rgba(225,225,225,0.15) padding 35px 20px transition: all 0.3s ease - transition-property: transform, opacity; + transition-property: background, transform, opacity; background-color: $BgColor1 &.advanced overflow: hidden @@ -50,7 +50,7 @@ input[type=text], input[type=number], input[type=password] - padding: 5px 10px + padding: 7px 10px border-radius 5px color #FFF outline 0 @@ -62,17 +62,3 @@ background $InputBg -webkit-box-shadow: inset 0px 0px 1px 0px rgba(0,0,0,0.85) transition background .2s ease - - - input[type=text] - &.dir-path - width: 225px - - .btn - font-family: $TitleFont - background: $MainColor - color: $Pure_White - text-transform: uppercase - i - margin: 0 5px 0 0 - font-size: 18px diff --git a/src/switch/index.js b/src/components/switch/index.js similarity index 87% rename from src/switch/index.js rename to src/components/switch/index.js index a4a430e..c3dd79b 100644 --- a/src/switch/index.js +++ b/src/components/switch/index.js @@ -1,6 +1,6 @@ import React, { Component } from 'react'; import { translate } from 'react-i18next'; -import style from './styl/theme.styl'; +import style from './theme.styl'; export default (props) => (