Multi-Agent Collaboration for Team and Friends
TypeScript agent-automationagent-orchestrationagent-workflowai-agentsai-collaborationai-memoryai-workforceautonomous-agentsclaude-codeclaude-code-skillscodexcoding-agentmulti-agentmultiple-agentone-person-businessone-person-companyone-person-teamopencodesolopreneur
feat(web): add Contact page and marketing navigation
Gus51bc305b942a
diff --git a/src/web/public/contact/gus-photo.jpeg b/src/web/public/contact/gus-photo.jpegnew file mode 100644index 000000000..cd8fca751Binary files /dev/null and b/src/web/public/contact/gus-photo.jpeg differdiff --git a/src/web/src/app/contact/contact.module.css b/src/web/src/app/contact/contact.module.cssnew file mode 100644index 000000000..deeddb42e--- /dev/null+++ b/src/web/src/app/contact/contact.module.css@@ -0,0 +1,217 @@+.page.page {+ min-height: 100svh;+ display: flex;+ flex-direction: column;+ background: var(--landing-section-bg);+}++.header {+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: 24px;+ padding: 24px var(--landing-page-gutter);+}++.back {+ display: inline-flex;+ min-height: 44px;+ align-items: center;+ color: var(--landing-text-muted);+ font-size: 14px;+ text-underline-offset: 5px;+}++.main {+ display: grid;+ flex: 1;+ place-items: center;+ padding: 24px var(--landing-page-gutter) 48px;+}++.page .sheet {+ max-width: 1040px;+ min-height: 0;+ padding: 56px clamp(32px, 6vw, 80px) 72px;+}++.sheet h1 {+ font-family: var(--font-crt);+ font-size: clamp(56px, 7vw, 80px);+ font-weight: 400;+ line-height: 1;+ text-wrap: balance;+}++.groups {+ display: grid;+ grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);+ gap: 48px;+ width: 100%;+ margin-top: 48px;+ text-align: left;+}++.page .groups h2 {+ margin: 0;+ font-family: var(--font-crt);+ font-size: 36px;+ font-weight: 400;+ line-height: 1.1;+}++.identity {+ display: flex;+ min-height: 72px;+ align-items: center;+ gap: 16px;+}++.avatar {+ display: block;+ width: 64px;+ height: 64px;+ overflow: hidden;+ flex-shrink: 0;+ border-radius: 50%;+}++.avatar img {+ width: 100%;+ height: 100%;+ object-fit: cover;+ transform: scale(1.6);+ transform-origin: 50% 42%;+}++.role {+ margin-top: 8px;+ color: var(--landing-text-muted);+ font-size: 14px;+}++.community {+ padding-left: 32px;+ border-left: 1px solid var(--landing-border);+}++.community h2 {+ padding-left: 32px;+ display: flex;+ min-height: 72px;+ align-items: center;+}++.communityLink {+ display: grid;+ grid-template-columns: 20px 1fr 20px;+ align-items: center;+ gap: 12px;+ min-height: 64px;+ margin-top: 24px;+ color: var(--landing-accent);+ font-size: 18px;+ text-underline-offset: 5px;+}++.communityLink:hover {+ text-decoration: underline;+}++.contacts {+ width: 100%;+ margin-top: 24px;+ text-align: left;+}++.contacts li + li {+ border-top: 1px solid var(--landing-border);+}++.contact {+ display: grid;+ grid-template-columns: 64px 1fr 20px;+ align-items: center;+ gap: 16px;+ min-height: 64px;+ padding-block: 16px;+ color: var(--landing-accent);+}++.label {+ display: flex;+ align-items: center;+ gap: 8px;+ color: var(--landing-text-muted);+ font-family: var(--font-mono);+ font-size: 12px;+}++.value {+ font-size: 18px;+ line-height: 1.4;+ overflow-wrap: anywhere;+ text-underline-offset: 5px;+}++.contact:hover .value,+.back:hover {+ text-decoration: underline;+}++.page a:focus-visible {+ outline: 2px solid var(--landing-accent);+ outline-offset: 5px;+}++@media (max-width: 959px) {+ .groups {+ grid-template-columns: 1fr;+ gap: 32px;+ margin-top: 32px;+ }++ .community {+ padding: 24px 0 0;+ border-left: 0;+ border-top: 1px solid var(--landing-border);+ }++ .community h2 {+ min-height: 0;+ }++ .communityLink {+ margin-top: 16px;+ }++}++@media (max-width: 639px) {+ .identity {+ flex-direction: column;+ align-items: flex-start;+ }++ .main {+ padding-inline: 16px;+ }++ .page .sheet {+ padding: 48px 32px 56px;+ }++ .contact {+ grid-template-columns: 1fr 20px;+ gap: 6px 12px;+ }++ .label {+ grid-column: 1 / -1;+ }+}++.communityLink + .communityLink {+ margin-top: 0;+ border-top: 1px solid var(--landing-border);+}diff --git a/src/web/src/app/contact/page.tsx b/src/web/src/app/contact/page.tsxnew file mode 100644index 000000000..6f72b40d8--- /dev/null+++ b/src/web/src/app/contact/page.tsx@@ -0,0 +1,72 @@+import type { Metadata } from "next"+import Image from "next/image"+import Link from "next/link"+import { ArrowUpRight, CalendarDays, Mail } from "lucide-react"+import { SiDiscord } from "@icons-pack/react-simple-icons"+import { LandingFooter } from "@/components/home/landing-footer"+import landing from "@/components/home/landing-page.module.css"+import styles from "./contact.module.css"++export const metadata: Metadata = {+ title: { absolute: "Contact — Alook" },+ description: "Get in touch with Gus, book a conversation, or reach Alook Support.",+ alternates: { canonical: "/contact" },+}++const contacts = [+ { icon: Mail, label: "Email", text: "[email protected]", href: "mailto:[email protected]" },+ { icon: CalendarDays, label: "Meet", text: "Book 15 minutes", href: "https://cal.com/gustavoye/15min" },+]++export default function ContactPage() {+ return (+ <div className={`landing ${landing.page} ${styles.page}`}>+ <header className={styles.header}>+ <Link href="/" className={landing.brand} aria-label="Alook home">+ <Image src="/alook.svg" alt="" width={28} height={28} />+ <span>Alook</span>+ </Link>+ <Link href="/" className={styles.back}>Back to home</Link>+ </header>+ <main className={styles.main}>+ <section className={`${landing.closingCta} ${styles.sheet}`} aria-labelledby="contact-heading">+ <h1 id="contact-heading">Let’s talk.</h1>+ <div className={styles.groups}>+ <section aria-labelledby="gus-heading">+ <div className={styles.identity}>+ <span className={styles.avatar}>+ <Image src="/contact/gus-photo.jpeg" alt="Gus" width={128} height={128} />+ </span>+ <div>+ <h2 id="gus-heading">Gus</h2>+ <p className={styles.role}>Builder & Founder of Alook</p>+ </div>+ </div>+ <ul className={styles.contacts}>+ {contacts.map(({ icon: Icon, label, text, href }) => (+ <li key={label}>+ <a href={href} className={styles.contact}>+ <span className={styles.label}><Icon size={16} aria-hidden="true" />{label}</span>+ <span className={styles.value}>{text}</span>+ <ArrowUpRight size={20} aria-hidden="true" />+ </a>+ </li>+ ))}+ </ul>+ </section>+ <section className={styles.community} aria-labelledby="community-heading">+ <h2 id="community-heading">Community</h2>+ <a href="https://alook.ai/c/invite/nC7ax53lwm" className={styles.communityLink}>+ <Image src="/favicon.ico" alt="" width={20} height={20} /><span>Alook Support</span><ArrowUpRight size={20} aria-hidden="true" />+ </a>+ <a href="https://discord.alook.ai" className={styles.communityLink}>+ <SiDiscord size={20} aria-hidden="true" /><span>Discord</span><ArrowUpRight size={20} aria-hidden="true" />+ </a>+ </section>+ </div>+ </section>+ </main>+ <LandingFooter />+ </div>+ )+}diff --git a/src/web/src/components/home/landing-content.test.ts b/src/web/src/components/home/landing-content.test.tsindex fbab1960f..19576ce8f 100644--- a/src/web/src/components/home/landing-content.test.ts+++ b/src/web/src/components/home/landing-content.test.ts@@ -111,7 +111,7 @@ describe("landing content contract", () => {const landingPageSource = readFileSync(path.join(root, "src/components/home/landing-page.tsx"), "utf8")const landingStyles = readFileSync(path.join(root, "src/components/home/landing-page.module.css"), "utf8")const companions = landingPageSource.match(/const CLOSING_COMPANIONS = \[([\s\S]*?)\] as const/)?.[1] ?? ""- const closing = landingPageSource.match(/<section className=\{styles\.closingSection\}([\s\S]*?)<footer/)?.[1] ?? ""+ const closing = landingPageSource.match(/<section className=\{styles\.closingSection\}([\s\S]*?)<LandingFooter/)?.[1] ?? ""expect(closing).toContain("Ready to share")expect(closing).toContain("Bring your team into the conversation.")@@ -323,11 +323,13 @@ describe("landing content contract", () => {expect(landingPageSource).toContain("isLoggedIn={isLoggedIn}")expect(landingPageSource).toContain('homeHref="/"')expect(landingPageSource).toContain("highlightActions")- expect(landingPageSource).toContain("FooterSocialLinks")- expect(landingPageSource).toContain("GithubOutboundLink")- expect(landingPageSource).toContain('surface="public_footer"')- expect(landingPageSource).toContain("https://discord.alook.ai")- expect(landingPageSource).toContain("https://x.com/alook_ai")+ const footerSource = readFileSync(path.join(root, "src/components/home/landing-footer.tsx"), "utf8")+ expect(landingPageSource).toContain("<LandingFooter />")+ expect(footerSource).toContain("FooterSocialLinks")+ expect(footerSource).toContain("GithubOutboundLink")+ expect(footerSource).toContain('surface="public_footer"')+ expect(footerSource).toContain("https://discord.alook.ai")+ expect(footerSource).toContain("https://x.com/alook_ai")expect(landingPageSource).toContain("HeroSection")expect(landingPageSource).toContain("<HomepageFaq />")expect(landingPageSource).toContain("MarketingNav")@@ -365,9 +367,9 @@ describe("landing content contract", () => {expect(navSource).toContain("MARKETING_SITE_LINKS.map")expect(navSource).toContain("MARKETING_SITE_LINK_CLASS_NAME")expect(navSource).toContain("MARKETING_SITE_LINK_STYLE")- expect(landingPageSource).toContain("MARKETING_SITE_LINKS.map")- expect(landingPageSource).toContain("MARKETING_SITE_LINK_CLASS_NAME")- expect(landingPageSource).toContain("MARKETING_SITE_LINK_STYLE")+ expect(footerSource).toContain("MARKETING_SITE_LINKS.map")+ expect(footerSource).toContain("MARKETING_SITE_LINK_CLASS_NAME")+ expect(footerSource).toContain("MARKETING_SITE_LINK_STYLE")expect(landingStyles).toContain("--landing-content-max: 1320px")expect(landingStyles).toContain("--landing-page-gutter: clamp(24px, 5vw, 72px)")expect(landingStyles).toContain("max-width: var(--landing-content-max)")@@ -509,7 +511,7 @@ describe("landing content contract", () => {expect(reachStyles).toMatch(/\.desktopShell\s*\{[\s\S]*?left: 1%;/)expect(reachStyles).toMatch(/\.laptopBase\s*\{[\s\S]*?linear-gradient/)expect(reachMockupLicense).toContain("Copyright (c) 2026 Bidyut Kundu")- expect(landingPageSource).toContain("BRAND_SLOGAN")+ expect(footerSource).toContain("BRAND_SLOGAN")expect(landingPageSource).toContain("Use your existing setup")expect(landingPageSource).toContain("Keep your existing setup.")expect(landingPageSource).toContain("styles.ownershipDescription")diff --git a/src/web/src/components/home/landing-footer.tsx b/src/web/src/components/home/landing-footer.tsxnew file mode 100644index 000000000..66da37ac8--- /dev/null+++ b/src/web/src/components/home/landing-footer.tsx@@ -0,0 +1,63 @@+import Image from "next/image"+import Link from "next/link"+import { GithubOutboundLink } from "@/components/github-outbound-link"+import { BRAND_SLOGAN } from "@/lib/brand-copy"+import { tid } from "@/lib/community/testids"+import { MARKETING_SITE_LINK_CLASS_NAME, MARKETING_SITE_LINK_STYLE, MARKETING_SITE_LINKS } from "./marketing-site-links"+import styles from "./landing-page.module.css"++function Brand() {+ return (+ <Link href="/" className={styles.brand} aria-label="Alook home">+ <Image src="/alook.svg" alt="" width={28} height={28} priority />+ <span>Alook</span>+ </Link>+ )+}++function FooterSocialLinks() {+ return (+ <div className={styles.footerSocials} aria-label="Alook social links">+ <GithubOutboundLink surface="public_footer" target="_blank" rel="noopener noreferrer" aria-label="GitHub">+ <svg width="17" height="17" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">+ <path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z" />+ </svg>+ </GithubOutboundLink>+ <a href="https://discord.alook.ai" target="_blank" rel="noopener noreferrer" aria-label="Discord">+ <svg width="17" height="17" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">+ <path d="M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028c.462-.63.874-1.295 1.226-1.994a.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03z" />+ </svg>+ </a>+ <a href="https://x.com/alook_ai" target="_blank" rel="noopener noreferrer" aria-label="Follow us on X">+ <svg width="15" height="15" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">+ <path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z" />+ </svg>+ </a>+ </div>+ )+}++export function LandingFooter() {+ return (+ <footer className={styles.footer}>+ <div className={`${styles.siteContainer} ${styles.footerLayout}`} data-testid={tid.landingFooterContainer}>+ <div className={styles.footerPrimary}>+ <div className={styles.footerBrand} data-testid={tid.landingFooterBrand}>+ <Brand />+ </div>+ <p className={styles.footerSlogan} data-testid={tid.landingFooterSlogan}>{BRAND_SLOGAN}</p>+ <div className={styles.footerSocialGroup} data-testid={tid.landingFooterSocial}>+ <FooterSocialLinks />+ </div>+ </div>+ <nav className={styles.footerNavigation} aria-label="Footer navigation" data-testid={tid.landingFooterNavigation}>+ {MARKETING_SITE_LINKS.map((link) => link.usesDocumentNavigation ? (+ <a key={link.href} href={link.href} className={MARKETING_SITE_LINK_CLASS_NAME} style={MARKETING_SITE_LINK_STYLE}>{link.label}</a>+ ) : (+ <Link key={link.href} href={link.href} className={MARKETING_SITE_LINK_CLASS_NAME} style={MARKETING_SITE_LINK_STYLE}>{link.label}</Link>+ ))}+ </nav>+ </div>+ </footer>+ )+}diff --git a/src/web/src/components/home/landing-page.tsx b/src/web/src/components/home/landing-page.tsxindex e5f2e48bf..357c2de1e 100644--- a/src/web/src/components/home/landing-page.tsx+++ b/src/web/src/components/home/landing-page.tsx@@ -15,12 +15,7 @@ import { HomepageFaq } from "./homepage-faq"import { LandingReachMotion } from "./landing-reach-motion"import { LandingShellMotion } from "./landing-shell-motion"import { MarketingNav } from "./marketing-nav"-import {- MARKETING_SITE_LINK_CLASS_NAME,- MARKETING_SITE_LINK_STYLE,- MARKETING_SITE_LINKS,-} from "./marketing-site-links"-import { BRAND_SLOGAN } from "@/lib/brand-copy"+import { LandingFooter } from "./landing-footer"import {LANDING_CONTINUITY,LANDING_GALLERY,@@ -29,7 +24,6 @@ import {LANDING_PROVIDERS,} from "./landing-content"import styles from "./landing-page.module.css"-import { GithubOutboundLink } from "@/components/github-outbound-link"import { trackLandingCtaClicked } from "@/lib/analytics"import { tid } from "@/lib/community/testids"@@ -50,37 +44,6 @@ function SectionCta({ isLoggedIn, section, children }: {)}-function Brand() {- return (- <Link href="/" className={styles.brand} aria-label="Alook home">- <Image src="/alook.svg" alt="" width={28} height={28} priority />- <span>Alook</span>- </Link>- )-}--function FooterSocialLinks() {- return (- <div className={styles.footerSocials} aria-label="Alook social links">- <GithubOutboundLink surface="public_footer" target="_blank" rel="noopener noreferrer" aria-label="GitHub">- <svg width="17" height="17" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">- <path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z" />- </svg>- </GithubOutboundLink>- <a href="https://discord.alook.ai" target="_blank" rel="noopener noreferrer" aria-label="Discord">- <svg width="17" height="17" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">- <path d="M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028c.462-.63.874-1.295 1.226-1.994a.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03z" />- </svg>- </a>- <a href="https://x.com/alook_ai" target="_blank" rel="noopener noreferrer" aria-label="Follow us on X">- <svg width="15" height="15" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">- <path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z" />- </svg>- </a>- </div>- )-}-function ProductScene({ scene }: { scene: (typeof LANDING_GALLERY)[number]["scene"] }) {const story = LANDING_GALLERY.find((item) => item.scene === scene)@@ -436,26 +399,7 @@ export function LandingPage({ isLoggedIn }: { isLoggedIn: boolean }) {</div></section>- <footer className={styles.footer}>- <div className={`${styles.siteContainer} ${styles.footerLayout}`} data-testid={tid.landingFooterContainer}>- <div className={styles.footerPrimary}>- <div className={styles.footerBrand} data-testid={tid.landingFooterBrand}>- <Brand />- </div>- <p className={styles.footerSlogan} data-testid={tid.landingFooterSlogan}>{BRAND_SLOGAN}</p>- <div className={styles.footerSocialGroup} data-testid={tid.landingFooterSocial}>- <FooterSocialLinks />- </div>- </div>- <nav className={styles.footerNavigation} aria-label="Footer navigation" data-testid={tid.landingFooterNavigation}>- {MARKETING_SITE_LINKS.map((link) => link.usesDocumentNavigation ? (- <a key={link.href} href={link.href} className={MARKETING_SITE_LINK_CLASS_NAME} style={MARKETING_SITE_LINK_STYLE}>{link.label}</a>- ) : (- <Link key={link.href} href={link.href} className={MARKETING_SITE_LINK_CLASS_NAME} style={MARKETING_SITE_LINK_STYLE}>{link.label}</Link>- ))}- </nav>- </div>- </footer>+ <LandingFooter /></main>)}diff --git a/src/web/src/components/home/marketing-site-links.ts b/src/web/src/components/home/marketing-site-links.tsindex f22495441..5819cdd34 100644--- a/src/web/src/components/home/marketing-site-links.ts+++ b/src/web/src/components/home/marketing-site-links.ts@@ -1,6 +1,7 @@export const MARKETING_SITE_LINKS = [{ href: "/pricing", label: "Pricing", usesDocumentNavigation: false },{ href: "/blog", label: "Blog", usesDocumentNavigation: true },+ { href: "/contact", label: "Contact", usesDocumentNavigation: false },] as constexport const MARKETING_SITE_LINK_CLASS_NAME = "px-3 py-2 text-xs uppercase tracking-widest transition-opacity duration-150 hover:opacity-70"diff --git a/src/web/src/lib/root-sitemap.ts b/src/web/src/lib/root-sitemap.tsindex c8d7007c3..67dbe0d91 100644--- a/src/web/src/lib/root-sitemap.ts+++ b/src/web/src/lib/root-sitemap.ts@@ -36,6 +36,7 @@ export function buildRootSitemap(manifest: BlogDiscoveryManifestV1 | null): Meta}]: []),...blogEntries,+ { url: `${SITE_URL}/contact`, changeFrequency: "monthly", priority: 0.5 },{ url: `${SITE_URL}/privacy`, changeFrequency: "yearly", priority: 0.3 },];}diff --git a/src/web/src/test/e2e-ui/19-marketing-seo.spec.ts b/src/web/src/test/e2e-ui/19-marketing-seo.spec.tsindex a990da056..4902e156f 100644--- a/src/web/src/test/e2e-ui/19-marketing-seo.spec.ts+++ b/src/web/src/test/e2e-ui/19-marketing-seo.spec.ts@@ -109,16 +109,17 @@ test("homepage shares header and footer site links and collapses mobile header lawait expect.poll(() => header.evaluate((element) => getComputedStyle(element).visibility)).toBe("visible")const inlineLinks = header.locator(".marketing-site-link")- await expect(inlineLinks).toHaveCount(2)+ await expect(inlineLinks).toHaveCount(3)for (const link of await inlineLinks.all()) await expect(link).toBeHidden()const mobileMenu = header.locator("details")await mobileMenu.locator("summary").click()const mobileLinks = mobileMenu.locator(".marketing-mobile-site-link")- await expect(mobileLinks).toHaveCount(2)+ await expect(mobileLinks).toHaveCount(3)const expectedLinks = [{ href: "/pricing", label: "Pricing" },{ href: "/blog", label: "Blog" },+ { href: "/contact", label: "Contact" },]const linkContract = (elements: Element[]) => elements.map((element) => ({href: element.getAttribute("href"),@@ -189,3 +190,49 @@ test("desktop landing keeps the embedded phone Back control on true mobile geomeexpect(metrics?.backRect[1]).toBeCloseTo(44, 1)expect(metrics?.identityGap).toBeCloseTo(4, 1)})++for (const width of [1440, 390]) {+ test(`contact preserves its layout after client navigation at ${width}px`, async ({ page, context, baseURL }) => {+ await context.addCookies([{ name: "alook_analytics_consent", value: "v1.denied", url: baseURL! }])+ await page.setViewportSize({ width, height: 900 })+ await page.emulateMedia({ reducedMotion: "reduce" })+ await page.goto("/contact")+ await page.evaluate(() => document.fonts.ready)++ const contactLayout = () => page.locator("main").evaluate((main) => {+ const sheet = main.querySelector("section")!+ const style = (element: Element, properties: string[]) => {+ const computed = getComputedStyle(element)+ return Object.fromEntries(properties.map((property) => [property, computed.getPropertyValue(property)]))+ }+ return {+ background: getComputedStyle(main.parentElement!).backgroundColor,+ sheet: style(sheet, ["padding", "min-height", "max-width"]),+ paper: getComputedStyle(sheet, "::before").backgroundColor,+ headings: Array.from(main.querySelectorAll("h1, h2")).map((heading) =>+ style(heading, ["font-size", "line-height", "margin-top"])),+ links: Array.from(main.querySelectorAll("a")).map((link) => {+ const box = link.getBoundingClientRect()+ return [box.x, box.y + window.scrollY, box.width, box.height].map((value) => Math.round(value))+ }),+ }+ })+ const direct = await contactLayout()++ await page.getByRole("link", { name: "Back to home", exact: true }).click()+ await expect(page).toHaveURL(/\/$/)+ await page.locator(".hero-section").evaluate((hero) => window.scrollTo(0, hero.getBoundingClientRect().bottom + window.scrollY))+ const nav = page.locator("nav.marketing-nav")+ await expect(nav).toBeVisible()+ if (width < 640) await nav.locator("summary").click()+ await nav.getByRole("link", { name: "Contact", exact: true }).filter({ visible: true }).click()+ await expect(page).toHaveURL(/\/contact$/)+ await expect.poll(contactLayout).toEqual(direct)++ await page.getByRole("link", { name: "Back to home", exact: true }).click()+ await expect(page).toHaveURL(/\/$/)+ await page.getByTestId(tid.landingFooterNavigation).getByRole("link", { name: "Contact", exact: true }).click()+ await expect(page).toHaveURL(/\/contact$/)+ await expect.poll(contactLayout).toEqual(direct)+ })+}