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
15 changes: 13 additions & 2 deletions frontend/registration.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
</head>

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

<canvas id="matrix-canvas"></canvas>

<main class="page" id="main-content">
Expand Down Expand Up @@ -269,7 +269,18 @@ <h1 class="page-title">Join the Leaderboard</h1>
const form = document.getElementById("registrationForm");
form
.querySelectorAll(".form-group")
.forEach((f) => (f.style.display = "block"));
.forEach((group) => {
group.style.display = "block"
const input = group.querySelector("input");
if (!input) return;
group.addEventListener("mousedown", (e) => {
if (e.target !== input) {
e.preventDefault();
input.focus();
}
})
});

document.getElementById("registerBtn").style.display = "inline-block";
const execLog = document.getElementById("exec-log-box");
if (execLog) execLog.style.display = "none";
Expand Down
6 changes: 6 additions & 0 deletions frontend/styles/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -1132,6 +1132,8 @@ body.crt-scrolling {

.form-group {
margin-bottom: 1.5rem;
position: relative;

}

.form-label {
Expand All @@ -1150,11 +1152,15 @@ body.crt-scrolling {

.form-input {
width: 100%;
box-sizing: border-box;
padding: 0.75rem 1rem;
border-radius: 4px;
border: 1px solid var(--border-bright);
position: relative;
z-index: 2;
background: var(--bg);
color: var(--green);
cursor: text;
font-family: "Fira Code", monospace;
font-size: 0.9rem;
outline: none;
Expand Down
Loading