Starystars67 38955dcbfe Add event standings pages and an Events link
BeamMP now runs community events with combined leaderboards, and the
site had nowhere to show them. This adds an Events page listing each
event and an event page with live standings, a driver search, the
servers taking part and the event rules.

Standings come from the API's public events routes, so no key is ever
in the browser. The page keeps the last good results on screen if a
refresh fails and says the connection was lost rather than going blank.
Events with an uploaded banner show it behind the card and the page
header, with an overlay so the text stays readable; events without one
look as plain cards. The helpers the two pages share live beside them
in views/events rather than in lib, since nothing else uses them.

The Events link sits before Servers in the desktop and mobile menus.
All of the new text is translated into the seven site languages using
literal keys, so the locale checks can see every one. The translations
are machine written and want a native speaker's review.

src/lib/config.js is included because the pages need the API address
from it: it is the one place that reads the window.__ENV__ the
container writes at start, with the real services as the defaults.
2026-11-17 16:15:33 +00:00
2025-12-23 11:51:13 +00:00
2026-09-17 15:34:54 +01:00
2026-04-12 23:55:03 +01:00
2025-11-30 16:01:49 +00:00
2025-11-30 16:01:49 +00:00
2025-11-30 16:01:49 +00:00
2025-11-30 16:01:49 +00:00
2026-09-10 15:56:08 +01:00
2026-11-04 16:28:13 +00:00
2025-12-24 13:08:35 +00:00
2025-12-29 23:36:46 +00:00

BeamMP Website

This repository is home for the BeamMP website. The website features support for translations too now!

Tech Stack

  • Framework: Vue 3 (vue, vue-router)
  • Build: Vite 7 (vite, @vitejs/plugin-vue)
  • Styling: Tailwind CSS 4 + tailwindcss-animate, tailwind-merge
  • UI Icons/Utils: lucide-vue-next, clsx, class-variance-authority
  • Radix-style Components: reka-ui through shadcn-vue
  • Composable utilities: @vueuse/core

Theming and Colour Guide

  • BeamMP Orange #F36D24
  • BeamMP Blue #4470B6
  • BeamMP Green #1D9749
  • Gray #333333
  • Black #000000
  • White #FFFFFF

Getting Started

Prerequisites:

  • Node.js 22+
  • pnpm, npm, or yarn (examples use npm)

Install dependencies and run the dev server:

# from this folder (repo root)
npm install
npm run dev

Build for production and preview locally:

npm run build
npm run preview

Vite will print the local dev URL (usually http://localhost:5173).

Project Scripts

  • npm run dev: Start Vite development server
  • npm run build: Production build
  • npm run preview: Preview the production build locally
  • npm run lint: Lint and auto-fix Vue/JS files with ESLint
  • npm run format: Format all source files with Prettier

Directory Overview

  • src/ – App source (styles, components, pages, routing)
    • src/components/ui/ – UI components (e.g., button, navigation-menu)
    • src/lib/ – Utilities and helpers
    • routes/ - vue-router routes
    • views/ - Pages of the website
  • index.html – Vite HTML entry
  • tailwind.config.js – Tailwind configuration
  • vite.config.js – Vite configuration
  • components.json – Shadcn-Vue component registry

Contributing

We welcome contributions! Here’s how to get started.

1) Pick an Issue or Open One

  • Browse issues or propose an enhancement/bug. Share context and repro steps.

2) Create a Branch

  • Use a descriptive branch name:
    • feature/<short-description>
    • fix/<short-description>
    • docs/<short-description>

3) Dev Environment

  • Install deps with npm install and run npm run dev.
  • Keep changes scoped and focused; avoid drive-by refactors unless agreed.

4) Code Style & Patterns

  • Vue 3 + <script setup> preferred for new components.
  • Linting: Run npm run lint before committing to catch errors. ESLint is configured for Vue 3 best practices.
  • Formatting: Run npm run format to auto-format code with Prettier (or use an editor extension).
  • Type safety: If/when TypeScript is introduced, prefer explicit props and emits.
  • Tailwind: Use utility classes; extract variants with class-variance-authority when patterns repeat.
  • Accessibility: Prefer accessible primitives (e.g., reka-ui) and keyboard support.
  • File naming: PascalCase.vue for components; avoid one-letter variable names.

5) Testing & Checks

  • Run the app locally and verify core flows.
  • Ensure components render on both light/dark themes if relevant.
  • If you add dependencies, update this README and relevant configs.

6) Commit & PR

  • Write clear, imperative commit messages, e.g., feat: add NavigationMenu component.
  • Open a PR describing the problem, solution, screenshots if UI changes, and any follow-ups.
  • Link related issues. Keep PRs small; big changes should be split.

Translations

BeamMP makes an effort to be maintained for multiple languages. The current progress of this sits at: gitlocalized We use GitLocalize for managing this. You can contribute if you wish here: https://gitlocalize.com/repo/10617.

The individual language progress is as follows:

Language Badge
French gitlocalized
German gitlocalized
Italian gitlocalized
Russian gitlocalized
Spanish gitlocalized
S
Description
No description provided
Readme
57 MiB
0 Stars 1 Watchers 0 Forks
Languages
Vue 63.2%
JavaScript 20.5%
HTML 14.2%
CSS 1.9%
Dockerfile 0.2%