Skip to content

Add a header menu for tablets and phones, and fix the squeezed tournament banner - #42

Merged
dav3exe merged 4 commits into
startnextgen:mainfrom
Cybertron-HNG:main
Oct 23, 2026
Merged

dav3exe merged 4 commits into
startnextgen:mainfrom
Cybertron-HNG:main

Conversation

@dav3exe

@dav3exe dav3exe commented Oct 23, 2026

Copy link
Copy Markdown
Collaborator

Brings startnextgen/startng-fe up to date with the Cybertron-HNG fork's main (3 commits, one change).

  • Header menu on tablets and phones (820px and under): the header is one row (logo, dark/light button, points, avatar, menu icon). The menu icon opens a floating panel with Games, Tournament, Creators and Docs, which closes on the X, a tap outside, or Escape. On phones (600px and under) the dark/light switch moves into the panel. Desktop is unchanged.
  • Tournament banner on the homepage: between about 761px and 900px the five game tiles squeezed the text into a narrow column. The tiles now shrink with the screen (60px to 96px).

Frontend only (src/App.tsx, src/ThemeToggle.tsx, src/styles.css). No new libraries, fonts, colours or breakpoints. It went through a PR into the fork's dev (#112) and then dev into main (#113), with the required checks (Typecheck and build, Worker tests, malware-scan) green on the head commit.

Chloetrini and others added 4 commits October 23, 2026 22:02
…onger gets squeezed

On tablets and phones the four links (Games, Tournament, Creators, Docs) were small pills spread across a second row
under the logo, which made the header tall and the pills hard to tap.

Now, up to 820px wide, the header is one row: the logo on the left, then the dark/light button, the points and the avatar,
with a hamburger icon at the right edge. Tapping it opens a small panel with the four links. The panel floats over the page,
so nothing below it moves. On phones (600px and under) the dark/light switch moves into the panel as a "Dark mode" row;
on tablets it stays in the header. Desktop is unchanged.

The hamburger is three lines with a thin outline around the lime middle one, and it turns into an X while the panel is open.
Tapping the X, tapping outside the panel, or pressing Escape closes it. Reduced motion is respected.

The tournament banner on the homepage had five fixed 96px game tiles, which squeezed the text to a narrow column
between 761px and about 900px wide. The tiles now shrink with the screen (60px to 96px), so the text has room.
Header menu for tablets and phones, and a tournament banner that isn't squeezed
Promote dev to main: header menu for tablets and phones
@dav3exe
dav3exe merged commit 41c7984 into startnextgen:main Oct 23, 2026
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants