From a76b524c147c79fefa7943230a33e7904af3c070 Mon Sep 17 00:00:00 2001 From: Anike Arni Date: Wed, 8 Feb 2017 17:46:11 -0200 Subject: [#922] Creates header with @tayanefernandes --- web-ui/src/common/header/header.js | 37 ++++++++++++++++++++++++ web-ui/src/common/header/header.scss | 54 ++++++++++++++++++++++++++++++++++++ 2 files changed, 91 insertions(+) create mode 100644 web-ui/src/common/header/header.js create mode 100644 web-ui/src/common/header/header.scss (limited to 'web-ui/src/common') 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 . + */ + +import React from 'react'; +import { translate } from 'react-i18next'; +import './header.scss'; + +export const Header = ({ t }) => ( +
+
+ Pixelated +
+
+ +
+
+); + +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 . + */ +@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) { + +} -- cgit v1.2.3