From 3d72afb4da2d0e9d88b07c49cccc3251569b63c4 Mon Sep 17 00:00:00 2001 From: OlivierJM Date: Sat, 19 Sep 2020 22:34:28 +0200 Subject: [PATCH 1/2] remove slider on landing page --- .gitignore | 1 + config.json | 6 +++--- imports/ui/components/Home.jsx | 10 +--------- package-lock.json | 18 +++++++++--------- 4 files changed, 14 insertions(+), 21 deletions(-) diff --git a/.gitignore b/.gitignore index 2297dc16..7323c696 100644 --- a/.gitignore +++ b/.gitignore @@ -76,3 +76,4 @@ settings.json # config.json .deploy/ .vscode/ +config.json \ No newline at end of file diff --git a/config.json b/config.json index fa498fbb..908f89ff 100644 --- a/config.json +++ b/config.json @@ -1,7 +1,7 @@ { - "name": "SparkEd Institute", - "tag": "Education", - "isUserAuth": true, + "name": "Inspired", + "tag": "To Inspire", + "isUserAuth": false, "isHighSchool": false, "isConfigured": true, "server": "http://localhost:3000" diff --git a/imports/ui/components/Home.jsx b/imports/ui/components/Home.jsx index 7ac5f7c7..f0cbb2c5 100755 --- a/imports/ui/components/Home.jsx +++ b/imports/ui/components/Home.jsx @@ -8,11 +8,9 @@ import { _Courses } from '../../api/courses/courses'; import { _Units } from '../../api/units/units'; import Courses from './content/Courses.jsx'; import { FloatingButton } from './Utilities/Utilities.jsx'; -import ImgSlider from "../components/layouts/ImageSlider"; // eslint-disable-line import * as Config from '../../../config.json'; import { Loader } from "./Loader"; // eslint-disable-line import ErrorBoundary from "./ErrorBoundary"; // eslint-disable-line -import { ThemeContext } from "../containers/AppWrapper"; // eslint-disable-line export class Home extends PureComponent { componentDidMount() { @@ -24,14 +22,13 @@ export class Home extends PureComponent { } renderCourses() { - let index = 0; const { courses } = this.props; if (!courses) { return No Courses ; } else if (courses.length === 0) { return

There is no content as yet

; } - return courses.map(cours => ); + return courses.map(cours => ); } render() { @@ -39,10 +36,7 @@ export class Home extends PureComponent { return ( - - {({ state }) => ( -
@@ -67,8 +61,6 @@ export class Home extends PureComponent {
- )} - ); } diff --git a/package-lock.json b/package-lock.json index 707e7c90..7bc05a8c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4172,9 +4172,9 @@ } }, "lodash": { - "version": "4.17.15", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", - "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==", + "version": "4.17.20", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.20.tgz", + "integrity": "sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA==", "dev": true }, "strip-ansi": { @@ -5202,9 +5202,9 @@ "dev": true }, "lodash": { - "version": "4.17.15", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", - "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==", + "version": "4.17.20", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.20.tgz", + "integrity": "sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA==", "dev": true }, "strip-ansi": { @@ -8261,9 +8261,9 @@ }, "dependencies": { "lodash": { - "version": "4.17.15", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", - "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==", + "version": "4.17.20", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.20.tgz", + "integrity": "sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA==", "dev": true } } From 59948d36211ff4d3afdddd31165aeb626aea2189 Mon Sep 17 00:00:00 2001 From: OlivierJM Date: Sat, 19 Sep 2020 23:16:04 +0200 Subject: [PATCH 2/2] refactor and clean up landing --- imports/ui/components/Home.jsx | 13 +++---- imports/ui/components/Search/SearchPage.jsx | 2 +- imports/ui/components/Search/searchpage.css | 8 ++--- imports/ui/components/Utilities/Utilities.jsx | 34 ++++++++----------- 4 files changed, 23 insertions(+), 34 deletions(-) diff --git a/imports/ui/components/Home.jsx b/imports/ui/components/Home.jsx index f0cbb2c5..29d54223 100755 --- a/imports/ui/components/Home.jsx +++ b/imports/ui/components/Home.jsx @@ -32,18 +32,15 @@ export class Home extends PureComponent { } render() { - const { courseReady } = this.props; - + const { courseReady, courses } = this.props; return ( -
+
-
+