diff --git a/imports/ui/components/ComingSoon.js b/imports/ui/components/ComingSoon.js deleted file mode 100644 index 69a4c40..0000000 --- a/imports/ui/components/ComingSoon.js +++ /dev/null @@ -1,8 +0,0 @@ -import React from "react"; -import { comingSoonStyle } from "../styles"; - -const ComingSoon = () => ( -
Coming Soon
-); - -export default ComingSoon; diff --git a/imports/ui/components/Preview.js b/imports/ui/components/Preview.js index 5309d02..21a8b1e 100644 --- a/imports/ui/components/Preview.js +++ b/imports/ui/components/Preview.js @@ -1,13 +1,14 @@ import React from "react"; -import { - appLinksHeaderStyle, - appLinksButtonsStyle, -} from "../styles"; +import { appLinksButtonsStyle } from "../styles"; import LinkButton from "./LinkButton"; const Preview = () => ( -
-
Early Version Preview...
+
diff --git a/imports/ui/components/tests/ComingSoon.jest.js b/imports/ui/components/tests/ComingSoon.jest.js deleted file mode 100644 index f1022ff..0000000 --- a/imports/ui/components/tests/ComingSoon.jest.js +++ /dev/null @@ -1,24 +0,0 @@ -/* eslint-env jest */ -/* eslint-disable func-names, prefer-arrow-callback, no-unused-expressions */ -/* eslint-disable import/no-extraneous-dependencies */ - -import React from "react"; -import renderer from "react-test-renderer"; -import ComingSoon from "../ComingSoon"; -import { - formattedJSON, - getAllComponentStyle, -} from "../../../utils/tests/testUtils"; -import * as styles from "../../../ui/styles"; - -describe("", function () { - it("matches render snapshot", function () { - const tree = renderer.create().toJSON(); - expect(tree).toMatchSnapshot(); - }); - - it("matches style / css snapshot", function () { - const allStyle = getAllComponentStyle(, styles); - expect(formattedJSON(allStyle)).toMatchSnapshot(); - }); -}); diff --git a/imports/ui/components/tests/__snapshots__/ComingSoon.jest.js.snap b/imports/ui/components/tests/__snapshots__/ComingSoon.jest.js.snap deleted file mode 100644 index 8991b04..0000000 --- a/imports/ui/components/tests/__snapshots__/ComingSoon.jest.js.snap +++ /dev/null @@ -1,30 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[` matches render snapshot 1`] = ` -
- Coming Soon -
-`; - -exports[` matches style / css snapshot 1`] = ` -"[ - { - \\"rules\\": { - \\"fontFamily\\": \\"Montserrat\\", - \\"paddingTop\\": \\"30px\\", - \\"fontSize\\": \\"20px\\", - \\"fontWeight\\": \\"bold\\", - \\"textAlign\\": \\"center\\", - \\"color\\": \\"white\\", - \\"paddingBottom\\": \\"30px\\", - \\"borderBottom\\": \\"1px solid rgba(255,255,255,0.6)\\", - \\"display\\": \\"block\\", - \\"width\\": \\"226px\\", - \\"margin\\": \\"0 auto\\" - }, - \\"className\\": \\"css-cdesk3\\" - } -]" -`; diff --git a/imports/ui/components/tests/__snapshots__/Preview.jest.js.snap b/imports/ui/components/tests/__snapshots__/Preview.jest.js.snap index 4498bc2..9fce75e 100644 --- a/imports/ui/components/tests/__snapshots__/Preview.jest.js.snap +++ b/imports/ui/components/tests/__snapshots__/Preview.jest.js.snap @@ -1,12 +1,14 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[` matches render snapshot 1`] = ` -
-
- Early Version Preview... -
+
@@ -28,15 +30,6 @@ exports[` matches render snapshot 1`] = ` exports[` matches style / css snapshot 1`] = ` "[ - { - \\"rules\\": { - \\"marginTop\\": \\"90px\\", - \\"marginLeft\\": \\"40px\\", - \\"fontSize\\": \\"16px\\", - \\"color\\": \\"white\\" - }, - \\"className\\": \\"css-m58pgh\\" - }, { \\"rules\\": { \\"marginTop\\": \\"14px\\", diff --git a/imports/ui/pages/SplashPage.js b/imports/ui/pages/SplashPage.js index 2153d3e..c4837f0 100644 --- a/imports/ui/pages/SplashPage.js +++ b/imports/ui/pages/SplashPage.js @@ -1,7 +1,6 @@ import React from "react"; import CompanyName from "../components/CompanyName"; import Pitch from "../components/Pitch"; -import ComingSoon from "../components/ComingSoon"; import Logo from "../components/Logo"; import Preview from "../components/Preview"; @@ -9,7 +8,6 @@ const SplashPage = () => (
-
diff --git a/imports/ui/pages/tests/SplashPage.jest.js b/imports/ui/pages/tests/SplashPage.jest.js index e66fd19..35d2ea2 100644 --- a/imports/ui/pages/tests/SplashPage.jest.js +++ b/imports/ui/pages/tests/SplashPage.jest.js @@ -1,17 +1,11 @@ /* eslint-env jest */ /* eslint-disable func-names, prefer-arrow-callback, no-unused-expressions */ /* eslint-disable import/no-extraneous-dependencies */ - import React from "react"; -import { - shallow, -} from "enzyme"; +import { shallow } from "enzyme"; import renderer from "react-test-renderer"; import SplashPage from "../SplashPage"; -import { - formattedJSON, - getAllComponentStyle, -} from "../../../utils/tests/testUtils"; +import { formattedJSON, getAllComponentStyle } from "../../../utils/tests/testUtils"; import * as styles from "../../../ui/styles"; describe("", function () { @@ -25,11 +19,10 @@ describe("", function () { expect(formattedJSON(allStyle)).toMatchSnapshot(); }); - it("contains sections company name, pitch, coming soon, logo, preview ", function () { + it("contains sections company name, pitch, logo, preview ", function () { const wrapper = shallow(); expect(wrapper.find("CompanyName").length).toEqual(1); expect(wrapper.find("Pitch").length).toEqual(1); - expect(wrapper.find("ComingSoon").length).toEqual(1); expect(wrapper.find("Logo").length).toEqual(1); }); }); diff --git a/imports/ui/pages/tests/__snapshots__/SplashPage.jest.js.snap b/imports/ui/pages/tests/__snapshots__/SplashPage.jest.js.snap index 787b7b7..7d3e700 100644 --- a/imports/ui/pages/tests/__snapshots__/SplashPage.jest.js.snap +++ b/imports/ui/pages/tests/__snapshots__/SplashPage.jest.js.snap @@ -10,20 +10,17 @@ exports[` matches render snapshot 1`] = ` > A platform to find, share, and discuss healthy places to shop and eat.
-
- Coming Soon -
-
-
- Early Version Preview... -
+
@@ -71,22 +68,6 @@ exports[` matches style / css snapshot 1`] = ` }, \\"className\\": \\"css-1dl4n80\\" }, - { - \\"rules\\": { - \\"fontFamily\\": \\"Montserrat\\", - \\"paddingTop\\": \\"30px\\", - \\"fontSize\\": \\"20px\\", - \\"fontWeight\\": \\"bold\\", - \\"textAlign\\": \\"center\\", - \\"color\\": \\"white\\", - \\"paddingBottom\\": \\"30px\\", - \\"borderBottom\\": \\"1px solid rgba(255,255,255,0.6)\\", - \\"display\\": \\"block\\", - \\"width\\": \\"226px\\", - \\"margin\\": \\"0 auto\\" - }, - \\"className\\": \\"css-cdesk3\\" - }, { \\"rules\\": { \\"backgroundImage\\": \\"url('/images/ios-icon.png')\\", @@ -97,15 +78,6 @@ exports[` matches style / css snapshot 1`] = ` }, \\"className\\": \\"css-o94tcm\\" }, - { - \\"rules\\": { - \\"marginTop\\": \\"90px\\", - \\"marginLeft\\": \\"40px\\", - \\"fontSize\\": \\"16px\\", - \\"color\\": \\"white\\" - }, - \\"className\\": \\"css-m58pgh\\" - }, { \\"rules\\": { \\"marginTop\\": \\"14px\\", diff --git a/imports/ui/pages/tests/__stories__/PageSections.stories.js b/imports/ui/pages/tests/__stories__/PageSections.stories.js index f6b6e13..2820fff 100644 --- a/imports/ui/pages/tests/__stories__/PageSections.stories.js +++ b/imports/ui/pages/tests/__stories__/PageSections.stories.js @@ -1,18 +1,13 @@ /* eslint-disable import/no-extraneous-dependencies */ - import React from "react"; -import { - storiesOf, -} from "@storybook/react"; +import { storiesOf } from "@storybook/react"; import CompanyName from "../../../components/CompanyName"; import Pitch from "../../../components/Pitch"; -import ComingSoon from "../../../components/ComingSoon"; import Logo from "../../../components/Logo"; import Preview from "../../../components/Preview"; storiesOf("Page Sections", module) - .add("CompanyName", () => ()) - .add("Pitch", () => ()) - .add("ComingSoon", () => ()) - .add("Logo", () => ()) - .add("Preview", () => ()); + .add("CompanyName", () => ) + .add("Pitch", () => ) + .add("Logo", () => ) + .add("Preview", () => ); diff --git a/imports/ui/styles.js b/imports/ui/styles.js index 31c1c06..5a7dbcf 100644 --- a/imports/ui/styles.js +++ b/imports/ui/styles.js @@ -22,7 +22,8 @@ const gradientBackgroundRules = { "linear-gradient(135deg, #048ec5 0%,#2ecc71 100%) fixed", ], /* IE6-9 fallback on horizontal gradient */ - filter: "progid:DXImageTransform.Microsoft.gradient( startColorstr='#048ec5', endColorstr='#2ecc71',GradientType=1 )", + filter: + "progid:DXImageTransform.Microsoft.gradient( startColorstr='#048ec5', endColorstr='#2ecc71',GradientType=1 )", }; const defaultPageRules = { @@ -64,24 +65,6 @@ export const pitchStyle = { className: `${css(pitchRules)}`, }; -const comingSoonRules = { - fontFamily: "Montserrat", - paddingTop: "30px", - fontSize: "20px", - fontWeight: "bold", - textAlign: "center", - color: "white", - paddingBottom: "30px", - borderBottom: "1px solid rgba(255,255,255,0.6)", - display: "block", - width: "226px", - margin: "0 auto", -}; -export const comingSoonStyle = { - rules: comingSoonRules, - className: `${css(comingSoonRules)}`, -}; - const logoRules = { backgroundImage: "url('/images/ios-icon.png')", backgroundSize: "100%", @@ -94,17 +77,6 @@ export const logoStyle = { className: `${css(logoRules)}`, }; -const appLinksHeaderRules = { - marginTop: "90px", - marginLeft: "40px", - fontSize: "16px", - color: "white", -}; -export const appLinksHeaderStyle = { - rules: appLinksHeaderRules, - className: `${css(appLinksHeaderRules)}`, -}; - const appLinksButtonsRules = { marginTop: "14px", marginBottom: "20px",