From 63b6f37e3f191d7c0f986f406209d344945b28f9 Mon Sep 17 00:00:00 2001 From: ZeeshanTamboli Date: Sat, 19 Jan 2019 11:56:05 +0530 Subject: [PATCH 1/4] Finished UI --- app/components/Contact/contact.scss | 80 +++++++++++++++ app/components/Contact/index.js | 29 ++++++ app/containers/App/index.js | 2 + app/global-styles.scss | 44 ++++++++- package-lock.json | 147 ++++------------------------ 5 files changed, 171 insertions(+), 131 deletions(-) create mode 100644 app/components/Contact/contact.scss create mode 100644 app/components/Contact/index.js diff --git a/app/components/Contact/contact.scss b/app/components/Contact/contact.scss new file mode 100644 index 0000000..ca188b4 --- /dev/null +++ b/app/components/Contact/contact.scss @@ -0,0 +1,80 @@ +.c-contact { + text-align: center; + form { + max-width: 400px; + margin: 40px auto; + } + h1 { + font-size: 2.4rem; + line-height: 1; + } + input, + textarea { + font-size: 16px; + } + textarea { + height: 125px; + padding: 0.7em; + max-width: 100%; + display: block; + box-sizing: border-box; + width: 100%; + padding: 0.5rem; + border: 1px solid #dee0e9; + margin: 0 0 1rem; + font-family: inherit; + font-size: 1rem; + color: #3a405b; + background-color: #fff; + box-shadow: none; + border-radius: 2px; + transition: box-shadow 0.5s, border-color 0.25s ease-in-out; + -webkit-appearance: none; + -moz-appearance: none; + } + input[type='text'], + [type='email'] { + height: 2.9rem; + padding: 0.7em; + display: block; + box-sizing: border-box; + width: 100%; + height: 2.4375rem; + padding: 0.5rem; + border: 1px solid #dee0e9; + margin: 0 0 1rem; + font-family: inherit; + font-size: 1rem; + color: #3a405b; + background-color: #fff; + box-shadow: none; + border-radius: 2px; + transition: box-shadow 0.5s, border-color 0.25s ease-in-out; + -webkit-appearance: none; + -moz-appearance: none; + } + + .button--block { + width: 100%; + } + .button--success { + background: #4be1ab; + color: #fff; + } + + .button { + font-weight: 600; + display: inline-block; + text-align: center; + line-height: 1; + cursor: pointer; + -webkit-appearance: none; + transition: background-color 0.25s ease-out, color 0.25s ease-out; + vertical-align: middle; + border: 1px solid transparent; + border-radius: 4px; + padding: 0.75em 1em; + margin: 0; + font-size: 1.1rem; + } +} diff --git a/app/components/Contact/index.js b/app/components/Contact/index.js new file mode 100644 index 0000000..7a97a42 --- /dev/null +++ b/app/components/Contact/index.js @@ -0,0 +1,29 @@ +import React from 'react'; +import './contact.scss'; + +const Contact = () => ( +
+

Get in touch

+

We'll love to hear from you!

+
+ + +