Skip to content
Merged
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
5 changes: 4 additions & 1 deletion sites/hacklytics2027/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ export default function HomePage() {
<a
href="https://mlh.io/na?utm_source=na-hackathon&utm_medium=TrustBadge&utm_campaign=2026-season&utm_content=white"
target="_blank"
rel="noopener noreferrer"
className="absolute top-0 right-5 md:right-12 z-50 w-[9%] max-w-[90px] min-w-[56px] hover:scale-105 hover:brightness-110 transition-all duration-300"
>
<img src="/mlh-trust-badge.svg" alt="Major League Hacking 2027" className="w-full drop-shadow-2xl" />
Expand Down Expand Up @@ -202,7 +203,9 @@ export default function HomePage() {
</a>
</div>

<Countdown targetDate={new Date("2027-02-26T23:59:59")} />
{/* Check-in opens 5pm ET (the JSON-LD startDate). Without an offset
the string meant midnight in each visitor's own timezone. */}
<Countdown targetDate={new Date("2027-02-26T17:00:00-05:00")} />

</div>

Expand Down
11 changes: 10 additions & 1 deletion sites/hacklytics2027/components/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,14 @@ export default function Navbar() {
}, [open]);

const handleNavClick = (e: React.MouseEvent<HTMLAnchorElement>, href: string) => {
e.preventDefault();
// Cmd/ctrl-click opens a new tab; that is the browser's to handle.
if (e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || e.button !== 0) return;
setOpen(false);
const id = href.replace("/#", "");
const el = document.getElementById(id);
// Off the home page (the 404), let the link navigate to /#id.
if (!el) return;
e.preventDefault();
clickScrolling.current = true;
setVisible(true);
const offset = (headerRef.current?.offsetHeight ?? 0) + 16;
Expand Down Expand Up @@ -120,6 +123,8 @@ export default function Navbar() {

<button
aria-label="Toggle menu"
aria-expanded={open}
aria-controls="mobile-menu"
onClick={() => setOpen((s) => !s)}
className="md:hidden w-11 h-11 flex flex-col justify-center items-center gap-[6px] border border-white/15 hover:border-white/40 transition-colors bg-transparent"
>
Expand All @@ -137,6 +142,10 @@ export default function Navbar() {
</header>

<div
id="mobile-menu"
// Hidden only by opacity, so without inert its links stayed in the tab
// order and the accessibility tree while closed.
inert={!open}
className={`
fixed inset-0 z-40 flex flex-col
bg-[#04040a]/98
Expand Down
157 changes: 0 additions & 157 deletions sites/hacklytics2027/public/index.html

This file was deleted.

Loading