Skip to content

fix: increase navbar title font size to improve visibility (closes #114)#121

Open
titojuanc wants to merge 1 commit into
ajaynegi33:mainfrom
titojuanc:fix/navbar-title-font-size
Open

fix: increase navbar title font size to improve visibility (closes #114)#121
titojuanc wants to merge 1 commit into
ajaynegi33:mainfrom
titojuanc:fix/navbar-title-font-size

Conversation

@titojuanc

@titojuanc titojuanc commented Apr 13, 2026

Copy link
Copy Markdown

User description

Fixes #114 - The navbar title "OLD SCHOOL GAME" had a font-size of 14px which was too small. Increased to 30px and updated the tag from h3 to h2 for better semantic HTML.


CodeAnt-AI Description

Make the navbar title and link easier to read

What Changed

  • The navbar title now appears larger, making the app name easier to notice at the top of the page
  • The GitHub link in the navbar was also enlarged so it is easier to read
  • The title uses a heading level that fits the page structure better

Impact

✅ Easier-to-read navbar
✅ Clearer app branding
✅ Improved top-of-page visibility

💡 Usage Guide

Checking Your Pull Request

Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.

Talking to CodeAnt AI

Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:

@codeant-ai ask: Your question here

This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.

Example

@codeant-ai ask: Can you suggest a safer alternative to storing this secret?

Preserve Org Learnings with CodeAnt

You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:

@codeant-ai: Your feedback here

This helps CodeAnt AI learn and adapt to your team's coding style and standards.

Example

@codeant-ai: Do not flag unused imports.

Retrigger review

Ask CodeAnt AI to review the PR again, by typing:

@codeant-ai: review

Check Your Repository Health

To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.

@codeant-ai

codeant-ai Bot commented Apr 13, 2026

Copy link
Copy Markdown

CodeAnt AI is reviewing your PR.


Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@vercel

vercel Bot commented Apr 13, 2026

Copy link
Copy Markdown

@titojuanc is attempting to deploy a commit to the ajaynegi45's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions

Copy link
Copy Markdown

👋 Hello @titojuanc!

Thanks for contributing to Old-School-Game – a curated collection of classic, brain-training games that boost memory, focus, creativity, and long-term brain health 🎯🧠.

In today's world full of short-form distractions, this project helps rebuild deep focus and mental endurance through thoughtful gameplay.


✅ Important Things To Do:

  • 🌟 Don’t forget to ⭐ Star the repo and follow @ajaynegi45 for updates, ideas, and dev insights.
  • 📬 Stay inspired! Sign up for the monthly CodiesCoder Newsletter – we explore one key software engineering topic each month, beginner-friendly and fun to read!

✅ Your pull request has been submitted successfully, and a maintainer will review it soon.

@coderabbitai

coderabbitai Bot commented Apr 13, 2026

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • Style

    • Increased font size for navbar title and navigation link elements to significantly enhance visibility and improve overall readability of the application interface.
  • Refactor

    • Updated semantic HTML markup structure in the navbar component to ensure better alignment with web standards and accessibility best practices.

Walkthrough

The homepage title styling has been enhanced by changing the semantic heading element from <h3> to <h2> and increasing the font size of both the title and link text from 14px to 30px, making the "OLD SCHOOL GAME" text more prominent and visually prominent on the page.

Changes

Cohort / File(s) Summary
Homepage Title Enhancement
src/components/Navbar.tsx
Changed the home link heading from <h3> to <h2> for improved semantic structure while maintaining existing styling.
Navbar Typography
src/components/navbar.module.css
Increased font size for .title and .link classes from 14px to 30px to make the homepage text more visually prominent.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🎮 From small to grande, the title now gleams,
Double the size of your pixelated dreams!
An h2 arrives with a bold new stance,
"OLD SCHOOL GAME" gets its well-deserved dance. ✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and specifically describes the main change: increasing the navbar title font size for better visibility, directly addressing issue #114.
Description check ✅ Passed The description is well-related to the changeset, explaining the font-size increase from 14px to 30px and the h3-to-h2 tag change for semantic HTML.
Linked Issues check ✅ Passed The PR successfully addresses issue #114 by increasing the navbar title font-size from 14px to 30px, improving visibility and brand prominence as required.
Out of Scope Changes check ✅ Passed All changes are in-scope: the Navbar component heading tag update and CSS font-size increases directly address the visibility objective from issue #114.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@codeant-ai codeant-ai Bot added the size:XS This PR changes 0-9 lines, ignoring generated files label Apr 13, 2026
Comment on lines 40 to +54
@@ -51,7 +51,7 @@
}

.link {
font-size: 14px;
font-size: 30px;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟠 Architect Review — HIGH

Increasing both the .title and .link font-size to 30px without any mobile-specific overrides means their combined intrinsic width exceeds the 95% navbar width on common mobile viewports, so the two items cannot reliably fit on a single row and will wrap or overflow.

Suggestion: Preserve the larger desktop typography but add mobile/tablet @media rules that reduce .title and .link font-size (or adjust the layout, e.g., stacking) so the navbar remains readable and non-overlapping on small screens.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@src/components/navbar.module.css`:
- Line 40: The increased title font-size (font-size: 30px) can make the fixed
header taller than the existing 4rem spacer and cause content to slide under the
navbar; update the CSS so the spacer matches the navbar's computed height
instead of a fixed 4rem—either increase the spacer height to accommodate the
larger title or make both the header (.navbar or equivalent) and spacer use a
shared CSS variable (e.g., --navbar-height) and compute height from content
(min-height or padding) so the spacer always matches the header height; adjust
the rules that reference the spacer class (e.g., .spacer, .navbar-spacer) and
the fixed header class (.navbar) to use the same variable or responsive sizing.
- Line 54: The .link rule was bumped to 30px along with the title causing scope
drift; change the .link selector (and any .nav-link variants) to a smaller,
readable size (e.g., 14–16px) or remove the explicit font-size so it inherits
the base size, and keep the 30px setting only on the .title/.logo selector; if
larger link text is desired on wide screens, move the increased size into a
desktop media query so mobile remains balanced.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: fdcbf458-bc14-483a-a43d-4b48c1d24474

📥 Commits

Reviewing files that changed from the base of the PR and between f8c6715 and 54ca062.

📒 Files selected for processing (2)
  • src/components/Navbar.tsx
  • src/components/navbar.module.css


.title {
font-size: 14px;
font-size: 30px;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

Potential layout overlap after increasing title size.

At Line 40, font-size: 30px combined with fixed navbar sizing can make the fixed header taller than the 4rem spacer, so page content may slide under the navbar.

Suggested fix (keep larger title, stabilize layout)
 .navbar {
-    height: 4rem;
+    min-height: 4rem;
     display: flex;
     flex-direction: row;
     align-items: center;
     justify-content: space-between;
-    padding: 22px 0 20px 0;
+    padding: 12px 0;
     border-bottom: 1px solid `#E1E4E8`;
 }
 .empty-navbar{
     margin-top: 2rem;
-    height: 4rem;
+    height: 5.5rem;
     width: 95%;
 }
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/components/navbar.module.css` at line 40, The increased title font-size
(font-size: 30px) can make the fixed header taller than the existing 4rem spacer
and cause content to slide under the navbar; update the CSS so the spacer
matches the navbar's computed height instead of a fixed 4rem—either increase the
spacer height to accommodate the larger title or make both the header (.navbar
or equivalent) and spacer use a shared CSS variable (e.g., --navbar-height) and
compute height from content (min-height or padding) so the spacer always matches
the header height; adjust the rules that reference the spacer class (e.g.,
.spacer, .navbar-spacer) and the fixed header class (.navbar) to use the same
variable or responsive sizing.


.link {
font-size: 14px;
font-size: 30px;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Scope drift: nav link size was increased with the title.

At Line 54, making .link also 30px is likely larger than needed for issue #114 (title visibility) and may hurt balance/readability, especially on mobile.

Suggested tweak
 .link {
-    font-size: 30px;
+    font-size: 16px;
     color: rgb(59, 61, 65);
@@
 `@media` (max-width: 700px) {
+    .title { font-size: 24px; }
+    .link { font-size: 14px; }
 }
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/components/navbar.module.css` at line 54, The .link rule was bumped to
30px along with the title causing scope drift; change the .link selector (and
any .nav-link variants) to a smaller, readable size (e.g., 14–16px) or remove
the explicit font-size so it inherits the base size, and keep the 30px setting
only on the .title/.logo selector; if larger link text is desired on wide
screens, move the increased size into a desktop media query so mobile remains
balanced.


.title {
font-size: 14px;
font-size: 30px;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: Setting the title to a fixed 30px creates a responsive layout bug because the navbar has no mobile font-size override, so on narrow screens the title can overflow/collide with the right-side link. Use a responsive font size that caps at 30px instead of a fixed value. [logic error]

Severity Level: Major ⚠️
- ⚠️ Navbar title and GitHub link overlap on small screens.
- ⚠️ Root layout header appears cramped on mobile viewports.
Suggested change
font-size: 30px;
font-size: clamp(1.1rem, 5vw, 30px);
Steps of Reproduction ✅
1. Run the Next.js app and open the root page `/` in a narrow browser viewport (e.g.,
~360px width). This uses `RootLayout` in `src/app/layout.tsx:42-60`, which renders
`<Navbar/>` at `layout.tsx:58`.

2. Observe that `Navbar` (`src/components/Navbar.tsx:5-19`) renders the title as `<h2
className={styles["title"]}>OLD SCHOOL GAME</h2>` and the GitHub link as `<Link ...
className={styles.link}>Github</Link>` on a single flex row (`<nav
className={styles["navbar"]}>` at `Navbar.tsx:9`).

3. In `src/components/navbar.module.css:10-19`, `.navbar` is defined with `width: 95%;`,
`height: 4rem;`, `display: flex;`, and `justify-content: space-between;`. The mobile media
query at `navbar.module.css:71-74` is empty, so there is no smaller-screen font-size
override.

4. The same CSS file sets `.title` to a fixed `font-size: 30px;` at
`navbar.module.css:39-41`. On a narrow viewport, the long uppercase text "OLD SCHOOL GAME"
at 30px fills most of the 95% width, causing the right-side GitHub link to be pushed to
the edge or forced to wrap/clip inside the fixed 4rem navbar, producing overflow/collision
instead of a responsive scale-down.
Prompt for AI Agent 🤖
This is a comment left during a code review.

**Path:** src/components/navbar.module.css
**Line:** 40:40
**Comment:**
	*Logic Error: Setting the title to a fixed `30px` creates a responsive layout bug because the navbar has no mobile font-size override, so on narrow screens the title can overflow/collide with the right-side link. Use a responsive font size that caps at 30px instead of a fixed value.

Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
👍 | 👎


.link {
font-size: 14px;
font-size: 30px;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: The GitHub link font size was also increased to 30px, which is unrelated to the stated title-only fix and causes the two nav items to compete for horizontal space, increasing the chance of wrapping/overlap in the fixed-width navbar. [logic error]

Severity Level: Major ⚠️
- ⚠️ Navbar GitHub link competes visually with site title.
- ⚠️ Fixed-height header crowded on small screens, reduced clarity.
Suggested change
font-size: 30px;
font-size: 14px;
Steps of Reproduction ✅
1. Run the app and load the root page `/` in a browser (any viewport). `RootLayout` in
`src/app/layout.tsx:42-60` renders `<Navbar/>` globally at `layout.tsx:58`.

2. In `Navbar` (`src/components/Navbar.tsx:5-19`), the GitHub anchor is rendered as `<Link
href="https://github.com/ajaynegi45/Old-School-Game"
className={styles.link}>Github</Link>` at `Navbar.tsx:13`, sharing the same horizontal
flex row as the title.

3. `src/components/navbar.module.css:39-47` sets `.title` to `font-size: 30px;`, and
`navbar.module.css:53-61` sets `.link` to `font-size: 30px;` as well, while `.navbar` at
`navbar.module.css:10-19` keeps a fixed `height: 4rem;` and `justify-content:
space-between;` with no mobile adjustments in the empty `@media (max-width: 700px)` block
at `navbar.module.css:71-74`.

4. With both the long title "OLD SCHOOL GAME" and the "Github" link set to 30px, they
compete for horizontal space inside the 95%-width, 4rem-high navbar. On narrower
viewports, this causes aggressive crowding and wrapping risk; even on desktop, it reduces
visual hierarchy and contradicts the PR description that only the title size should be
increased.
Prompt for AI Agent 🤖
This is a comment left during a code review.

**Path:** src/components/navbar.module.css
**Line:** 54:54
**Comment:**
	*Logic Error: The GitHub link font size was also increased to `30px`, which is unrelated to the stated title-only fix and causes the two nav items to compete for horizontal space, increasing the chance of wrapping/overlap in the fixed-width navbar.

Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
👍 | 👎

@codeant-ai

codeant-ai Bot commented Apr 13, 2026

Copy link
Copy Markdown

CodeAnt AI finished reviewing your PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS This PR changes 0-9 lines, ignoring generated files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Homepage title text looks too small

1 participant