Skip to content

feat: integrations tab #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions src/components/Integrations/Integrations.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import React from 'react';
import { Container } from 'react-bootstrap';

const Integrations = () => (
<Container>
<div className="how-it-works-wrapper">
<h4>Slack</h4>
<p className="section-indent-twenty">
<a href="https://slack.com/oauth/v2/authorize?scope=incoming-webhook,commands,chat:write&client_id=20294060338.1195848918178">
<img
alt="Add to Slack"
height={40}
width={139}
src="https://platform.slack-edge.com/img/add_to_slack.png"
srcSet="https://platform.slack-edge.com/img/add_to_slack.png 1x, https://platform.slack-edge.com/img/[email protected] 2x"
/>
</a>
</p>
<hr />
<p>To suggest or contribute other integrations please open an {" "}
<a href="https://github.com/cipherbin/cipher-bin-client/issues">
issue on cipherbin
</a> github.
</p>
</div>
</Container>
);

export default Integrations;
18 changes: 18 additions & 0 deletions src/components/NavigationBar/NavigationBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,15 @@ class NavigationBar extends Component {
>
How it Works
</div>
<div
tabIndex="-1"
onClick={() => this.handleClick('/integrations')}
onKeyPress={() => this.handleClick('/integrations')}
role="button"
className="links"
>
Integrations
</div>
<div
tabIndex="-1"
onClick={() => this.handleClick('/faqs')}
Expand Down Expand Up @@ -129,6 +138,15 @@ class NavigationBar extends Component {
>
How it works
</div>
<div
tabIndex="-1"
onClick={() => this.handleClick('/integrations')}
onKeyPress={() => this.handleClick('/integrations')}
role="button"
className="hamburger-links"
>
Integrations
</div>
<div
tabIndex="-1"
onClick={() => this.handleClick('/faqs')}
Expand Down
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import NavigationBar from './components/NavigationBar/NavigationBar';
import CipherBinRead from './components/CipherBinRead/CipherBinRead';
import Cli from './components/Cli/Cli';
import FourOhFour from './components/FourOhFour/FourOhFour';
import Integrations from './components/Integrations/Integrations';
import HowItWorks from './components/HowItWorks/HowItWorks';
import Footer from './components/Footer/Footer';
import FAQs from './components/FAQs/FAQs';
Expand All @@ -25,6 +26,7 @@ ReactDOM.render(
<Route path="/msg" component={CipherBinRead} exact />
<Route path="/cli" component={Cli} exact />
<Route path="/how-it-works" component={HowItWorks} exact />
<Route path="/integrations" component={Integrations} exact />
<Route path="/faqs" component={FAQs} exact />
<Route component={FourOhFour} />
</Switch>
Expand Down