GSS-Cogs / dd-cms

A data-driven content management system prototype, based on Plone/Volto and data blocks
1 stars 0 forks source link

Initial site content from package #230

Closed ajtucker closed 2 years ago

ajtucker commented 2 years ago

Acceptance: alpha-v2 site can be deployed with the front page object with the right view and the articles listing page with the right view already set up, as well as site titles, workflow, etc. with the rest of the site otherwise bare.

ajtucker commented 2 years ago

See https://climate-change-2.vercel.app/

ajtucker commented 2 years ago

I've created https://github.com/GSS-Cogs/ukstats.cc-v2.theme using mrbob -O . bobtemplates.plone:addon.

nosnickid commented 2 years ago

The CSVs used to populate the charts in climate-1 are just 'misc' CSVs, probably generated by just finding the query from the svelte climate-change and running it:

Annual mean temperature (°C) for the UK, 1884 to 2020 mean_temp_wTrends.csv

Mean annual rainfall (mm) UK, 1862 to 2020 Rain_mean_uk.csv

Annual mean temperature (°C) for the UK, England, Scotland, Wales and Northern Ireland, 1884 to 2020 mean_temp_countries.csv

ajtucker commented 2 years ago

After a bit of poking around, looking into the newer plone.volto package, realising that we still need to use kitconcept.volto, and then trying to understand how the various setup handlers work with the plonesite buildout recipe, we've come to the following conclusions:

{
  "1c396c10-f67e-40ba-8b63-9b8ef3cdb72d": {
    "@type": "heroHeader",
    "summary": "The UK is required to report its estimated greenhouse gas (GHG) emissions on a range of different bases to fulfil a wide range of international agreements as well as for domestic policy making purposes.",
    "title": "Measuring greenhouse gas emissions"
  },
  "bde9cf7e-9761-4cfe-8972-d13de956063e": {
    "@type": "slate",
    "plaintext": "",
    "value": [
      {
        "children": [
          {
            "text": ""
          }
        ],
        "type": "p"
      }
    ]
  },
  "e03c688a-6e8e-4405-8e60-2c89780274a5": {
    "@type": "title"
  },
  "5e32f9d6-9647-4b6d-a866-b03aa9ec5b26": {
    "@type": "columnsBlock",
    "data": {
      "blocks": {
        "0d982eaa-0c91-4447-b61b-a1e4ee20e9c2": {
          "blocks": {
            "0e5927c5-2e92-48cf-8fb5-573da68d4511": {
              "@type": "dashboardTile",
              "topic": "Climate and weather",
              "title": "Annual mean temperature (°C) for the UK"
            },
            "ebcd7f8b-1ec5-4423-885e-e1824c28ec3c": {
              "@type": "slate"
            }
          },
          "blocks_layout": {
            "items": [
              "0e5927c5-2e92-48cf-8fb5-573da68d4511",
              "ebcd7f8b-1ec5-4423-885e-e1824c28ec3c"
            ]
          }
        },
        "0e3ef5e8-3806-4217-b539-cc71482effce": {
          "blocks": {
            "b6b5ff1f-96cf-44ae-a9dc-e3d6e9341450": {
              "@type": "dashboardTile",
              "topic": "Emissions",
              "title": "Greenhouse gas emissions (Mt CO2e)"
            },
            "688fd38c-8228-4be4-a27f-4f8c48078155": {
              "@type": "slate"
            }
          },
          "blocks_layout": {
            "items": [
              "b6b5ff1f-96cf-44ae-a9dc-e3d6e9341450",
              "688fd38c-8228-4be4-a27f-4f8c48078155"
            ]
          }
        },
        "4cb32900-e164-4e7c-a0f7-46e03a86cc9e": {
          "blocks": {
            "d974efdc-e9ae-4c89-a5ee-217886bc91a2": {
              "@type": "dashboardTile",
              "topic": "Drivers",
              "title": "Fossil fuel energy use (Mtoe) for the four highest sectors in the UK"
            },
            "2d1d85d9-2432-414b-9ebc-41c4d0885712": {
              "@type": "slate"
            }
          },
          "blocks_layout": {
            "items": [
              "d974efdc-e9ae-4c89-a5ee-217886bc91a2",
              "2d1d85d9-2432-414b-9ebc-41c4d0885712"
            ]
          }
        }
      },
      "blocks_layout": {
        "items": [
          "0d982eaa-0c91-4447-b61b-a1e4ee20e9c2",
          "0e3ef5e8-3806-4217-b539-cc71482effce",
          "4cb32900-e164-4e7c-a0f7-46e03a86cc9e"
        ]
      }
    },
    "gridSize": 12,
    "gridCols": [
      "oneThird",
      "oneThird",
      "oneThird"
    ]
  },
  "874c31fc-01b9-4d19-8ceb-66e93686ed24": {
    "@type": "columnsBlock",
    "data": {
      "blocks": {
        "088756e2-a183-4ea7-866f-35fffcf3a453": {
          "blocks": {
            "9b1ac3c4-5a7a-4e04-a772-96ea053e8562": {
              "@type": "dashboardTile",
              "topic": "Impacts",
              "title": "Ecological status of surface waters in England, 2019"
            },
            "74559b24-2586-4682-b5d0-972b8ae43719": {
              "@type": "slate"
            }
          },
          "blocks_layout": {
            "items": [
              "9b1ac3c4-5a7a-4e04-a772-96ea053e8562",
              "74559b24-2586-4682-b5d0-972b8ae43719"
            ]
          }
        },
        "bee4bcab-ac18-4af0-ae8c-5f13270a441d": {
          "blocks": {
            "b32a4481-1694-4202-9a75-1b68d13f7dab": {
              "@type": "dashboardTile",
              "topic": "Mitigation",
              "title": "Renewable energy share in total energy consumption, UK, 2020"
            },
            "c49a4c55-e28f-469f-b0b5-cf0e11e3c208": {
              "@type": "slate"
            }
          },
          "blocks_layout": {
            "items": [
              "b32a4481-1694-4202-9a75-1b68d13f7dab",
              "c49a4c55-e28f-469f-b0b5-cf0e11e3c208"
            ]
          }
        },
        "6a8f62cd-d6d2-4277-bfed-c35e04a81137": {
          "blocks": {
            "93a12089-b230-4d41-b911-415f03a00ee1": {
              "@type": "dashboardTile",
              "topic": "Adaptation",
              "title": "New planting of UK woodlands, thousand hectares"
            },
            "d6b358d4-6c7c-4851-9c94-7949d8575956": {
              "@type": "slate"
            }
          },
          "blocks_layout": {
            "items": [
              "93a12089-b230-4d41-b911-415f03a00ee1",
              "d6b358d4-6c7c-4851-9c94-7949d8575956"
            ]
          }
        }
      },
      "blocks_layout": {
        "items": [
          "088756e2-a183-4ea7-866f-35fffcf3a453",
          "bee4bcab-ac18-4af0-ae8c-5f13270a441d",
          "6a8f62cd-d6d2-4277-bfed-c35e04a81137"
        ]
      }
    },
    "gridSize": 12,
    "gridCols": [
      "oneThird",
      "oneThird",
      "oneThird"
    ]
  }
}