From 86bfc93e52adc19e719e1a7b5ca563638913af35 Mon Sep 17 00:00:00 2001 From: raphael hyde Date: Fri, 11 Dec 2020 11:53:39 -0800 Subject: [PATCH 1/6] location-solild_icon --- themes/delphi/assets/location-solid.svg | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 themes/delphi/assets/location-solid.svg 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 @@ + + + + From a4f2aeedf7ce3af0bc207b785f2f1b469c7bfe28 Mon Sep 17 00:00:00 2001 From: Samuel Gratzl Date: Mon, 28 Dec 2020 13:31:28 -0500 Subject: [PATCH 2/6] refactor: website mode menu --- content/covidcast/_index.md | 6 +++++- content/covidcast/export.md | 3 +++ content/covidcast/single.md | 3 +++ content/covidcast/survey-results.md | 3 +++ content/covidcast/timelapse.md | 3 +++ content/covidcast/top10.md | 3 +++ themes/delphi/layouts/_default/baseof.html | 2 +- themes/delphi/layouts/_default/covidcast_app.html | 2 +- .../layouts/partials/covidcast/get-modes.html | 5 +++++ .../delphi/layouts/partials/covidcast/modes.html | 15 +++++++++++++++ themes/delphi/layouts/partials/font-awesome.html | 9 ++++++++- 11 files changed, 50 insertions(+), 4 deletions(-) create mode 100644 themes/delphi/layouts/partials/covidcast/get-modes.html create mode 100644 themes/delphi/layouts/partials/covidcast/modes.html diff --git a/content/covidcast/_index.md b/content/covidcast/_index.md index b3dffc6cc..653b02f38 100644 --- a/content/covidcast/_index.md +++ b/content/covidcast/_index.md @@ -1,5 +1,9 @@ --- 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 --- diff --git a/content/covidcast/export.md b/content/covidcast/export.md index c46ba78d1..cd8fb04c5 100644 --- a/content/covidcast/export.md +++ b/content/covidcast/export.md @@ -3,4 +3,7 @@ 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 --- diff --git a/content/covidcast/single.md b/content/covidcast/single.md index bd92dbcfb..03b6e525e 100644 --- a/content/covidcast/single.md +++ b/content/covidcast/single.md @@ -3,4 +3,7 @@ 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 --- diff --git a/content/covidcast/survey-results.md b/content/covidcast/survey-results.md index 84c2c1840..3474a1ccb 100644 --- a/content/covidcast/survey-results.md +++ b/content/covidcast/survey-results.md @@ -4,4 +4,7 @@ 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 --- diff --git a/content/covidcast/timelapse.md b/content/covidcast/timelapse.md index e63535034..ce2af8b26 100644 --- a/content/covidcast/timelapse.md +++ b/content/covidcast/timelapse.md @@ -2,4 +2,7 @@ title: COVIDCast Timelapse linkTitle: Timelapse layout: covidcast_app +app_mode: timelapse +order: 2 +icon: solid/clock --- diff --git a/content/covidcast/top10.md b/content/covidcast/top10.md index e94682409..515946dee 100644 --- a/content/covidcast/top10.md +++ b/content/covidcast/top10.md @@ -2,4 +2,7 @@ title: COVIDCast Top 10 linkTitle: Top 10 layout: covidcast_app +app_mode: top10 +order: 3 +icon: solid/list --- 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..bebdcceb4 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" . }}