No wales
This commit is contained in:
parent
afa6934a2d
commit
9b9fed393a
4 changed files with 14 additions and 16 deletions
|
|
@ -8,7 +8,7 @@ const DATA_SOURCES = [
|
||||||
id: 'price-paid',
|
id: 'price-paid',
|
||||||
name: 'Price Paid Data',
|
name: 'Price Paid Data',
|
||||||
origin: 'HM Land Registry',
|
origin: 'HM Land Registry',
|
||||||
use: 'Complete historical property sale prices for England and Wales. Used for the last known sale price of each property.',
|
use: 'Complete historical property sale prices for England. Used for the last known sale price of each property.',
|
||||||
url: 'https://www.gov.uk/government/statistical-data-sets/price-paid-data-downloads',
|
url: 'https://www.gov.uk/government/statistical-data-sets/price-paid-data-downloads',
|
||||||
license: 'Open Government Licence v3.0',
|
license: 'Open Government Licence v3.0',
|
||||||
},
|
},
|
||||||
|
|
@ -117,7 +117,7 @@ const DATA_SOURCES = [
|
||||||
url: 'https://www.gov.uk/government/statistics/council-tax-levels-set-by-local-authorities-in-england-2025-to-2026',
|
url: 'https://www.gov.uk/government/statistics/council-tax-levels-set-by-local-authorities-in-england-2025-to-2026',
|
||||||
license: 'Open Government Licence v3.0',
|
license: 'Open Government Licence v3.0',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'ons-rental',
|
id: 'ons-rental',
|
||||||
name: 'Private Rental Market Statistics',
|
name: 'Private Rental Market Statistics',
|
||||||
origin: 'ONS / Valuation Office Agency',
|
origin: 'ONS / Valuation Office Agency',
|
||||||
|
|
@ -289,10 +289,9 @@ export default function LearnPage() {
|
||||||
}, [tab]);
|
}, [tab]);
|
||||||
|
|
||||||
const tabClass = (t: LearnTab) =>
|
const tabClass = (t: LearnTab) =>
|
||||||
`px-4 py-2 text-sm font-medium rounded-t border-b-2 ${
|
`px-4 py-2 text-sm font-medium rounded-t border-b-2 ${tab === t
|
||||||
tab === t
|
? 'border-teal-500 text-teal-700 dark:text-teal-400'
|
||||||
? 'border-teal-500 text-teal-700 dark:text-teal-400'
|
: 'border-transparent text-warm-500 dark:text-warm-400 hover:text-warm-700 dark:hover:text-warm-300'
|
||||||
: 'border-transparent text-warm-500 dark:text-warm-400 hover:text-warm-700 dark:hover:text-warm-300'
|
|
||||||
}`;
|
}`;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
@ -331,11 +330,10 @@ export default function LearnPage() {
|
||||||
ref={(el) => {
|
ref={(el) => {
|
||||||
cardRefs.current[source.id] = el;
|
cardRefs.current[source.id] = el;
|
||||||
}}
|
}}
|
||||||
className={`bg-white dark:bg-warm-800 rounded-lg border p-5 ${
|
className={`bg-white dark:bg-warm-800 rounded-lg border p-5 ${highlightedId === source.id
|
||||||
highlightedId === source.id
|
|
||||||
? 'border-teal-400 ring-2 ring-teal-400'
|
? 'border-teal-400 ring-2 ring-teal-400'
|
||||||
: 'border-warm-200 dark:border-warm-700'
|
: 'border-warm-200 dark:border-warm-700'
|
||||||
}`}
|
}`}
|
||||||
>
|
>
|
||||||
<div className="flex items-start justify-between gap-4 mb-2">
|
<div className="flex items-start justify-between gap-4 mb-2">
|
||||||
<h2 className="text-lg font-semibold text-warm-900 dark:text-warm-100">
|
<h2 className="text-lg font-semibold text-warm-900 dark:text-warm-100">
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,8 @@
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
||||||
<meta name="theme-color" content="#0f1528" />
|
<meta name="theme-color" content="#0f1528" />
|
||||||
<title>Perfect Postcode — Every neighbourhood in England & Wales</title>
|
<title>Perfect Postcode — Every neighbourhood in England</title>
|
||||||
<meta name="description" content="Explore property prices, energy ratings, crime stats, school ratings, and more across England & Wales on one interactive map." />
|
<meta name="description" content="Explore property prices, energy ratings, crime stats, school ratings, and more across England on one interactive map." />
|
||||||
<meta name="x-og-placeholder" content="__PERFECT_POSTCODE_OG_TAGS__" />
|
<meta name="x-og-placeholder" content="__PERFECT_POSTCODE_OG_TAGS__" />
|
||||||
<script>
|
<script>
|
||||||
(function() {
|
(function() {
|
||||||
|
|
|
||||||
|
|
@ -75,7 +75,7 @@ pub static FEATURE_GROUPS: &[FeatureGroup] = &[
|
||||||
},
|
},
|
||||||
step: 10000.0,
|
step: 10000.0,
|
||||||
description: "Most recent sale price from the Land Registry",
|
description: "Most recent sale price from the Land Registry",
|
||||||
detail: "The last recorded sale price for this property from HM Land Registry Price Paid data. Covers residential sales in England and Wales. May be years old if the property hasn't sold recently.",
|
detail: "The last recorded sale price for this property from HM Land Registry Price Paid data. Covers residential sales in England. May be years old if the property hasn't sold recently.",
|
||||||
source: "price-paid",
|
source: "price-paid",
|
||||||
prefix: "£",
|
prefix: "£",
|
||||||
suffix: "",
|
suffix: "",
|
||||||
|
|
|
||||||
|
|
@ -53,15 +53,15 @@ pub async fn og_middleware(request: Request, next: Next) -> Response {
|
||||||
};
|
};
|
||||||
|
|
||||||
let og_tags = format!(
|
let og_tags = format!(
|
||||||
r#"<meta property="og:title" content="Perfect Postcode — Every neighbourhood in England & Wales" />
|
r#"<meta property="og:title" content="Perfect Postcode — Every neighbourhood in England" />
|
||||||
<meta property="og:description" content="Explore property prices, energy ratings, crime stats, school ratings, and more across England & Wales on one interactive map." />
|
<meta property="og:description" content="Explore property prices, energy ratings, crime stats, school ratings, and more across England on one interactive map." />
|
||||||
<meta property="og:type" content="website" />
|
<meta property="og:type" content="website" />
|
||||||
<meta property="og:image" content="{og_image_url}" />
|
<meta property="og:image" content="{og_image_url}" />
|
||||||
<meta property="og:image:width" content="1200" />
|
<meta property="og:image:width" content="1200" />
|
||||||
<meta property="og:image:height" content="630" />
|
<meta property="og:image:height" content="630" />
|
||||||
<meta name="twitter:card" content="summary_large_image" />
|
<meta name="twitter:card" content="summary_large_image" />
|
||||||
<meta name="twitter:title" content="Perfect Postcode — Every neighbourhood in England & Wales" />
|
<meta name="twitter:title" content="Perfect Postcode — Every neighbourhood in England" />
|
||||||
<meta name="twitter:description" content="Explore property prices, energy ratings, crime stats, school ratings, and more across England & Wales on one interactive map." />"#
|
<meta name="twitter:description" content="Explore property prices, energy ratings, crime stats, school ratings, and more across England on one interactive map." />"#
|
||||||
);
|
);
|
||||||
|
|
||||||
let html = index_html.replace(OG_PLACEHOLDER, &og_tags);
|
let html = index_html.replace(OG_PLACEHOLDER, &og_tags);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue