UNPKG

@hackoregon/component-library

Version:

Official repo for Hack Oregon React component library

50 lines (41 loc) 1.76 kB
function _templateObject2() { var data = _taggedTemplateLiteral(["\n font-size: 50px;\n line-height: 1.2;\n font-weight: 300;\n font-family: \"Rubik\", sans-serif;\n margin-bottom: 12px;\n @media (max-width: 640px) {\n font-size: 36px;\n }\n"]); _templateObject2 = function _templateObject2() { return data; }; return data; } function _templateObject() { var data = _taggedTemplateLiteral(["\n display: block;\n font-size: 13px;\n font-family: \"Rubik\", sans-serif;\n text-transform: uppercase;\n letter-spacing: 3px;\n"]); _templateObject = function _templateObject() { return data; }; return data; } function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); } import React from "react"; import PropTypes from "prop-types"; import { css } from "emotion"; import Hero from "./Hero"; var teamTitleStyle = css(_templateObject()); var titleStyle = css(_templateObject2()); var CollectionHero = function CollectionHero(_ref) { var heroTitle = _ref.heroTitle, heroSubtitle = _ref.heroSubtitle, mainProjectColor = _ref.mainProjectColor, teamTitle = _ref.teamTitle; return React.createElement(Hero, { mainProjectColor: mainProjectColor }, React.createElement("div", null, React.createElement("span", { className: teamTitleStyle }, teamTitle), React.createElement("h1", { className: titleStyle }, heroTitle), React.createElement("h2", null, heroSubtitle))); }; CollectionHero.propTypes = { teamTitle: PropTypes.string, heroTitle: PropTypes.string, heroSubtitle: PropTypes.string, mainProjectColor: PropTypes.string }; export default CollectionHero;