diff --git a/public/images/pitch.png b/public/images/pitch.png new file mode 100644 index 00000000..8d35f2c2 Binary files /dev/null and b/public/images/pitch.png differ diff --git a/shared/embeds/Pitch.js b/shared/embeds/Pitch.js new file mode 100644 index 00000000..7109bea1 --- /dev/null +++ b/shared/embeds/Pitch.js @@ -0,0 +1,31 @@ +// @flow +import * as React from "react"; +import Frame from "./components/Frame"; + +const URL_REGEX = new RegExp( + "^https?://app.pitch.com/app/(?:presentation/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|public/player)/(.*)$" +); + +type Props = {| + attrs: {| + href: string, + matches: any, + |}, +|}; + +export default class Pitch extends React.Component { + static ENABLED = [URL_REGEX]; + + render() { + const shareId = this.props.attrs.matches[1]; + + return ( + + ); + } +} diff --git a/shared/embeds/index.js b/shared/embeds/index.js index 8c90415c..1f23bc59 100644 --- a/shared/embeds/index.js +++ b/shared/embeds/index.js @@ -26,6 +26,7 @@ import Marvel from "./Marvel"; import Mindmeister from "./Mindmeister"; import Miro from "./Miro"; import ModeAnalytics from "./ModeAnalytics"; +import Pitch from "./Pitch"; import Prezi from "./Prezi"; import Spotify from "./Spotify"; import Trello from "./Trello"; @@ -232,6 +233,14 @@ export default [ component: ModeAnalytics, matcher: matcher(ModeAnalytics), }, + { + title: "Pitch", + keywords: "presentation", + defaultHidden: true, + icon: () => , + component: Pitch, + matcher: matcher(Pitch), + }, { title: "Prezi", keywords: "presentation",