From da1b9f624c7af6ba304e77ffa52faf2162479e2b Mon Sep 17 00:00:00 2001 From: Lukas Geiger Date: Wed, 11 Oct 2017 22:09:04 -0500 Subject: [PATCH] Use prettier --- components/content-section/content-section.js | 96 +++++----- .../content-section/content-section.scss | 43 ++--- components/download-buttons.js | 65 +++---- components/footer/footer.js | 96 +++++----- components/footer/footer.scss | 16 +- components/head/head.js | 20 +- components/header/header.js | 148 ++++++++------- components/header/header.scss | 53 +++--- components/kernels/kernel-page.js | 2 +- components/kernels/kernel.js | 60 +++--- components/kernels/node.js | 54 +++--- components/kernels/page-header.js | 6 +- components/kernels/python.js | 58 +++--- components/layout/layout.js | 36 ++-- components/layout/layout.scss | 59 +++--- components/navigation/navigation-left.js | 4 +- components/navigation/navigation-right.js | 8 +- components/navigation/navigation.scss | 1 - components/page-header/page-header.js | 44 ++--- components/page-header/page-header.scss | 51 ++--- next.config.js | 68 +++---- package.json | 10 +- pages/_error.js | 5 +- pages/about.js | 29 ++- pages/atom.js | 55 +++--- pages/desktop.js | 12 +- pages/index.js | 48 +++-- pages/kernels/index.js | 96 +++++----- pages/kernels/node.js | 97 +++++----- pages/kernels/python.js | 96 +++++----- pages/kernels/r.js | 97 +++++----- postcss.config.js | 12 +- styles/common.scss | 10 +- styles/partials/abstract/abstract.scss | 4 +- styles/partials/abstract/colors.scss | 10 +- styles/partials/abstract/effects.scss | 1 - styles/partials/abstract/mixins.scss | 100 ++++++---- styles/partials/abstract/normalize.scss | 176 +++++++++++++++++- styles/partials/abstract/variables.scss | 26 +-- styles/partials/elements/buttons.scss | 44 ++--- styles/partials/typography.scss | 6 +- 41 files changed, 1036 insertions(+), 886 deletions(-) diff --git a/components/content-section/content-section.js b/components/content-section/content-section.js index 023cbcd7..ad730bee 100644 --- a/components/content-section/content-section.js +++ b/components/content-section/content-section.js @@ -3,58 +3,58 @@ import styles from "./content-section.scss"; import inView from "in-view"; export class ContentSectionPane extends React.Component { - - - render() { - - let classes = ''; - if('full' in this.props){ - classes += ' content-section-pane-full'; - } - if(this.props.className){ - classes += ' ' + this.props.className; - } - return (
- {this.props.children} -
); + render() { + let classes = ""; + if ("full" in this.props) { + classes += " content-section-pane-full"; } + if (this.props.className) { + classes += " " + this.props.className; + } + return ( +
+ {this.props.children} +
+ ); + } } export class ContentSection extends React.Component { - constructor(props) { - super(props); - } - - componentDidMount() { - inView.offset(50); - inView(".inview").on("enter", el => { - if (!el.classList.contains("showing")) { - el.classList.add("showing"); - } - }); - - inView('.inview').check(); + constructor(props) { + super(props); + } + + componentDidMount() { + inView.offset(50); + inView(".inview").on("enter", el => { + if (!el.classList.contains("showing")) { + el.classList.add("showing"); + } + }); + + inView(".inview").check(); + } + + render() { + let classes = ""; + + if ("full" in this.props) { + classes += " content-section-full"; } - - render() { - - let classes = ''; - - if('full' in this.props){ - classes += ' content-section-full'; - } - if(this.props.className){ - classes += ' ' + this.props.className; - } - return ( -
-
@@ -68,42 +66,37 @@ export const DownloadFeaturette = ({ platform }: DownloadFeaturetteProps) => {
-
- Download for other platforms - -
+
Download for other platforms
- {platform !== "Windows" - ? - - - : null} - {platform !== "macOS" - ? - {" "} - - : null} - {platform !== "Linux" - ? - {" "} - - : null} - + {platform !== "Windows" ? ( + + + + ) : null} + {platform !== "macOS" ? ( + + {" "} + + + ) : null} + {platform !== "Linux" ? ( + + {" "} + + + ) : null}
); diff --git a/components/footer/footer.js b/components/footer/footer.js index e9b92a8e..e2c9d11e 100644 --- a/components/footer/footer.js +++ b/components/footer/footer.js @@ -1,55 +1,53 @@ -import React from 'react' -import styles from './footer.scss' -import NavigationLeft from '../navigation/navigation-left' -import NavigationRight from '../navigation/navigation-right' -import SocialButtons from '../navigation/social-buttons' - +import React from "react"; +import styles from "./footer.scss"; +import NavigationLeft from "../navigation/navigation-left"; +import NavigationRight from "../navigation/navigation-right"; +import SocialButtons from "../navigation/social-buttons"; class Footer extends React.Component { + constructor(props) { + super(props); + } - - constructor(props) { - super(props); - } - - render() { - return ( -
-