Skip to content

Commit 11e6d62

Browse files
author
Steve Green
authored
Merge pull request #13 from watson-developer-cloud/terms-of-use
feat(Terms of Use): add terms of use to the application
2 parents 88867e8 + 9305989 commit 11e6d62

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

src/components/SelectionSidebar/SelectionSidebar.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import PropTypes from 'prop-types';
33
import DemoButton from '../DemoButton/DemoButton';
44
import PathSelectionOverlay from '../PathSelectionOverlay/PathSelectionOverlay';
55

6+
const TERMS_OF_USE_URL = 'https://watson-developer-cloud.github.io/terms?name=Watson%20Assistant%20Demo';
67
class SelectionSidebar extends React.Component {
78
constructor(props) {
89
super(props);
@@ -56,6 +57,12 @@ class SelectionSidebar extends React.Component {
5657
/>
5758
<p className="ibm-type-a">See all features</p>
5859
</div>
60+
<div className="path-selection__terms-of-use">
61+
By using this application, you agree to the&nbsp;
62+
<a target="_blank" rel="noreferrer noopener" href={TERMS_OF_USE_URL}>
63+
Terms of Use
64+
</a>
65+
</div>
5966
<PathSelectionOverlay
6067
isOverlayVisible={this.state.isOverlayVisible}
6168
onEnter={() => { this.onEnter(); }}

src/components/SelectionSidebar/SelectionSidebar.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,12 @@
4545
background: $duo-blue-60;
4646
}
4747
}
48+
.path-selection__terms-of-use {
49+
padding-top: 8px;
50+
51+
a {
52+
color: $duo-blue-60;
53+
}
54+
}
4855
}
4956
}

0 commit comments

Comments
 (0)