Skip to content

momentum-mod/frontpage

Repository files navigation

Momentum Mod

Momentum Mod is a standalone game built on the Source Engine, aiming to centralize movement gamemodes found in CS:S, CS:GO, and TF2.

frontpage

Tiny repo for Momentum's frontpage site (momentum-mod.org) and branding guidelines (momentum-mod.org/branding).

Built using vanilla HTML and CSS, with Vite for auto reloading, TypeScript compilation and bundling. There's a couple of custom plugins for inlining HTML/SVGs in /plugins.

Assets in /src/public/assets will be hosted relative https://momentum-mod.org/ with their exact file path - anything we want exposed with a consistent path must go in there. E.g. the above https://momentum-mod.org/assets/images/logo.svg, which we use for a lot of our Github READMEs, lives at src/public/assets/images/logo.svg.

Development

Use git submodule update --remote to ensure you have the styling submodule fetched.

With Node installed, run npm install.

To launch a dev session with auto reloading, run npm run dev. Open the URL Vite spits out and all should work.

For auto-formatting, run npm run format. If on VSCode I recomemend the Prettier extension.

Please use Chromium's Lighthouse reports before submitting work, keeping Performance, Accessibility and SEO at 99/100 ("Best Practices" is hopeless because of garbage in Steam and YouTube iframes).