v1: new homepage + unified nav (press/judging/services/attorneys/resources/login/theme/signup)

This commit is contained in:
seven
2026-06-28 10:49:27 +08:00
parent ed1c4178c9
commit 7191d16fb5
9 changed files with 688 additions and 56 deletions

View File

@@ -91,10 +91,10 @@
<nav>
<div class="container">
<a class="brand" href="../index.html">Abigail<span class="brand-dot">.</span></a>
<a class="brand" href="index.html">Abigail<span class="brand-dot">.</span></a>
<div class="nav-links">
<a href="../abigail_individuals.html">Individuals</a>
<a href="../abigail_employers.html">Employers</a>
<a href="press.html" class="active">Press</a>
<a href="judging.html">Judging</a>
<a href="services.html">Services</a>
<a href="attorneys.html">Attorneys</a>
<div class="nav-dropdown" id="resourcesDropdown">
@@ -103,16 +103,19 @@
<svg width="10" height="10" viewBox="0 0 10 10" fill="none"><path d="M2 3.5l3 3 3-3" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>
</button>
<div class="dropdown-menu" role="menu">
<a href="../abigail_library.html">Library</a>
<a href="petitions.html">Petitions</a>
<a href="press.html">Press support</a>
<a href="judging.html">Peer-review intros</a>
<a href="#">Articles</a>
<a href="#">Events</a>
<a href="#">Careers</a>
</div>
</div>
<a href="../abigail_pricing.html">Pricing</a>
<a href="login.html" style="color:var(--mute);">Log in</a>
<a href="login.html" class="nav-login">Log in</a>
<button class="theme-toggle" id="themeToggle" aria-label="Toggle theme">
<svg class="icon-moon" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path></svg>
<svg class="icon-sun" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="4"/><path d="M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M4.93 19.07l1.41-1.41M17.66 6.34l1.41-1.41"/></svg>
</button>
<a href="login.html#signup" class="nav-cta">Sign up</a>
</div>
<a href="#contact" class="nav-cta">Talk to a strategist</a>
</div>
</nav>
@@ -302,6 +305,14 @@
document.addEventListener("click", () => dd.classList.remove("open"));
dd.querySelector(".dropdown-menu").addEventListener("click", (e) => e.stopPropagation());
}
const THEME_KEY = "abigail-theme";
const root = document.documentElement;
if (localStorage.getItem(THEME_KEY) === "dark") root.classList.add("dark");
const toggle = document.getElementById("themeToggle");
if (toggle) toggle.addEventListener("click", () => {
root.classList.toggle("dark");
localStorage.setItem(THEME_KEY, root.classList.contains("dark") ? "dark" : "light");
});
</script>
</body>