diff --git a/packages/core/src/components/persea/index.scss b/packages/core/src/components/persea/index.scss index b310798..9ce19f3 100644 --- a/packages/core/src/components/persea/index.scss +++ b/packages/core/src/components/persea/index.scss @@ -75,6 +75,7 @@ h6 { html { background-color: #212121; color: #FFFFFF; + --color-active: #{$color-active}; --message-font-family: verdana, arial, helvetica, sans-serif; --title-font-family: LatoLight, Ubuntu, "Droid Sans", sans-serif; --thick-title-font-family: LatoRegular, Ubuntu, "Droid Sans", sans-serif; diff --git a/packages/core/src/components/persea/login/index.jsx b/packages/core/src/components/persea/login/index.jsx new file mode 100644 index 0000000..6c0872c --- /dev/null +++ b/packages/core/src/components/persea/login/index.jsx @@ -0,0 +1,24 @@ +import {React} from '@flecks/react'; +import {UserLocalLogin} from '@flecks/user/local/client'; + +import styles from './index.module.scss'; + +function Login() { + return ( +
+
+

Sign in

+

You must sign in to continue

+
+ +
+ ); +} + +Login.defaultProps = {}; + +Login.displayName = 'Login'; + +Login.propTypes = {}; + +export default Login; diff --git a/packages/core/src/components/persea/login/index.module.scss b/packages/core/src/components/persea/login/index.module.scss new file mode 100644 index 0000000..6c34019 --- /dev/null +++ b/packages/core/src/components/persea/login/index.module.scss @@ -0,0 +1,66 @@ +.login { + margin: auto; + max-width: 60%; + padding-top: 5%; + + > div { + text-align: center; + padding-bottom: 2em; + + h2 { + padding-bottom: 1em; + } + } + + form { + background-color: #272727; + border: 1px solid #555; + border-radius: 10px; + padding: 0.75rem 0.5rem; + + input { + border-radius: 5px; + } + + input[type="submit"] { + background-color: var(--color-active); + font-size: 1em; + } + + label { + background-color: transparent; + } + + label > span { + margin-bottom: 1em; + } + + div { + align-items: center; + display: flex; + justify-content: space-between; + + [type="checkbox"] { + margin-right: 0.5em; + position: relative; + top: -2px; + vertical-align: bottom; + } + + label { + display: block; + flex-direction: row; + + input, span { + margin: 0; + } + } + + a { + padding: 1em 1em 1em 0; + text-decoration: none; + white-space: nowrap; + } + } + } +} \ No newline at end of file