|
| 1 | +import React, { Component } from 'react'; |
| 2 | +import Section from 'shared/components/section/section'; |
| 3 | +import postscribe from 'postscribe'; |
| 4 | + |
| 5 | +import styles from './gala.css'; |
| 6 | + |
| 7 | +class Gala extends Component { |
| 8 | + |
| 9 | + componentDidMount() { |
| 10 | + const script = document.createElement('script'); |
| 11 | + |
| 12 | + script.src = 'https://dc161a0a89fedd6639c9-03787a0970cd749432e2a6d3b34c55df.ssl.cf3.rackcdn.com/tt-widget.js'; |
| 13 | + script.async = true; |
| 14 | + script.setAttribute('data-url', 'https://www.tickettailor.com/new-order/99297/d163/ref/website_widget/'); |
| 15 | + script.setAttribute('data-type', 'inline'); |
| 16 | + script.setAttribute('data-inline-minimal', 'true'); |
| 17 | + script.setAttribute('data-inline-show-logo', 'false'); |
| 18 | + script.setAttribute('data-inline-bg-fill', 'true'); |
| 19 | + |
| 20 | + postscribe('#tt-widget', script.outerHTML); |
| 21 | + } |
| 22 | + |
| 23 | + render() { |
| 24 | + return ( |
| 25 | + <Section title="Operation Code Gala"> |
| 26 | + <div className={styles.header}> |
| 27 | + <h3>Nov 10, 2017</h3> |
| 28 | + <h3>Governor's Ballroom, Sentinel Hotel</h3> |
| 29 | + <h3>Portland, Oregon</h3> |
| 30 | + </div> |
| 31 | + <div className={styles.container}> |
| 32 | + <div id="tt-widget"> |
| 33 | + <div className="tt-widget-fallback"> |
| 34 | + <p> |
| 35 | + <a href="https://www.tickettailor.com/new-order/99297/d163/ref/website_widget/" target="_blank" rel="noopener noreferrer">Click here to buy tickets</a><br /> |
| 36 | + <small><a href="http://www.tickettailor.com?rf=wdg" className="tt-widget-powered">Sell tickets online with Ticket Tailor</a></small> |
| 37 | + </p> |
| 38 | + </div> |
| 39 | + </div> |
| 40 | + </div> |
| 41 | + </Section> |
| 42 | + ); |
| 43 | + } |
| 44 | +} |
| 45 | + |
| 46 | +export default Gala; |
0 commit comments