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
14 changes: 0 additions & 14 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -264,20 +264,6 @@ a.navbar__item:hover {
filter: invert(1);
}

/* Homepage: navbar hidden at top, slides in on scroll (toggled in index.tsx). */
body.is-home .navbar {
position: fixed;
top: 0;
left: 0;
right: 0;
transform: translateY(-100%);
transition: transform 0.3s ease;
will-change: transform;
}
body.is-home .navbar.navbar--revealed {
transform: translateY(0);
}

/* Hero primary CTA — slow pulsing glow when enabled, invites the click
without ever animating loud enough to feel pushy. Disabled state stays
still. Pulse colour matches the button fill in each theme. */
Expand Down
16 changes: 1 addition & 15 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useEffect } from "react";
import React from "react";

import Layout from "@theme/Layout";
import Head from "@docusaurus/Head";
Expand Down Expand Up @@ -60,20 +60,6 @@ const JSONLD_APP = {
};

export default function Home(): JSX.Element {
// Homepage navbar reveals on scroll; styles in custom.css.
useEffect(() => {
const navbar = document.querySelector(".navbar");
if (!navbar) return;
const sync = () =>
navbar.classList.toggle("navbar--revealed", window.scrollY > 8);
sync();
window.addEventListener("scroll", sync, { passive: true });
return () => {
window.removeEventListener("scroll", sync);
navbar.classList.remove("navbar--revealed");
};
}, []);

return (
<Layout
title="AI Testing Agents for Web Apps"
Expand Down