Skip to content

Commit

Permalink
Merge pull request #13 from watson-developer-cloud/terms-of-use
Browse files Browse the repository at this point in the history
feat(Terms of Use): add terms of use to the application
  • Loading branch information
Steve Green authored May 21, 2019
2 parents 88867e8 + 9305989 commit 11e6d62
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/components/SelectionSidebar/SelectionSidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import PropTypes from 'prop-types';
import DemoButton from '../DemoButton/DemoButton';
import PathSelectionOverlay from '../PathSelectionOverlay/PathSelectionOverlay';

const TERMS_OF_USE_URL = 'https://watson-developer-cloud.github.io/terms?name=Watson%20Assistant%20Demo';
class SelectionSidebar extends React.Component {
constructor(props) {
super(props);
Expand Down Expand Up @@ -56,6 +57,12 @@ class SelectionSidebar extends React.Component {
/>
<p className="ibm-type-a">See all features</p>
</div>
<div className="path-selection__terms-of-use">
By using this application, you agree to the&nbsp;
<a target="_blank" rel="noreferrer noopener" href={TERMS_OF_USE_URL}>
Terms of Use
</a>
</div>
<PathSelectionOverlay
isOverlayVisible={this.state.isOverlayVisible}
onEnter={() => { this.onEnter(); }}
Expand Down
7 changes: 7 additions & 0 deletions src/components/SelectionSidebar/SelectionSidebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,12 @@
background: $duo-blue-60;
}
}
.path-selection__terms-of-use {
padding-top: 8px;

a {
color: $duo-blue-60;
}
}
}
}

0 comments on commit 11e6d62

Please sign in to comment.