FinalScreen.jsx 807 B

123456789101112131415161718
  1. import { h, render } from 'preact'; // eslint-disable-line no-unused-vars
  2. // displays outro text and a link to restart the module
  3. const FinalScreen = props => ( // eslint-disable-line no-unused-vars
  4. <section class="wrapper">
  5. <header className="header">
  6. <div className="number--square number--square--huge"><span>{props.number}</span></div>
  7. <h1 className="header__title">{props.title}</h1>
  8. </header>
  9. <main className="intro">{props.outrotext.split('\n').map(item => <span>{item}<br /></span>)}</main>
  10. <footer className="footer footer--titlescreen">
  11. { !props.isFetching ? <a href="#" title={props.restart} className="button--wide" onClick={() => props.navigate('titlescreen')}>
  12. {props.restart}</a> : [] }
  13. </footer>
  14. </section>
  15. );
  16. export default FinalScreen;