diff options
author | LynithDev <61880709+LynithDev@users.noreply.github.com> | 2024-01-07 16:30:40 +0100 |
---|---|---|
committer | LynithDev <61880709+LynithDev@users.noreply.github.com> | 2024-01-07 16:30:40 +0100 |
commit | 651684e9c6c8509001f3757b51c8aefbadbd6613 (patch) | |
tree | c9a25ebb828cb00ec2c42e12bd8e8f48f2cd8ff4 /apps/website/src/pages | |
parent | f570918a65dda1dcb02030119d2218526b6c5b0c (diff) | |
download | Nexus-651684e9c6c8509001f3757b51c8aefbadbd6613.tar.gz Nexus-651684e9c6c8509001f3757b51c8aefbadbd6613.tar.bz2 Nexus-651684e9c6c8509001f3757b51c8aefbadbd6613.zip |
Branding page mod names
Diffstat (limited to 'apps/website/src/pages')
-rw-r--r-- | apps/website/src/pages/branding.astro | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/website/src/pages/branding.astro b/apps/website/src/pages/branding.astro index d1e05b4..e367f3b 100644 --- a/apps/website/src/pages/branding.astro +++ b/apps/website/src/pages/branding.astro @@ -5,7 +5,11 @@ import Section from '@components/base/Section.astro'; import BrandingImage from '@components/page/branding/BrandingImage.astro'; import Layout from '@layouts/Layout.astro'; -const mods = ['behindyou', 'chatting', 'crashpatch', 'damagetint', 'evergreenhud', 'glintcolorizer', 'keystrokes', 'overflowanimations', 'polyblur', 'polynametag', 'polysprint', 'polytime', 'polyweather', 'vanillahud']; +const mods = ['behind_you', 'chatting', 'crash_patch', 'damage_tint', 'evergreen_h_u_d', 'glint_colorizer', 'keystrokes', 'overflow_animations', 'poly_blur', 'poly_nametag', 'poly_sprint', 'poly_time', 'poly_weather', 'vanilla_h_u_d']; + +function formatModName(name: string): string { + return name.split('_').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join(''); +} --- <Layout> @@ -105,7 +109,7 @@ const mods = ['behindyou', 'chatting', 'crashpatch', 'damagetint', 'evergreenhud </Paragraph> <div class="my-4 flex flex-row flex-wrap gap-2 text-white"> {mods.map(mod => ( - <BrandingImage background="transparent" name={mod} type="mods" /> + <BrandingImage nameFormatted={formatModName(mod)} background="transparent" name={mod} type="mods" /> ))} </div> </div> |