From 30d2bfb38eb19557f0f39fa33c3b1bbd07523663 Mon Sep 17 00:00:00 2001 From: Iain Collins Date: Thu, 12 Sep 2024 22:20:44 +0100 Subject: [PATCH] Update page metadata --- components/layout.js | 10 +++++++--- css/helpers.css | 4 ++++ package.json | 2 +- pages/about.js | 5 ++++- pages/commodity/[commodity-name]/index.js | 11 ++++++++--- pages/downloads.js | 5 ++++- pages/system/[system-name]/index.js | 9 +++++++-- 7 files changed, 35 insertions(+), 11 deletions(-) diff --git a/components/layout.js b/components/layout.js index 126d98c..897dcd2 100644 --- a/components/layout.js +++ b/components/layout.js @@ -1,16 +1,20 @@ import Loader from './loader' import Head from 'next/head' +const DEFAULT_TITLE = 'Ardent Industry – Trade & Exploration' +const DEFAULT_DESCRIPTION = 'Ardent Industry provides trade and exploration data for the game Elite Dangerous' + export default ({ - title = 'Ardent Industry – Trade & Exploration', + title = DEFAULT_TITLE, + description = DEFAULT_DESCRIPTION, loading = false, loadingText, children }) => <> - {title} - + {title ?? DEFAULT_TITLE} + diff --git a/css/helpers.css b/css/helpers.css index e75a246..ceac627 100644 --- a/css/helpers.css +++ b/css/helpers.css @@ -10,6 +10,10 @@ opacity: 0; } +.text-large { + font-size: 1.2rem; +} + .text-positive { color: var(--color-positive); } diff --git a/package.json b/package.json index 9a0d348..3d1cf93 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ardent-www", - "version": "0.47.2", + "version": "0.47.4", "description": "Ardent Industry", "main": "index.js", "scripts": { diff --git a/pages/about.js b/pages/about.js index 76101d2..ca50ba9 100644 --- a/pages/about.js +++ b/pages/about.js @@ -22,7 +22,10 @@ export default () => { }, []) return ( - + diff --git a/pages/commodity/[commodity-name]/index.js b/pages/commodity/[commodity-name]/index.js index 20ec013..620475f 100644 --- a/pages/commodity/[commodity-name]/index.js +++ b/pages/commodity/[commodity-name]/index.js @@ -104,7 +104,12 @@ export default () => { }, []) return ( - + @@ -116,7 +121,7 @@ export default () => {
  • Home
  • Commodities
  • - {commodity === null && <>

    Error

    Commodity not found

    } + {commodity === null && <>

    Error: Not found

    Commodity not found.

    } {commodity &&

    @@ -233,7 +238,7 @@ export default () => {

    Rare goods are only available in limited quantities from exclusive locations but can be sold almost anywhere.

    -

    +

    They increase in value the further they are traded from the source, reaching maximum value when traded around 150-200 ly away.

    diff --git a/pages/downloads.js b/pages/downloads.js index ce08b70..9c1027a 100644 --- a/pages/downloads.js +++ b/pages/downloads.js @@ -14,7 +14,10 @@ export default () => { })() }, []) return ( - + diff --git a/pages/system/[system-name]/index.js b/pages/system/[system-name]/index.js index 77e61e7..775f44b 100644 --- a/pages/system/[system-name]/index.js +++ b/pages/system/[system-name]/index.js @@ -154,7 +154,12 @@ export default () => { }, [router.query['system-name']]) return ( - + @@ -166,7 +171,7 @@ export default () => {
  • Home
  • Systems
  • - {system === null && <>

    Error

    System not found

    } + {system === null && <>

    Error: Not found

    System not found.

    } {system &&