diff --git a/config.toml b/config.toml index 91cf26117..c63b3f4cd 100644 --- a/config.toml +++ b/config.toml @@ -38,29 +38,49 @@ relativeURLs = false weight = 2 [[menu.main]] parent = "covidcast" - name = "Map" + name = "Map Overview" url = "/covidcast" weight = 1 +[[menu.main]] + parent = "covidcast" + name = "Timelapse" + url = "/covidcast/timelapse" + weight = 2 +[[menu.main]] + parent = "covidcast" + name = "Top 10" + url = "/covidcast/top10" + weight = 3 +[[menu.main]] + parent = "covidcast" + name = "Single Region" + url = "/covidcast/single" + weight = 4 [[menu.main]] parent = "covidcast" name = "Surveys" url = "/covidcast/surveys" - weight = 2 + weight = 5 [[menu.main]] parent = "covidcast" name = "Survey Results" url = "/covidcast/survey-results" - weight = 3 + weight = 6 +[[menu.main]] + parent = "covidcast" + name = "Export Data" + url = "/covidcast/export" + weight = 7 [[menu.main]] parent = "covidcast" name = "Release Log" url = "/covidcast/release-log" - weight = 4 + weight = 8 [[menu.main]] parent = "covidcast" name = "Terms Of Use" url = "/covidcast/terms-of-use" - weight = 5 + weight = 9 [[menu.main]] identifier = "flu" name = "Flu and Other Diseases" diff --git a/content/covidcast/_index.md b/content/covidcast/_index.md index c3c2d7e58..20a090b1f 100644 --- a/content/covidcast/_index.md +++ b/content/covidcast/_index.md @@ -1,6 +1,10 @@ --- title: COVIDcast -layout: covidcast_app description: COVIDcast tracks and forecasts the spread of COVID-19. By Carnegie Mellon's Delphi Research Group. +layout: covidcast_app +app_mode: overview +order: 1 +modeTitle: Map Overview +icon: solid/map heroImage: /images/landing-page/hero-images/covidcast_withfill.jpg --- diff --git a/content/covidcast/export.md b/content/covidcast/export.md index db607385d..5be2cc2bc 100644 --- a/content/covidcast/export.md +++ b/content/covidcast/export.md @@ -3,5 +3,8 @@ title: COVIDCast Export Data linkTitle: Export Data description: Use COVIDcast data in your own analysis layout: covidcast_app +app_mode: export +order: 6 +icon: solid/download heroImage: /images/landing-page/hero-images/covidcast_withfill.jpg --- diff --git a/content/covidcast/single.md b/content/covidcast/single.md index 23ad81bb1..5f1ae272a 100644 --- a/content/covidcast/single.md +++ b/content/covidcast/single.md @@ -3,5 +3,8 @@ title: COVIDCast Region Details linkTitle: Region Details description: COVIDcast tracks and forecasts the spread of COVID-19. By Carnegie Mellon's Delphi Research Group. layout: covidcast_app +app_mode: single +order: 4 +icon: location-solid heroImage: /images/landing-page/hero-images/covidcast_withfill.jpg --- diff --git a/content/covidcast/survey-results.md b/content/covidcast/survey-results.md index b0f78bc9c..79d6d4a27 100644 --- a/content/covidcast/survey-results.md +++ b/content/covidcast/survey-results.md @@ -4,5 +4,8 @@ linkTitle: Survey Results description: | In collaboration with Facebook Data for Good, along with a consortium of universities and public health officials, the Delphi Group at Carnegie Mellon University conducts research surveys to monitor the spread and impact of the COVID-19 pandemic in the United States. This survey is advertised through Facebook. It has run continuously since early April 2020. layout: covidcast_app +app_mode: survey-results +order: 5 +icon: solid/poll heroImage: /images/landing-page/hero-images/covidcast_survey.jpg --- diff --git a/content/covidcast/timelapse.md b/content/covidcast/timelapse.md index 8710382d4..eeeb3e3b8 100644 --- a/content/covidcast/timelapse.md +++ b/content/covidcast/timelapse.md @@ -3,5 +3,8 @@ title: COVIDCast Timelapse linkTitle: Timelapse description: COVIDcast tracks and forecasts the spread of COVID-19. By Carnegie Mellon's Delphi Research Group. layout: covidcast_app +app_mode: timelapse +order: 2 +icon: solid/clock heroImage: /images/landing-page/hero-images/covidcast_withfill.jpg --- diff --git a/content/covidcast/top10.md b/content/covidcast/top10.md index 881909044..89b37babe 100644 --- a/content/covidcast/top10.md +++ b/content/covidcast/top10.md @@ -3,5 +3,8 @@ title: COVIDCast Top 10 linkTitle: Top 10 description: COVIDcast tracks and forecasts the spread of COVID-19. By Carnegie Mellon's Delphi Research Group. layout: covidcast_app +app_mode: top10 +order: 3 +icon: solid/list heroImage: /images/landing-page/hero-images/covidcast_withfill.jpg --- diff --git a/package-lock.json b/package-lock.json index 952dc3d5e..1d7086cb0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4267,8 +4267,8 @@ "dev": true }, "www-covidcast": { - "version": "https://github.com/cmu-delphi/www-covidcast/releases/download/v1.12.0/www-covidcast-1.12.0.tgz", - "integrity": "sha512-kqfEGujNz+lMat4GKSVBB015GiKWrEnqx1qVu1PxMWnSTaJo3vox+KX9fFP00wnTpSM/uCF2/f7AzRxGtBtdog==", + "version": "github:cmu-delphi/www-covidcast#e7f0a2c6041859683649124152bf7a17654419cb", + "from": "github:cmu-delphi/www-covidcast#e7f0a2c6041859683649124152bf7a17654419cb", "requires": { "uikit": "^3.5.10" }, diff --git a/package.json b/package.json index 291ba6877..bed3708b6 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "highlight.js": "^10.4.1", "katex": "^0.12.0", "uikit": "^3.5.9", - "www-covidcast": "https://github.com/cmu-delphi/www-covidcast/releases/download/v1.12.0/www-covidcast-1.12.0.tgz" + "www-covidcast": "github:cmu-delphi/www-covidcast#e7f0a2c6041859683649124152bf7a17654419cb" }, "devDependencies": { "cpx": "^1.5.0", diff --git a/themes/delphi/assets/location-solid.svg b/themes/delphi/assets/location-solid.svg new file mode 100644 index 000000000..e8f31f53c --- /dev/null +++ b/themes/delphi/assets/location-solid.svg @@ -0,0 +1,4 @@ + diff --git a/themes/delphi/layouts/_default/baseof.html b/themes/delphi/layouts/_default/baseof.html index f2389b0a8..f70a407fa 100644 --- a/themes/delphi/layouts/_default/baseof.html +++ b/themes/delphi/layouts/_default/baseof.html @@ -8,7 +8,7 @@
{{ partial "nav.html" . }} - {{ block "breadcrumb" . }}{{ partial "menu/breadcrumb.html" . }}{{ end }} + {{ partial "menu/breadcrumb.html" . }} {{ block "main" . }} {{ end }} {{ partial "footer.html" . }} {{ partial "scripts.html" . }} diff --git a/themes/delphi/layouts/_default/covidcast_app.html b/themes/delphi/layouts/_default/covidcast_app.html index 1e4cbfd4b..a11b96586 100644 --- a/themes/delphi/layouts/_default/covidcast_app.html +++ b/themes/delphi/layouts/_default/covidcast_app.html @@ -7,9 +7,9 @@ {{ end }} -{{ define "breadcrumb" }}{{ end }} {{ define "body_class" }}covidcast_wrapper{{ end }} {{ define "main" }} + {{ partial "covidcast/modes.html" . }}