summaryrefslogtreecommitdiff
path: root/web-ui/src/common
diff options
context:
space:
mode:
authorAnike Arni <aarni@thoughtworks.com>2017-02-08 17:46:11 -0200
committerAnike Arni <aarni@thoughtworks.com>2017-02-08 17:46:44 -0200
commita76b524c147c79fefa7943230a33e7904af3c070 (patch)
tree4c38ed8a0d7c1654d3b9c93bbe0cae5b9459d849 /web-ui/src/common
parentb9d0bea9e6688abfbbc919f90009f59ed153e7fb (diff)
[#922] Creates header
with @tayanefernandes
Diffstat (limited to 'web-ui/src/common')
-rw-r--r--web-ui/src/common/header/header.js37
-rw-r--r--web-ui/src/common/header/header.scss54
2 files changed, 91 insertions, 0 deletions
diff --git a/web-ui/src/common/header/header.js b/web-ui/src/common/header/header.js
new file mode 100644
index 00000000..b32988c6
--- /dev/null
+++ b/web-ui/src/common/header/header.js
@@ -0,0 +1,37 @@
+/*
+ * Copyright (c) 2017 ThoughtWorks, Inc.
+ *
+ * Pixelated is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Pixelated is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with Pixelated. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+import React from 'react';
+import { translate } from 'react-i18next';
+import './header.scss';
+
+export const Header = ({ t }) => (
+ <header className='header-wrapper'>
+ <div className='header-content'>
+ <img className='header-logo' src='/startup-assets/pixelated-logo-orange.svg' alt='Pixelated' />
+ </div>
+ <div className='header-icons'>
+ <a href='/'><i className='fa fa-sign-out' aria-hidden='true'></i></a>
+ </div>
+ </header>
+);
+
+Header.propTypes = {
+ t: React.PropTypes.func.isRequired
+};
+
+export default translate('', { wait: true })(Header);
diff --git a/web-ui/src/common/header/header.scss b/web-ui/src/common/header/header.scss
new file mode 100644
index 00000000..d7472677
--- /dev/null
+++ b/web-ui/src/common/header/header.scss
@@ -0,0 +1,54 @@
+/*
+ * Copyright (c) 2017 ThoughtWorks, Inc.
+ *
+ * Pixelated is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Pixelated is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with Pixelated. If not, see <http://www.gnu.org/licenses/>.
+ */
+@import "~scss/base/colors";
+
+.header-wrapper {
+ display: flex;
+ justify-content: center;
+ align-items: center;
+
+ background: $white;
+ box-shadow: 0 2px 3px 0 $shadow;
+ padding: 5px 0;
+}
+
+.header-content {
+ display: flex;
+ align-items: center;
+}
+
+.header-logo {
+ width: 120px;
+}
+
+.header-icons {
+ display: flex;
+ align-items: center;
+
+ position: absolute;
+ right: 6%;
+
+ .fa {
+ font-size: 1.3em;
+ color: $medium_light_grey;
+ }
+}
+
+
+@media only screen and (min-width : 500px) {
+
+}