Page features: directory and blog post tabs, image converter, version names
- Featured event badge: above the event's card from lg up, left out on phones - Version names from the tag (The Region Cards Update) in the site and admin footers - Tools -> Image converter (JPG, PNG, WebP in the browser) and Download as in Media - People directory sections take several tags, a tab each (migration 078) - Tab blocks split a blog post into tabs; contents follow the open tab (migration 079) - The side nav sun fades out as the page scrolls into the footer Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
a6c66d4607
commit
31afa889d6
28 changed files with 878 additions and 70 deletions
|
|
@ -2,9 +2,27 @@
|
|||
SITE VERSION: src/lib/version.ts
|
||||
|
||||
One string, bumped by hand when the working directory name
|
||||
changes. The admin footer is the only thing reading it today;
|
||||
keep it here rather than in a component so the panel, an about
|
||||
box or a build banner can read the same value later.
|
||||
changes. Read by the admin's footer and home, and the site's
|
||||
footer.
|
||||
|
||||
Each version has a name, Minecraft style: the tag's words after
|
||||
the number, "v1.13.2-region-cards" → "The Region Cards Update".
|
||||
A version with no words after its number has no name.
|
||||
═══════════════════════════════════════════════════════════════ */
|
||||
|
||||
export const SITE_VERSION = "NGU-Web.v1.13.2-region-cards";
|
||||
|
||||
/** The number, eg. v1.13.2. */
|
||||
export const VERSION_NUMBER: string = SITE_VERSION.match(/v\d+(?:\.\d+)*/)?.[0] ?? SITE_VERSION
|
||||
|
||||
/** The version's name from its tag, eg. The Region Cards Update, or null. */
|
||||
export const VERSION_NAME: string | null = (() => {
|
||||
const words = SITE_VERSION.match(/v\d+(?:\.\d+)*-(.+)$/)?.[1]
|
||||
if (!words) return null
|
||||
const title = words
|
||||
.split('-')
|
||||
.filter(Boolean)
|
||||
.map((word) => word.charAt(0).toUpperCase() + word.slice(1))
|
||||
.join(' ')
|
||||
return `The ${title} Update`
|
||||
})()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue