Update URLs and Slugs to match category titles
This commit is contained in:
parent
5297f153e1
commit
3332395351
@ -30,18 +30,18 @@ const LogoGrid: React.FunctionComponent = () => (
|
|||||||
<div className="grid">
|
<div className="grid">
|
||||||
<div className="row">
|
<div className="row">
|
||||||
<div className="cell background-location"></div>
|
<div className="cell background-location"></div>
|
||||||
<div className="cell background-use"></div>
|
<div className="cell background-land-use"></div>
|
||||||
<div className="cell background-type"></div>
|
<div className="cell background-typology"></div>
|
||||||
<div className="cell background-age"></div>
|
<div className="cell background-age"></div>
|
||||||
</div>
|
</div>
|
||||||
<div className="row">
|
<div className="row">
|
||||||
<div className="cell background-size"></div>
|
<div className="cell background-size"></div>
|
||||||
<div className="cell background-construction"></div>
|
<div className="cell background-construction"></div>
|
||||||
<div className="cell background-streetscape"></div>
|
<div className="cell background-street-context"></div>
|
||||||
<div className="cell background-team"></div>
|
<div className="cell background-team"></div>
|
||||||
</div>
|
</div>
|
||||||
<div className="row">
|
<div className="row">
|
||||||
<div className="cell background-sustainability"></div>
|
<div className="cell background-energy-performance"></div>
|
||||||
<div className="cell background-planning"></div>
|
<div className="cell background-planning"></div>
|
||||||
<div className="cell background-resilience"></div>
|
<div className="cell background-resilience"></div>
|
||||||
<div className="cell background-community"></div>
|
<div className="cell background-community"></div>
|
||||||
|
@ -4,15 +4,15 @@
|
|||||||
*/
|
*/
|
||||||
export enum Category {
|
export enum Category {
|
||||||
Location = 'location',
|
Location = 'location',
|
||||||
LandUse = 'use',
|
LandUse = 'land-use',
|
||||||
Type = 'type',
|
Typology = 'typology',
|
||||||
Age = 'age',
|
|
||||||
Size = 'size',
|
Size = 'size',
|
||||||
Construction = 'construction',
|
Construction = 'construction',
|
||||||
Streetscape = 'streetscape',
|
Age = 'age',
|
||||||
|
StreetContext = 'street-context',
|
||||||
Team = 'team',
|
Team = 'team',
|
||||||
Planning = 'planning',
|
Planning = 'planning',
|
||||||
Sustainability = 'sustainability',
|
EnergyPerformance = 'energy-performance',
|
||||||
Resilience = 'resilience',
|
Resilience = 'resilience',
|
||||||
Community = 'community',
|
Community = 'community',
|
||||||
}
|
}
|
||||||
@ -25,14 +25,14 @@ export enum Category {
|
|||||||
export const categoriesOrder: Category[] = [
|
export const categoriesOrder: Category[] = [
|
||||||
Category.Location,
|
Category.Location,
|
||||||
Category.LandUse,
|
Category.LandUse,
|
||||||
Category.Type,
|
Category.Typology,
|
||||||
Category.Size,
|
Category.Size,
|
||||||
Category.Construction,
|
Category.Construction,
|
||||||
Category.Age,
|
Category.Age,
|
||||||
Category.Streetscape,
|
Category.StreetContext,
|
||||||
Category.Team,
|
Category.Team,
|
||||||
Category.Planning,
|
Category.Planning,
|
||||||
Category.Sustainability,
|
Category.EnergyPerformance,
|
||||||
Category.Resilience,
|
Category.Resilience,
|
||||||
Category.Community,
|
Category.Community,
|
||||||
];
|
];
|
||||||
@ -88,27 +88,27 @@ export const categoriesConfig: {[key in Category]: CategoryDefinition} = {
|
|||||||
aboutUrl: 'https://pages.colouring.london/planning',
|
aboutUrl: 'https://pages.colouring.london/planning',
|
||||||
intro: 'This section provides open data on current and anticipated planning applications for buildings, planning zones and whether the building is protected.',
|
intro: 'This section provides open data on current and anticipated planning applications for buildings, planning zones and whether the building is protected.',
|
||||||
},
|
},
|
||||||
[Category.Sustainability]: {
|
[Category.EnergyPerformance]: {
|
||||||
slug: 'sustainability',
|
slug: 'energy-performance',
|
||||||
name: 'Energy Performance',
|
name: 'Energy Performance',
|
||||||
aboutUrl: 'https://pages.colouring.london/sustainability',
|
aboutUrl: 'https://pages.colouring.london/sustainability',
|
||||||
intro: 'This section provides open data on the energy performance of buildings, and on retrofit.',
|
intro: 'This section provides open data on the energy performance of buildings, and on retrofit.',
|
||||||
},
|
},
|
||||||
[Category.Type]: {
|
[Category.Typology]: {
|
||||||
slug: 'type',
|
slug: 'typology',
|
||||||
name: 'Typology',
|
name: 'Typology',
|
||||||
aboutUrl: 'https://pages.colouring.london/buildingtypology',
|
aboutUrl: 'https://pages.colouring.london/buildingtypology',
|
||||||
intro: 'Note: This section is currently under development, we are working to activate it as soon as possible. This section provides open data on the typology of the building.',
|
intro: 'Note: This section is currently under development, we are working to activate it as soon as possible. This section provides open data on the typology of the building.',
|
||||||
},
|
},
|
||||||
[Category.LandUse]: {
|
[Category.LandUse]: {
|
||||||
slug: 'use',
|
slug: 'land-use',
|
||||||
name: 'Land Use',
|
name: 'Land Use',
|
||||||
aboutUrl: 'https://pages.colouring.london/use',
|
aboutUrl: 'https://pages.colouring.london/use',
|
||||||
intro: 'How are buildings used, and how does use change over time?',
|
intro: 'How are buildings used, and how does use change over time?',
|
||||||
},
|
},
|
||||||
[Category.Streetscape]: {
|
[Category.StreetContext]: {
|
||||||
inactive: true,
|
inactive: true,
|
||||||
slug: 'streetscape',
|
slug: 'street-context',
|
||||||
name: 'Street Context',
|
name: 'Street Context',
|
||||||
aboutUrl: 'https://pages.colouring.london/greenery',
|
aboutUrl: 'https://pages.colouring.london/greenery',
|
||||||
intro: "This section provides open data, and links to open data on streets, pavements, street blocks, land parcels and greenery/green spaces.",
|
intro: "This section provides open data, and links to open data on streets, pavements, street blocks, land parcels and greenery/green spaces.",
|
||||||
|
@ -283,7 +283,7 @@ export const categoryMapsConfig: {[key in Category]: CategoryMapDefinition[]} =
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
[Category.Sustainability]: [{
|
[Category.EnergyPerformance]: [{
|
||||||
mapStyle: 'sust_dec',
|
mapStyle: 'sust_dec',
|
||||||
legend: {
|
legend: {
|
||||||
title: 'Sustainability',
|
title: 'Sustainability',
|
||||||
@ -299,7 +299,7 @@ export const categoryMapsConfig: {[key in Category]: CategoryMapDefinition[]} =
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
}],
|
}],
|
||||||
[Category.Type]: [{
|
[Category.Typology]: [{
|
||||||
mapStyle: 'building_attachment_form',
|
mapStyle: 'building_attachment_form',
|
||||||
legend: {
|
legend: {
|
||||||
title: 'Adjacency/Configuration',
|
title: 'Adjacency/Configuration',
|
||||||
@ -347,7 +347,7 @@ export const categoryMapsConfig: {[key in Category]: CategoryMapDefinition[]} =
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
[Category.Streetscape]: [{
|
[Category.StreetContext]: [{
|
||||||
mapStyle: undefined,
|
mapStyle: undefined,
|
||||||
legend: {
|
legend: {
|
||||||
title: 'Street Context',
|
title: 'Street Context',
|
||||||
|
@ -18,14 +18,14 @@ import { DataContainerType } from '../building/data-container';
|
|||||||
export const categoryUiConfig: {[key in Category]: DataContainerType} = {
|
export const categoryUiConfig: {[key in Category]: DataContainerType} = {
|
||||||
[Category.Location]: LocationContainer,
|
[Category.Location]: LocationContainer,
|
||||||
[Category.LandUse]: UseContainer,
|
[Category.LandUse]: UseContainer,
|
||||||
[Category.Type]: TypeContainer,
|
[Category.Typology]: TypeContainer,
|
||||||
[Category.Age]: AgeContainer,
|
[Category.Age]: AgeContainer,
|
||||||
[Category.Size]: SizeContainer,
|
[Category.Size]: SizeContainer,
|
||||||
[Category.Construction]: ConstructionContainer,
|
[Category.Construction]: ConstructionContainer,
|
||||||
[Category.Streetscape]: StreetscapeContainer,
|
[Category.StreetContext]: StreetscapeContainer,
|
||||||
[Category.Team]: TeamContainer,
|
[Category.Team]: TeamContainer,
|
||||||
[Category.Planning]: PlanningContainer,
|
[Category.Planning]: PlanningContainer,
|
||||||
[Category.Sustainability]: SustainabilityContainer,
|
[Category.EnergyPerformance]: SustainabilityContainer,
|
||||||
[Category.Resilience]: ResilienceContainer,
|
[Category.Resilience]: ResilienceContainer,
|
||||||
[Category.Community]: CommunityContainer,
|
[Category.Community]: CommunityContainer,
|
||||||
};
|
};
|
||||||
|
@ -254,13 +254,13 @@ export const dataFields = { /* eslint-disable @typescript-eslint/camelcase */
|
|||||||
example: true,
|
example: true,
|
||||||
},
|
},
|
||||||
building_attachment_form: {
|
building_attachment_form: {
|
||||||
category: Category.Type,
|
category: Category.Typology,
|
||||||
title: "Attachment type/Adjacency",
|
title: "Attachment type/Adjacency",
|
||||||
tooltip: "We have prepopulated these based on their current attachment. A building can either be detached, semi-detached or part of a terrace (middle or end)",
|
tooltip: "We have prepopulated these based on their current attachment. A building can either be detached, semi-detached or part of a terrace (middle or end)",
|
||||||
example: "",
|
example: "",
|
||||||
},
|
},
|
||||||
date_change_building_use: {
|
date_change_building_use: {
|
||||||
category: Category.Type,
|
category: Category.Typology,
|
||||||
title:"When did use change?",
|
title:"When did use change?",
|
||||||
tooltip: "This is the date the building stopped being used for for the function it was built for. I.e. if it was Victorian warehouse which is now an office this would be when it became an office or if it was something before that, maybe a garage then the date that happened",
|
tooltip: "This is the date the building stopped being used for for the function it was built for. I.e. if it was Victorian warehouse which is now an office this would be when it became an office or if it was something before that, maybe a garage then the date that happened",
|
||||||
example: 1920,
|
example: 1920,
|
||||||
@ -270,13 +270,13 @@ export const dataFields = { /* eslint-disable @typescript-eslint/camelcase */
|
|||||||
* Slug needs to be adjusted if the db column will be named differently
|
* Slug needs to be adjusted if the db column will be named differently
|
||||||
*/
|
*/
|
||||||
original_building_use: {
|
original_building_use: {
|
||||||
category: Category.Type,
|
category: Category.Typology,
|
||||||
title: "Original building use",
|
title: "Original building use",
|
||||||
tooltip: "What was the building <u><i>originally</i></u> used for when it was built?",
|
tooltip: "What was the building <u><i>originally</i></u> used for when it was built?",
|
||||||
example: "",
|
example: "",
|
||||||
},
|
},
|
||||||
size_roof_shape: {
|
size_roof_shape: {
|
||||||
category: Category.Type,
|
category: Category.Typology,
|
||||||
title: "Roof type",
|
title: "Roof type",
|
||||||
example: "",
|
example: "",
|
||||||
//tooltip: ,
|
//tooltip: ,
|
||||||
@ -397,13 +397,13 @@ export const dataFields = { /* eslint-disable @typescript-eslint/camelcase */
|
|||||||
},
|
},
|
||||||
|
|
||||||
size_plot_area_total: {
|
size_plot_area_total: {
|
||||||
category: Category.Streetscape,
|
category: Category.StreetContext,
|
||||||
title: "Total area of plot (m²)",
|
title: "Total area of plot (m²)",
|
||||||
example: 123.02,
|
example: 123.02,
|
||||||
//tooltip: ,
|
//tooltip: ,
|
||||||
},
|
},
|
||||||
size_far_ratio: {
|
size_far_ratio: {
|
||||||
category: Category.Streetscape,
|
category: Category.StreetContext,
|
||||||
title: "FAR ratio (percentage of plot covered by building)",
|
title: "FAR ratio (percentage of plot covered by building)",
|
||||||
example: 0.1,
|
example: 0.1,
|
||||||
//tooltip: ,
|
//tooltip: ,
|
||||||
@ -431,31 +431,31 @@ export const dataFields = { /* eslint-disable @typescript-eslint/camelcase */
|
|||||||
},
|
},
|
||||||
|
|
||||||
sust_breeam_rating: {
|
sust_breeam_rating: {
|
||||||
category: Category.Sustainability,
|
category: Category.EnergyPerformance,
|
||||||
title: "Official Environmental Quality Rating",
|
title: "Official Environmental Quality Rating",
|
||||||
tooltip: ccconfig.energy_rating,
|
tooltip: ccconfig.energy_rating,
|
||||||
example: "",
|
example: "",
|
||||||
},
|
},
|
||||||
sust_dec: {
|
sust_dec: {
|
||||||
category: Category.Sustainability,
|
category: Category.EnergyPerformance,
|
||||||
title: "Non-domestic Building Energy Rating",
|
title: "Non-domestic Building Energy Rating",
|
||||||
tooltip: "Display Energy Certificate (DEC) Any public building should have (and display) a DEC. Showing how the energy use for that building compares to other buildings with same use",
|
tooltip: "Display Energy Certificate (DEC) Any public building should have (and display) a DEC. Showing how the energy use for that building compares to other buildings with same use",
|
||||||
example: "G",
|
example: "G",
|
||||||
},
|
},
|
||||||
sust_aggregate_estimate_epc: {
|
sust_aggregate_estimate_epc: {
|
||||||
category: Category.Sustainability,
|
category: Category.EnergyPerformance,
|
||||||
title: "Domestic Building Energy Rating",
|
title: "Domestic Building Energy Rating",
|
||||||
tooltip: "Energy Performance Certificate (EPC) Any premises sold or rented is required to have an EPC to show how energy efficient it is. Only buildings rate grade E or higher may be rented",
|
tooltip: "Energy Performance Certificate (EPC) Any premises sold or rented is required to have an EPC to show how energy efficient it is. Only buildings rate grade E or higher may be rented",
|
||||||
example: "",
|
example: "",
|
||||||
},
|
},
|
||||||
sust_retrofit_date: {
|
sust_retrofit_date: {
|
||||||
category: Category.Sustainability,
|
category: Category.EnergyPerformance,
|
||||||
title: "Last significant retrofit",
|
title: "Last significant retrofit",
|
||||||
tooltip: "Date of last major building refurbishment",
|
tooltip: "Date of last major building refurbishment",
|
||||||
example: 1920,
|
example: 1920,
|
||||||
},
|
},
|
||||||
sust_life_expectancy: {
|
sust_life_expectancy: {
|
||||||
category: Category.Sustainability,
|
category: Category.EnergyPerformance,
|
||||||
title: "Expected lifespan for typology",
|
title: "Expected lifespan for typology",
|
||||||
example: 123,
|
example: 123,
|
||||||
//tooltip: ,
|
//tooltip: ,
|
||||||
|
@ -59,10 +59,10 @@
|
|||||||
.background-location {
|
.background-location {
|
||||||
background-color: #f7c625;
|
background-color: #f7c625;
|
||||||
}
|
}
|
||||||
.background-use {
|
.background-land-use {
|
||||||
background-color: #f7ec25;
|
background-color: #f7ec25;
|
||||||
}
|
}
|
||||||
.background-type {
|
.background-typology {
|
||||||
background-color: #f77d11;
|
background-color: #f77d11;
|
||||||
}
|
}
|
||||||
.background-age {
|
.background-age {
|
||||||
@ -74,7 +74,7 @@
|
|||||||
.background-construction {
|
.background-construction {
|
||||||
background-color: #f2a2b9;
|
background-color: #f2a2b9;
|
||||||
}
|
}
|
||||||
.background-streetscape {
|
.background-street-context {
|
||||||
background-color: #718899;
|
background-color: #718899;
|
||||||
}
|
}
|
||||||
.background-team {
|
.background-team {
|
||||||
@ -83,7 +83,7 @@
|
|||||||
.background-planning {
|
.background-planning {
|
||||||
background-color: #57c28e;
|
background-color: #57c28e;
|
||||||
}
|
}
|
||||||
.background-sustainability {
|
.background-energy-performance {
|
||||||
background-color: #6bb1e3;
|
background-color: #6bb1e3;
|
||||||
}
|
}
|
||||||
.background-resilience {
|
.background-resilience {
|
||||||
|
Loading…
Reference in New Issue
Block a user