diff --git a/src/assets/images/hub-preview-white.png b/src/assets/images/hub-preview-white.png new file mode 100755 index 0000000000000000000000000000000000000000..dd83924b037ec54eafc7ca63a14557ed4b44c473 Binary files /dev/null and b/src/assets/images/hub-preview-white.png differ diff --git a/src/assets/stylesheets/scene-ui.scss b/src/assets/stylesheets/scene-ui.scss index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..ca26c5abbe559f832b19b465aa81a95721a77bb4 100644 --- a/src/assets/stylesheets/scene-ui.scss +++ b/src/assets/stylesheets/scene-ui.scss @@ -0,0 +1,55 @@ +@import 'shared'; + +:local(.ui) { + @extend %default-font; + + width: 100%; + height: 100%; + top: 0; + left: 0; + position: absolute; + pointer-events: none; + color: white; + background-color: rgba(255, 255, 255, 0.2); +} + +:local(.grid) { + display: grid; + grid-template-columns: 1fr 20px minmax(200px, 400px) 20px 1fr; + grid-template-rows: 1fr 3fr 1fr; + width: 100%; + height: 100%; +} + +:local(.mainPanel) { + grid-column: 3; + grid-row: 2; + position: relative; + display: flex; + flex-direction: column; + justify-content: center; + pointer-events: auto; + + button { + @extend %action-button; + border: 0; + } +} + +:local(.logoTagline) { + color: black; + text-shadow: 0px 0px 20px #cccccc; + font-weight: bold; + text-align: center; + font-size: 1.2em; + margin-bottom: 32px; +} + +:local(.logo) { + width: 100%; + display: block; + + img { + width: 100%; + } +} diff --git a/src/assets/translations.data.json b/src/assets/translations.data.json index e3fe060ac208cb8ea4159235758664033228f299..07dafe537e591c02f725f9019c306957a858840e 100644 --- a/src/assets/translations.data.json +++ b/src/assets/translations.data.json @@ -78,6 +78,7 @@ "link.dont_have_a_code": "Don't have a code?", "link.create_a_room": "Create a Room", "link.try_again": "We couldn't find that code. Please try again.", - "help.report_issue": "Report an Issue" + "help.report_issue": "Report an Issue", + "scene.logo_tagline": "A new way to get together" } } diff --git a/src/react-components/scene-ui.js b/src/react-components/scene-ui.js index 77437eb982235f84b144f04440a1a2056a9d0ecc..d4b68bc0741b1ed206e61e13eac15dcda9936495 100644 --- a/src/react-components/scene-ui.js +++ b/src/react-components/scene-ui.js @@ -1,9 +1,10 @@ import React, { Component } from "react"; import PropTypes from "prop-types"; //import classNames from "classnames"; -import { IntlProvider, /*FormattedMessage, */ addLocaleData } from "react-intl"; +import { IntlProvider, FormattedMessage, addLocaleData } from "react-intl"; import en from "react-intl/locale-data/en"; import styles from "../assets/stylesheets/scene-ui.scss"; +import hubLogo from "../assets/images/hub-preview-white.png"; import { lang, messages } from "../utils/i18n"; @@ -53,7 +54,24 @@ class SceneUI extends Component { return ( <IntlProvider locale={lang} messages={messages}> - <div className={styles.ui}>hello</div> + <div className={styles.ui}> + <div className={styles.grid}> + <div className={styles.mainPanel}> + <a href="/" className={styles.logo}> + <img src={hubLogo} /> + </a> + <div className={styles.logoTagline}> + <FormattedMessage id="scene.logo_tagline" /> + </div> + <button>create a room with this scene</button> + </div> + </div> + <div className={styles.info}> + <div className={styles.name}>{this.props.sceneName}</div> + <div className={styles.name}>{this.props.sceneAttribution}</div> + </div> + <div className={styles.description}>{this.props.sceneDescription}</div> + </div> </IntlProvider> ); }