Skip to content

Commit 6c978ac

Browse files
committed
[verified] Rename signup navigation to Join Us
1 parent 3364e5f commit 6c978ac

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎scripts/validate-seo-build.mjs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ for (const page of pages) {
137137
assert.doesNotMatch(html, /https:\/\/forms\.gle\/EQmWP1JWzDzrFji79/);
138138
assert.doesNotMatch(html, /https:\/\/linktr\.ee\/compbioatberkeley/);
139139
assert.ok(html.includes('href="https://linktr.ee/UCB_CompBio"'));
140+
assert.match(html, />Join Us<\/a>/, `${page.path} navigation must label the signup route “Join Us”`);
140141
if (page.path === "/") {
141142
assert.ok(mainTextLength >= 2000, `home SSR text must be substantial; received ${mainTextLength}`);
142143
const contentEfficiency = visibleText(html).length / html.length;

‎src/components/Footer.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const quickLinks = [
77
{ name: "calendar", path: "/calendar/" },
88
{ name: "collaborations", path: "/collaborations/" },
99
{ name: "officers", path: "/officers/" },
10-
{ name: "sign up", path: "/signup/" },
10+
{ name: "Join Us", path: "/signup/" },
1111
{ name: "contact", path: "/contact/" },
1212
{ name: "privacy", path: "/privacy/" },
1313
{ name: "developers", path: "/developers/" },

‎src/components/Navigation.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ const Navigation = () => {
103103
aria-current={isActive("/signup/") ? "page" : undefined}
104104
className="rounded bg-primary px-3.5 py-2 text-xs font-bold text-primary-foreground transition-colors hover:bg-primary/90 hover:text-primary-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background active:translate-y-px"
105105
>
106-
sign up
106+
Join Us
107107
</Link>
108108
</div>
109109

@@ -121,7 +121,7 @@ const Navigation = () => {
121121

122122
{isOpen && (
123123
<div id="mobile-navigation" className="border-t border-border py-2 lg:hidden">
124-
{[...navItems, { name: "sign up", path: "/signup/" }].map((item) => (
124+
{[...navItems, { name: "Join Us", path: "/signup/" }].map((item) => (
125125
<Link
126126
key={item.path}
127127
to={item.path}

0 commit comments

Comments
 (0)