diff --git a/src/components/ProductsLogos/FeedbackLoopLogo/index.js b/src/components/ProductsLogos/FeedbackLoopLogo/index.js new file mode 100644 index 0000000..32a3a2c --- /dev/null +++ b/src/components/ProductsLogos/FeedbackLoopLogo/index.js @@ -0,0 +1,33 @@ +import React from "react"; +import { S3_FOLDER } from "../../../utils/constants"; +import ProductLogo from "./../../ProductLogo"; + +const FeedbackLoopLogo = props => { + const FeedbackLoopVerticalColored = `${S3_FOLDER}/products-logos/FeedbackLoop_vertical_colored.svg`; + const FeedbackLoopHorizontalColored = `${S3_FOLDER}/products-logos/FeedbackLoop_horizontal_colored.svg`; + const FeedbackLoopHorizontalWhite = `${S3_FOLDER}/products-logos/FeedbackLoop_horizontal_white.svg`; + const FeedbackLoopVerticalWhite = `${S3_FOLDER}/products-logos/FeedbackLoop_vertical_white.svg`; + if (!props.white && props.variant == "horizontal") { + return ; + } + + if (props.white && props.variant == "horizontal") { + return ; + } + + if (!props.white && props.variant == "vertical") { + return ; + } + + if (props.white && props.variant == "vertical") { + return ; + } +}; + +FeedbackLoopLogo.defaultProps = { + white: false, + variant: "horizontal", + alt: "FeedbackLoop Logo", +}; + +export default FeedbackLoopLogo; diff --git a/src/components/ProductsLogos/FeedbackLoopLogo/index.stories.js b/src/components/ProductsLogos/FeedbackLoopLogo/index.stories.js new file mode 100644 index 0000000..2858f25 --- /dev/null +++ b/src/components/ProductsLogos/FeedbackLoopLogo/index.stories.js @@ -0,0 +1,19 @@ +import React, { Fragment } from "react"; +import { storiesOf } from "@storybook/react"; +import FeedbackLoopLogo from "./index"; + +const stories = storiesOf("Branding|Logos.FeedbackLoop logo", FeedbackLoopLogo); +const storyStyle = { + width: 200, +}; + +stories.add("Horizontal colored", () => ); +stories.add("Horizontal white", () => ( + +)); +stories.add("Vertical colored", () => ( + +)); +stories.add("Vertical white", () => ( + +)); diff --git a/src/index.js b/src/index.js index 5ddc530..4b61033 100644 --- a/src/index.js +++ b/src/index.js @@ -8,6 +8,7 @@ import HelpAvatarComponent from "./components/HelpAvatar"; import HesabuLogoComponent from "./components/ProductsLogos/HesabuLogo"; import HorizontalBulletListComponent from "./components/HorizontalBulletList"; import IasoLogoComponent from "./components/ProductsLogos/IasoLogo"; +import FeedbackLoopLogoComponent from "./components/ProductsLogos/FeedbackLoopLogo"; import InfoBoxComponent from "./components/InfoBox"; import KeyNumberBlockComponent from "./components/KeyNumberBlock"; import ProgressButtonComponent from "./components/ProgressButton"; @@ -24,6 +25,7 @@ export const HelpAvatar = HelpAvatarComponent; export const HesabuLogo = HesabuLogoComponent; export const HorizontalBulletList = HorizontalBulletListComponent; export const IasoLogo = IasoLogoComponent; +export const FeedbackLoopLogo = FeedbackLoopLogoComponent export const InfoBox = InfoBoxComponent; export const KeyNumberBlock = KeyNumberBlockComponent; export const ProgressButton = ProgressButtonComponent;