From db92644624be760f071f015f34594ba2f2a38f56 Mon Sep 17 00:00:00 2001 From: Sam Ludford Date: Thu, 16 May 2019 10:38:46 +0100 Subject: [PATCH] template cover with updated example.config.js --- .gitignore | 3 - example.config.js | 45 +- package-lock.json | 12040 ++++++++++++++++ package.json | 1 + src/components/InfoPopup.jsx | 68 +- src/components/Layout.js | 6 +- src/components/Map.jsx | 8 +- src/components/Overlay/Content.js | 3 +- src/components/Overlay/Media.js | 21 +- .../presentational/Card/Location.js | 3 +- src/components/presentational/Map/Events.jsx | 4 +- .../presentational/covers/TemplateCover.js | 115 + src/js/data/copy.json | 10 +- src/js/utilities.js | 15 + src/reducers/schema/eventSchema.js | 1 + src/scss/_colors.scss | 1 + src/scss/cover.scss | 208 +- src/scss/infopopup.scss | 23 +- src/scss/map.scss | 13 +- src/scss/overlay.scss | 37 +- src/store/initial.js | 6 +- yarn.lock | 311 +- 22 files changed, 12866 insertions(+), 76 deletions(-) create mode 100644 package-lock.json create mode 100644 src/components/presentational/covers/TemplateCover.js diff --git a/.gitignore b/.gitignore index 1297619..8c9ce65 100644 --- a/.gitignore +++ b/.gitignore @@ -3,9 +3,6 @@ build/ node_modules/ config.js dev.config.js -# ignore all covers but the default -src/components/presentational/covers/ -!src/src/components/presentational/covers/Default.js src/\.DS_Store diff --git a/example.config.js b/example.config.js index f3c5eb0..d9d2b68 100644 --- a/example.config.js +++ b/example.config.js @@ -9,18 +9,42 @@ module.exports = { SITES_EXT: '/api/example/export_sites/rows', SHAPES_EXT: '/api/example/export_shapes/columns', INCOMING_DATETIME_FORMAT: '%m/%d/%YT%H:%M', - // MAPBOX_TOKEN: 'pk.EXAMPLE_MAPBOX_TOKEN', + MAPBOX_TOKEN: 'pk.EXAMPLE_MAPBOX_TOKEN', features: { USE_COVER: false, USE_TAGS: false, USE_SEARCH: false, USE_SITES: true, USE_SOURCES: true, - USE_SHAPES: false, + USE_SHAPES: true, CATEGORIES_AS_TAGS: true }, store: { app: { + cover: { + title: 'project title', //required + subtitle: 'project subtitle', //required + description: 'A description of the project goes here.\n\nLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.\n\nThis description may contain markdown.\n\n#### markdown\n\n### markdown\n\n## markdown', //required + // subsubtitle: '', + // bgVideo:'', + // howToVideo: { + // title: '', + // desc: 'This step-by-step guide explores the way that the platform arranges and presents information.', + // file: '', + // poster: '' + // }, + // - up to 4 additional videos can be included - + // videos: [ + // { + // title: '