Skip to content
This repository was archived by the owner on Jun 10, 2019. It is now read-only.

Commit d5d23bf

Browse files
authored
Merge branch 'master' into issue#135
2 parents 1bfadcf + 755756e commit d5d23bf

6 files changed

Lines changed: 77 additions & 0 deletions

File tree

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ WORKDIR /usr/src/app
99

1010
# Install app dependencies
1111
COPY package.json /usr/src/app/
12+
COPY yarn.lock /usr/src/app/
1213
RUN yarn install --no-progress
1314

1415
# Bundle app source

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"font-awesome": "^4.7.0",
1111
"history": "^4.6.1",
1212
"lodash": "^4.17.4",
13+
"postscribe": "^2.0.8",
1314
"prop-types": "^15.5.8",
1415
"react": "^15.5.4",
1516
"react-dom": "^15.5.4",

src/scenes/home/gala/gala.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
.container {
2+
width:80%;
3+
}
4+
5+
#tt-widget {
6+
width: 100%;
7+
}
8+
9+
.header {
10+
text-align: center;
11+
padding-bottom: 20px;
12+
}

src/scenes/home/gala/gala.js

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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&#39;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;

src/scenes/home/home.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import SquadsTable from './squads/squadsTable/squadsTable';
1212
import Dashboard from './dashboard/dashboard';
1313
import MentorsTable from './mentor/mentorsTable/mentorsTable';
1414
import Thanks from './thanks/thanks';
15+
import Gala from './gala/gala';
1516
import FinancialStatements from './about/financialStatements/financialStatements';
1617
import styles from './home.css';
1718
import Header from './header/header';
@@ -147,6 +148,12 @@ class Home extends Component {
147148
<SquadsTable {...authProps} />
148149
)}
149150
/>
151+
<Route
152+
path="/gala"
153+
render={() => (
154+
<Gala {...authProps} />
155+
)}
156+
/>
150157
<Route exact path="/about/financial-statements" component={FinancialStatements} />
151158
</div>
152159
<Footer />

yarn.lock

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5412,6 +5412,12 @@ postcss@^6.0.1, postcss@^6.x:
54125412
source-map "^0.5.6"
54135413
supports-color "^3.2.3"
54145414

5415+
postscribe@^2.0.8:
5416+
version "2.0.8"
5417+
resolved "https://registry.yarnpkg.com/postscribe/-/postscribe-2.0.8.tgz#5b7a53aad4b690b6c2f75818fcefe74490f410d5"
5418+
dependencies:
5419+
prescribe ">=1.1.2"
5420+
54155421
prelude-ls@~1.1.2:
54165422
version "1.1.2"
54175423
resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54"
@@ -5420,6 +5426,10 @@ prepend-http@^1.0.0, prepend-http@^1.0.1:
54205426
version "1.0.4"
54215427
resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-1.0.4.tgz#d4f4562b0ce3696e41ac52d0e002e57a635dc6dc"
54225428

5429+
prescribe@>=1.1.2:
5430+
version "1.1.3"
5431+
resolved "https://registry.yarnpkg.com/prescribe/-/prescribe-1.1.3.tgz#8d3122445f3fbaf4c4c5817ea527a17fc8139ee6"
5432+
54235433
preserve@^0.2.0:
54245434
version "0.2.0"
54255435
resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b"

0 commit comments

Comments
 (0)