Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions frontend/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,13 @@
</head>

<body>
<body>
<a href="#main-content" class="skip-link">Skip to main content</a>
...
<canvas id="matrix-canvas"></canvas>

<main class="page">
<main class="page" id="main-content"></main>
<div class="container">
<h1 class="page-title">cat README.md</h1>

Expand Down
4 changes: 4 additions & 0 deletions frontend/leaderboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,13 @@
</head>

<body>
<body>
<a href="#main-content" class="skip-link">Skip to main content</a>
...
<canvas id="matrix-canvas"></canvas>

<main class="page">
<main class="page" id="main-content"></main>
<div class="container">
<h1 class="page-title">Leaderboard</h1>
<div
Expand Down
4 changes: 4 additions & 0 deletions frontend/registration.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,13 @@
</head>

<body>
<body>
<a href="#main-content" class="skip-link">Skip to main content</a>
...
<canvas id="matrix-canvas"></canvas>

<main class="page">
<main class="page" id="main-content"></main>
<div class="form-container">
<div class="form-card" id="registration-form">
<h1 class="page-title">Join the Leaderboard</h1>
Expand Down
18 changes: 18 additions & 0 deletions frontend/styles/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -2804,3 +2804,21 @@ body::-webkit-scrollbar-thumb {
.changes-content-line.no-icon::before {
display: none;
}
/* Skip to main content — accessibility */
.skip-link {
position: absolute;
top: -40px;
left: 0;
background: var(--green);
color: var(--bg);
padding: 8px 16px;
font-family: var(--font-mono);
font-size: 0.85rem;
z-index: 9999;
text-decoration: none;
border-radius: 0 0 4px 0;
transition: top 0.2s ease;
}
.skip-link:focus {
top: 0;
}
Loading